Edit your pom.xml
file and set the scanIntervalSeconds
param to 0
, this will
turn off Jetty's internal reloading. It should look like this:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <configuration> <scanIntervalSeconds>0</scanIntervalSeconds> </configuration> </plugin>
Run java -jar $AGENT_PATH_UNIX
to generate the jrebel-bootstrap.jar
using the JVM you will run the application with.
Add the following line to the MAVEN_OPTS environment variable:
-noverify -Xbootclasspath/p:$BOOTSTRAP_PATH_UNIX:$AGENT_PATH_UNIX
To do it in the console:
> java -jar $AGENT_PATH_UNIX > export MAVEN_OPTS="-noverify -Xbootclasspath/p:$BOOTSTRAP_PATH_UNIX:$AGENT_PATH_UNIX $MAVEN_OPTS" > mvn jetty:run