I've configured my nexus repository with the Allow Redeploy deployment policy and now I need to refresh my local repository to reflect release redeployments (getting the artifacts uploaded by other users, without version change, after they were downloaded to my local repo)
Is there a way to do that?
I've tried by using the maven-dependency-plugin:
mvn dependency:resolve -DoverWriteReleases=true
But the local repository is not refreshed
I'd also like to refresh my full local repo (not only one project's dependencies) but it seems the resolve goal requires a project to be run
Thanks in advance
Sometimes I need to do the same, so a fast, simple and stupid :), but working solution is:
Later, each project maven build will download fresh copies of the artifacts.
As alternative you could remove only your own repository subtree:
That pseudo solution has a further advantage: to free the disk space occupied by old artifacts versions I will never use again.