Here is my setting:
1. Put jetty-env.xml in WEB-INF/local/jetty-env.xml;
2. Add following into pom.xml
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.22</version>
<configuration>
<contextPath>/</contextPath>
<jettyEnvXml>src/main/webapp/WEB-INF/local/jetty-env.xml</jettyEnvXml>
.......
</configuration>
</plugin>
Well, if you really hate any settings in svn repository. You can put jetty-env.xml somewhere outside svn directory. Use
<jettyEnvXml>${jetty.setting}</jettyEnvXml>
Now when you start maven append the system property jetty.setting=directory.
mvn -Djetty.setting=**/jetty-env.xml jetty:run
No comments :
Post a Comment