Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

1. IDE Specific

Maven CommandDescription
mvn eclipse:eclipsegenerates Eclipse project files (alternatively, you could use m2e)
mvn idea:ideagenerates IDEA IntelliJ project files

2. Build Specific

Maven CommandDescription
mvn clean installperforms a build
mvn clean install -Dmaven.test.skipperforms a build, skipping the tests (not recommended)
mvn clean testcompiles the source and executes the tests
mvn test -Dtest=JSPWikiMarkupParserTestrun just a single test class
mvn test -Dtest=JSPWikiMarkupParserTest#testHeadingHyperlinks3run just a single test within a test class
mvn test -Dtest=TestClassName#methodName -Dmaven.surefire.debugdebug a test in Eclipse or IDEA to see why it's failing (see http://www.jroller.com/gmazza/entry/jpa_and_junit#debugging)
mvn org.codehaus.cargo:cargo-maven2-plugin:run(from main war module) starts JSPWiki on a Tomcat8 instance at http://localhost:8080/JSPWiki with an attached debugger
on port 5005
mvn clean deploy -Papache-release -Dgpg.passphrase=deploys generated artifact to a repository. If -Dgpg.passphrase is not given, expects a gpg-agent running
mvn clean install -Pintegration-testsperforms a build, enabling functional tests execution (best run from the jspwiki-it-tests folder)
mvn wro4j:run -Dminimize=truemerge & compress js & css files
mvn wro4j:run -Dminimize=falseonly merge the js & css files (no compression)
mvn clean install -Dmaven.test.skip -Dminimize=falseperforms a build, skipping the tests and skip compression

3. Reports Specific

Maven CommandDescription
mvn apache-rat:checkcreates an Apache RAT report. See: http://creadur.apache.org/rat/apache-rat-plugin/plugin-info.html
mvn cobertura:coberturagenerates a cobertura maven report. See: http://mojo.codehaus.org/cobertura-maven-plugin/usage.html
mvn javadoc:javadoccreates javadocs; if graphviz binaries (www.graphviz.org) are found on $PATH, the javadocs will display
some UML class/package level diagrams
mvn sonar:sonargenerates a Sonar report. Expects a Sonar server running at http://localhost:9000/