I'm working on a project with dependency X. X, in turn, depends on Y.
I used to explicitly include Y in my project's pom. However, it was not used and to make things cleaner, I instead added it to X's pom as a dependency. X is marked as a release dependency.
The problem is that after removing Y from my project's pom and adding it to X's pom, my project isn't picking it up on mvn -U clean package
. I know -U update snapshots but not releases.
So, without deleting the ~/.m2/repository directory how can I force a re-download of X's pom? Also, I tried running dependency:purge-local-repository
and it didn't work either.
X
's pom, then it should constitute a new release, even if it's only a patch number change:1.3
->1.3.1
. So, that would eliminate this problem from the get-go.dependency:purge-local-repository
should work, does it not delete it?