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>
Add the following line to the MAVEN_OPTS environment variable:
-javaagent:$AGENT_PATH_UNIX
To do it in the console:
> export MAVEN_OPTS="-javaagent:$AGENT_PATH_UNIX $MAVEN_OPTS" > mvn jetty:run