Return to Snippet

Revision: 63512
at May 14, 2013 00:38 by alces


Updated Code
mvn dependency:purge-local-repository

# also works exclude list:

mvn dependency:purge-local-repository -Dexclude=org.codehaus.groovy:groovy-all,org.apache.ant:ant

# in maven-dependency-plugin 2.6+ work -Dinclude=... & -DmanualInclude=... options
# on my taste manualInclude's behavior is more expectable -
# you may put exact list of artifacts for reload:

mvn dependency:purge-local-repository -DmanualInclude=junit:junit,org.apache.ant:ant

Revision: 63511
at May 14, 2013 00:34 by alces


Updated Code
mvn dependency:purge-local-repository

# also works exclude list:

mvn dependency:purge-local-repository -Dexclude=org.codehaus.groovy:groovy-all,org.apache.ant:ant

# in maven-dependency-plugin 2.6+ work -Dinclude=... & -DmanualInclude=... options
# on my taste manualInclude's behavior is much expectable -
# you may put exact list of artifacts for reload:

mvn dependency:purge-local-repository -DmanualInclude=junit:junit,org.apache.ant:ant

Revision: 63510
at May 14, 2013 00:33 by alces


Updated Code
mvn dependency:purge-local-repository

# also works exclude lists:

mvn dependency:purge-local-repository -Dexclude=org.codehaus.groovy:groovy-all,org.apache.ant:ant

# in maven-dependency-plugin 2.6+ works -Dinclude & -DmanualInclude options
# on my taste manualInclude's behavior is much expectable -
# you may put exact list of artifacts for reload:

mvn dependency:purge-local-repository -DmanualInclude=junit:junit,org.apache.ant:ant

Revision: 63509
at May 13, 2013 18:21 by alces


Updated Code
mvn dependency:purge-local-repository

# also works exclude lists (since plugin v. 2.6 include lists too):

mvn dependency:purge-local-repository -Dexclude=org.codehaus.groovy:groovy-all,org.apache.ant:ant

Revision: 63508
at May 13, 2013 17:32 by alces


Initial Code
mvn dependency:purge-local-repository

Initial URL
mvn_dependency_purge_local_repository

Initial Description
How to reload dependencies cache in maven 2/3

Initial Title
Reload dependencies cache in maven 2/3

Initial Tags

                                

Initial Language
Bash