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_WIN
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_WIN;$AGENT_PATH_WIN
To do it in the console:
> java -jar $AGENT_PATH_WIN > set MAVEN_OPTS=-noverify -Xbootclasspath/p:$BOOTSTRAP_PATH_WIN;$AGENT_PATH_WIN %MAVEN_OPTS% > mvn jetty:run