mvn dependency:purge-local-repository
will remove the project dependencies from the local repository, and optionally re-resolve them
so in this case it will redownload all the dependencies that project needs after purging them from local repository
while mvn install
will just update dependencies based on policy specified in settings.xml
most of the time it will just download the dependencies which aren't available in your local repository (or needing an update based on your policy in settings.xml
)
Read full article from java - Why doesn't mvn dependency:purge-local-repository fetch the same dependencies as mvn install does? - Stack Overflow
No comments:
Post a Comment