- Edit pom.xml, Add scanIntervalSeconds element to allow jetty scanning changes in contextPath
- Then compile only your modified class.
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<webApp>
<contextPath>/</contextPath>
</webApp>
<scanIntervalSeconds>1</scanIntervalSeconds>
</configuration>
</plugin>