Skip to content
Kohei Tamura edited this page Jun 12, 2018 · 9 revisions

To develop on STS:

mvn dependency:sources
mvn clean eclipse:eclipse

To build war and runnable/deployable war:

mvn clean package

To build and startup by mvn command:

mvn clean spring-boot:run

To startup runnable war:

java -jar ROOT.war

w/ JVM options:

-Xmx256m -XX:MaxMetaspaceSize=64m -XX:MaxDirectMemorySize=90m -XX:+UseSerialGC -Xloggc:logs/gc.log -Xloggc:logs/gc_%p_%t.log -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=10M -XX:GCTimeLimit=15 -XX:GCHeapFreeLimit=50 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/ -XX:ErrorFile=logs/hs_err_pid%p.log -XX:NativeMemoryTracking=summary -agentlib:jdwp=transport=dt_socket,server=y,address=9009,suspend=n -Dderby.stream.error.file=logs/derby.log -Dderby.infolog.append=true -Dderby.language.logStatementText=true -Dderby.locks.deadlockTrace=true -Dderby.locks.monitor=true -Dderby.storage.rowLocking=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7900 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -ea

To change port to 9000:

java -jar ROOT.war --port=9000

To overwrite properties:

java -jar -Dspring.mail.host=192.168.1.2 -Dspring.mail.port=9925 ROOT.war

To startup on another container, for example Tomcat:

cp ROOT.war ${CATALINA_HOME}/webapps/
${CATALINA_HOME}/bin/startup.sh

To stop:

Click Ctrl+C.

To attach a remote debugger:

  • Connection type: Standard (Socket Listen)
  • Host: localhost
  • Port: 9009

To translate EasyBuggy into your language

Please use crowdin.com. It is very easy!