Skip to content

Instantly share code, notes, and snippets.

@cesarhernandezgt
Last active March 13, 2023 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesarhernandezgt/88ff558798ee900011bd3998200f515f to your computer and use it in GitHub Desktop.
Save cesarhernandezgt/88ff558798ee900011bd3998200f515f to your computer and use it in GitHub Desktop.
TomEE build, test, debug for junit test and arquillian
#Tip, set maven opts:
echo $MAVEN_OPTS
-Xms2g -Xmx8g
#Build tomee fast spiking tests
mvn Pquick -Dsurefire.useFile=false -DdisableXmlReport=true -DuniqueVersion=false -ff -Dassemble -DskipTests -DfailIfNoTests=false clean install
#run a particular test class:
mvn test -Dtest=org.apache.openejb.core.singleton.DependsOnTest -DfailIfNoTests=false
#run a particular test class but specifing the submodule, this is 4X faster than previous comand:
mvn test -Dtest=org.apache.openejb.core.singleton.DependsOnTest -DfailIfNoTests=falsee -pl container/openejb-core
#run a particular test within a class:
mvn test -Dtest=TestClass#NameOfTheTests -DfailIfNoTests=false
#Generate html report to check for failure tests
mvn surefire-report:report-only
mvn site -DgenerateReports=false
#Debug tomee when runing openejb related test from commadn line:
mvn clean test -pl examples/mp-rest-jwt -Dopenejb.server.debug=true
#Debug tomee when runing Arquillian related test from commadn line:
mvn clean test -pl examples/mp-rest-jwt -Dmaven.surefire.debug
#Debug jbake
mvnDebug clean compile -Djbake.http=true
#Execute only Update BOMS
mvn exec:java -Dexec.mainClass="org.apache.tomee.bootstrap.GenerateBoms"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment