Posted By

alces on 05/13/13


Tagged

local reload purge dependencies mvn reposirory


Versions (?)

Reload dependencies cache in maven 2/3


 / Published in: Bash
 

URL: mvn_dependency_purge_local_repository

How to reload dependencies cache in maven 2/3

  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

Report this snippet  

You need to login to post a comment.