0
当我打包我的应用程序时,它将被放置在目标目录中。相反,我想选择tomcat WebApps目录。如何在POM.xml中指定。在Maven中为POM指定路径
当我打包我的应用程序时,它将被放置在目标目录中。相反,我想选择tomcat WebApps目录。如何在POM.xml中指定。在Maven中为POM指定路径
可以使用tomcat plugin:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<warFile>path/to/my/warFile.war</warFile>
</configuration>
</plugin>
<build>
<directory>${custom.build.directory}</directory>
</build>
<properties>
<custom.build.directory>target</custom.build.directory>
</properties>
在你的settings.xml:
<properties>
<!-- Personal overridden value, perhaps profile-specific -->
<custom.build.directory>/your/dir/</custom.build.directory>
</properties>
C:\ Tomcat的5.5 \ web应用我应该如何指定这里面。 – theJava 2010-12-22 11:24:36