Friday 5 June 2015

Maven Commands

Below are some of the useful maven commands to compile your code


mvn clean install ---> clean and install

mvn clean compile --> clean and compile

mvn clean -o install --> clean and install offline. this can be sued if you are unable to connect to download dependency

mvn clean install -Dcheckstyle.skip=true -Dmaven.test.skip=true -Dcobertura.skip=true


skip a single test
 mvn -Dtest='\*,!NCB*' clean test -DfailIfNoTests=false

No comments:

Post a Comment