这是我的pom.xml
构建配置:
<build>
<finalName>cfwd</finalName>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.0</version>
<configuration>
<url>http://xx.xxx.xxx.xxx:8080/manager/text</url>
<server>cifServer</server>
<path>/cfwd</path>
<addContextWarDependencies>true</addContextWarDependencies>
<addWarDependenciesInClassloader>true</addWarDependenciesInClassloader>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
http://xx.xxx.xxx.xxx:8080
远程服务器IP在哪里。
当我尝试通过部署时mvn tomcat:deploy
出现此错误:
[错误] 无法在项目 cfwd 上执行目标 org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli):无法调用 Tomcat 管理器:服务器返回 HTTP 响应代码:URL 为 403:
http://localhost:8080/manager/deploy?path=%2Fcfwd&war=
-> [帮助1] org.apache.maven.lifecycle.LifecycleExecutionException: 无法在项目 cfwd 上执行目标 org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli): 无法调用 Tomcat 管理器
看起来maven正在尝试部署到localhost:8080
而不是远程服务器IP。任何想法?