我如何在目录上增加一个基于目录的目录:格式?
我有以下喷气花板组合:
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<contextHandlers>
<contextHandler implementation="org.mortbay.jetty.handler.ContextHandler">
<contextPath>/media/data</contextPath>
<resourceBase>/somedir/media/data</resourceBase>
<handler implementation="org.mortbay.jetty.handler.ResourceHandler" />
</contextHandler>
</contextHandlers>
<contextPath>/</contextPath>
<webAppSourceDirectory>foo-project/target/foo-webapp</webAppSourceDirectory>
...
</configuration>
</plugin>
</plugins>
...
</build>
我如何这样做?
我有一个背景。
<?xml version= 1.0 encoding= utf-8 ?>
<Context path="/media" docBase="/somedir/media"/>
but this seems to get ignored. I ve also tried to explicitly set the contextFile parameter in the plugin configuration, but to no avail.
Reference: http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html