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