Skip to content

Instantly share code, notes, and snippets.

cesarhernandezgt / TomEE build, test, debug
Last active Mar 11, 2021
TomEE build, test, debug for junit test and arquillian
View TomEE build, test, debug
#Tip, set 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
View Install Java 6 on OSX
How to donwload and setup JDK on OSX
1. Install brew:
2. Add cask to brew: brew tap homebrew/cask-versions
3. Install Java 6: brew cask install java6
4. If you use SDK man, you can import your JDK 6 installtion using: sdk install java 1.6.0.jdk /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/
5. Using SDK Man, change to use JDK 6: sdk use java 1.6.0.jdk
cesarhernandezgt /
Created Apr 4, 2019
How to run Tomcat/TomEE docker container in debug mode
docker run -it -p 8080:8080 -p 8000:8000 -e CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000" tomcat:9.0.17-jre11