Because you're not importing the repository in the domain pom. So, the domain doesn't know about any implementation.