Reload dependencies cache in maven 2/3


/ Published in: Bash
Save to your folder(s)

How to reload dependencies cache in maven 2/3


Copy this code and paste it in your HTML
  1. mvn dependency:purge-local-repository
  2.  
  3. # also works exclude list:
  4.  
  5. mvn dependency:purge-local-repository -Dexclude=org.codehaus.groovy:groovy-all,org.apache.ant:ant
  6.  
  7. # in maven-dependency-plugin 2.6+ work -Dinclude=... & -DmanualInclude=... options
  8. # on my taste manualInclude's behavior is more expectable -
  9. # you may put exact list of artifacts for reload:
  10.  
  11. mvn dependency:purge-local-repository -DmanualInclude=junit:junit,org.apache.ant:ant

URL: mvn_dependency_purge_local_repository

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.