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_WIN
To do it in the console:
> set MAVEN_OPTS=-javaagent:$AGENT_PATH_WIN %MAVEN_OPTS% > mvn jetty:run