- Notifications
You must be signed in to change notification settings - Fork543
Apache Maven Surefire
apache/maven-surefire
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Contributing toApache Maven Surefire
Usage ofmaven-surefire-plugin,maven-failsafe-plugin,maven-surefire-report-plugin
Build the Surefire project usingMaven 3.6.3+ andJDK 8+.
In order to run tests for a release check during the Vote, the following memory requirements are needed:
On Linux/Unix:
export MAVEN_OPTS="-server -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true"
On Windows:
set MAVEN_OPTS="-server -Xmx256m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true"
In order to build and run the tests:
mvn install site site:stage -P reporting,run-its
To set up the project inEclipse IDE orIntelliJ IDEA, please follow these steps:
Build module
surefire-shared-utils
with profileide-development
and install it into the local maven repository using this Maven command:mvn install -P ide-development -f surefire-shared-utils/pom.xml
Build module
surefire-grouper
in order to generate and compile sources intotarget/generated-sources/javacc
using this Maven command:mvn compile -f surefire-grouper/pom.xml
In Eclipse, selectFile > Import ... > Maven Project
- Select all projects (poms) except
surefire-shared-utils
,enter profileide-development
inAdvanced -> Profiles - Check module
surefire-grouper
has source foldertarget/generated-sources/javacc
.If not, add it manually in the module's project properties
- Select all projects (poms) except
In IntelliJ, selectMaven > Profiles and check
ide-development
Seehttp://maven.apache.org/developers/website/deploy-component-reference-documentation.html
About
Apache Maven Surefire