- Running Jetty
- java - Maven jetty plugin - automatic reload using a multi-module project - Stack Overflow
Very useful trick.
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.4.2.v20110526</version> <configuration> <scanIntervalSeconds>3</scanIntervalSeconds> <webAppConfig> <contextPath>/${project.name}</contextPath> <extraClasspath>target/classes;../services/target/classes;../util/target/classes</extraClasspath> </webAppConfig> <scanTargets> <scanTarget>target/classes</scanTarget> <scanTarget>../services/target/classes</scanTarget> <scanTarget>../util/target/classes</scanTarget> </scanTargets> </configuration> </plugin>
This might be more commonly useful:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.16.v20140903</version> <configuration> <scanIntervalSeconds>3</scanIntervalSeconds> <webAppConfig> <contextPath>/</contextPath> <extraClasspath>target/classes</extraClasspath> </webAppConfig> <scanTargets> <scanTarget>target/classes</scanTarget> </scanTargets> </configuration> </plugin>
No comments:
Post a Comment