Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (45 sloc) 5.81 KB
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

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

1. IDE Specific

Maven Command Description
mvn eclipse:eclipse generates Eclipse project files (alternatively, you could use m2e)
mvn idea:idea generates IDEA IntelliJ project files

2. Build Specific

Maven Command Description
mvn clean install performs a build
mvn clean install -Dmaven.test.skip performs a build, skipping the tests (not recommended)
mvn clean test compiles the source and executes the tests
mvn test -Dtest=JSPWikiMarkupParserTest run just a single test class
mvn test -Dtest=JSPWikiMarkupParserTest#testHeadingHyperlinks3 run just a single test within a test class
mvn test -Dtest=TestClassName#methodName -Dmaven.surefire.debug debug a test in Eclipse or IDEA to see why it's failing (see
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-tests performs a build, enabling Selenium tests execution (best run from the jspwiki-it-tests folder)
mvn wro4j:run -Dminimize=true merge & compress js & css files
mvn wro4j:run -Dminimize=false only merge the js & css files (no compression)
mvn clean install -Dmaven.test.skip -Dminimize=false performs a build, skipping the tests and skip compression

3. Reports Specific

Maven Command Description
mvn apache-rat:check creates an Apache RAT report. See:
mvn cobertura:cobertura generates a cobertura maven report. See:
mvn javadoc:javadoc creates javadocs; if graphviz binaries ( are found on $PATH, the javadocs will display some UML class/package level diagrams
mvn sonar:sonar generates a Sonar report. Expects a Sonar server running at http://localhost:9000/
cd jspwiki-site; mvn test -Dtest=SiteGeneratorTest checks all language resource files for missing or unused translations