Maven Jetty Plugin 配置指南(三)
配置jetty:run-exploded
? ?这个目标首先装配你的web应用到exploded-war文件,再发布到Jetty。如果你设置扫描间隔为非零,Jetty将观察你的pom.xml, WEB-INF/lib, WEB-INF/classes和WEB-INF/web.xml的改变。如果有必要,它都将重新打包并部署war。
配置参数的详细描述如下:
webApp exploded-war的路径。默认在${project.build.directory}/${project.build.finalName},但是能通过设置这个参数,从而覆盖它。详细设置如下:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.14</version><dependencies> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jsp-api-2.0</artifactId> <version>6.1.14</version> </dependency> <dependency> <groupId>tomcat</groupId> <artifactId>jasper-compiler-jdt</artifactId> <version>5.5.15</version> </dependency> <dependency> <groupId>tomcat</groupId> <artifactId>jasper-compiler</artifactId> <version>5.5.15</version> </dependency> <dependency> <groupId>tomcat</groupId> <artifactId>jasper-runtime</artifactId> <version>5.5.15</version> </dependency> <dependency> <groupId>org.mortbay.jetty</groupId> <artifactId>jsp-2.1</artifactId> <version>6.1.14</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>org.mortbay.jetty</groupId> <artifactId>jsp-api-2.1</artifactId> </exclusion> <exclusion> <groupId>org.mortbay.jetty</groupId> <artifactId>start</artifactId> </exclusion> <exclusion> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-annotations</artifactId> </exclusion> </exclusions> </dependency></dependencies>....</plugin>
?