Building 1 2 3
- Marc Dumontier
Owned by Marc Dumontier
Here are some common ways to build from the command line
Command | Comments |
---|---|
mvn package | This is a basic build that will generate the WAR. It's pretty slow as all the tests will run, and you need a few things setup for that. |
mvn -Dcheckstyle.skip=true -Dmaven.test.skip=true package | Build a WAR as fast as possible. Skip checkstyle as well as tests |
mvn verify | This is what JENKINS will basically run. It will take even longer than package as it will compile the JSPs and the Javadocs. |
mvn checkstyle:checkstyle | Just run checkstyle. Check for common build problems |
mvn -Dtest=MyTest test | Run some unit test with the class name MyTest |
mvn test | Run all tests |
mvn sonar:sonar | Create a detailed code analysis report from Sonar. You have to install Sonar first. |