4
从maven war plugin usage page报价:Maven:战前清理webapp目录:爆炸?
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webappDirectory>/sample/servlet/container/deploy/directory</webappDirectory>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
如何清洁的目录中<webappDirectory>/sample/servlet/container/deploy/directory</webappDirectory>
定义爆炸war文件前的内容?
根据我的经验,定义为webappDirectory的文件夹不会被清理干净,所以会有不相关的文件作为webapp的一部分。
这将是冷静,如果我能目前使用清洁webappDirectory,这是这样的添加了一些当前的命令IM:
mvn -o clean <cleanWebappDirectory here?> install war:exploded
谢谢!
很酷..非常感谢.. :-) – bertie 2011-03-17 09:51:00