【发布时间】:2010-12-11 17:27:35
【问题描述】:
我按照here 的说明进行操作,但只有在映射到默认目录以外的目录时才有效。
这是我尝试过的一个示例:
<configuration>
<webResources>
<resource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<!-- the below works when uncommented and does exclude *.tmp -->
<!-- <targetPath>test/WEB-INF</targetPath> -->
<!-- the below does not -->
<targetPath>WEB-INF</targetPath>
<excludes>
<exclude>*.tmp</exclude>
</excludes>
</resource>
</webResources>
</configuration>
所以我的假设是我有其他东西覆盖了配置。但是,这是我第一个使用 maven 的项目,所以我不确定接下来要测试或调查什么。
【问题讨论】:
标签: maven-2 jetty maven-plugin pom.xml war-filedeployment