Which files are scanned by the Jetty Maven2 plugin?
If you set a non zero positive <scanInterval> configuration parameter, the jetty maven2 plugin will scan certain files every <scanInterval> seconds for changes, and redeploy the webapp if necessary.
The files that are scanned depend on the goal being executed:
| Goal |
Files and Directories |
| run |
pom.xml, <dependencies>, <classesDirectory>, <webXml> or <webAppSourceDirectory>/WEB-INF/web.xml, <jettyEnvXml> or <webAppSourceDirectory>/WEB-INF/jetty-web.xml, <scanTargets> |
| run-war |
pom.xml, <webApp> |
| run-exploded |
pom.xml, <webApp>/WEB-INF/web.xml, <webApp>/WEB-INF/jetty-web.xml, <webApp>/WEB-INF/jetty-env.xml,<webApp>/WEB-INF/classes, <webApp>/WEB-INF/lib |
For an explanation of the configuration parameters and their default values, see http://jetty.mortbay.org/maven-plugin/howto.html.