Monday 14 March 2022

Maven: clear the artifacts from local repository

‘mvn dependency:purge-local-repository’ command is used to clear artifacts from the local repository.

 

‘dependency:purge-local-repository’ plugin perform the task in three steps.

a.   First resolve the entire dependency tree,

b.   then delete the contents from the local repository, and

c.    then re-resolve the dependencies from the remote repository.

 

Reference

https://maven.apache.org/plugins/maven-dependency-plugin/examples/purging-local-repository.html

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment