messing with maven

Of course no-one should ever need to use these switches but here they are ...
 
... to disable the pmd plugin

-Dpmd.skip=true 

... to disable the test phase 

-Dmaven.test.skip=true

Filed under  //

Comments [0]

display dependent jars for a maven project

Ever wonder why you project insists on including some old library file? To print a tree of all of the dependencies within your project use the following maven command:

mvn dependency:tree

Filed under  //

Comments [0]

create md5 hash files for a maven repo

Use this command to generate .md5 hash files for all of the libraries in your maven repository, on mac:

find -E . -regex ".*(\.jar|\.pom)$" -exec sh -c "/sbin/md5 -q '{}' > '{}.md5'" \;

on linux try this:

find . -regextype posix-extended -regex ".*(\.jar|\.pom)$" -exec sh -c "/usr/bin/md5sum '{}' > '{}.md5'" \;

Filed under  //

Comments [0]