嗨,我想用maven部署我的应用程序。通过网络界面部署炒锅。但个应用Maven的第一个取消部署(这是rght),然后停在了的LogMessage“上传” ca.30秒和失败:用tomcat7上的maven部署
tomcat7:在我的pom.xml
部署[INFO] Deploying war to http://192.168.1.137:8080/Application
Uploading: http://192.168.1.137:8080/manager/html/deploy?path=%2FApplication&update=true
Uploaded: http://192.168.1.137:8080/manager/html/deploy?path=%2FApplication&update=true (17575 KB at 23215.6 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57.061s
[INFO] Finished at: Mon Aug 06 09:41:27 CEST 2012
[INFO] Final Memory: 19M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-beta-1:deploy (default-cli) on project Application: Cannot invoke Tomcat manager: The target server failed to respond -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
的配置
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<url>http://192.168.1.137:8080/manager/html</url>
<username>admin</username>
<password>password</password>
<path>/Application</path>
<update>true</update>
</configuration>
</plugin>
我也尝试旧插件在Tomcat:重新部署:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<url>http://192.168.1.137:8080/manager/html</url>
<username>admin</username>
<password>password</password>
<path>/Application</path>
</configuration>
</plugin>
,但它也失败了:
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:redeploy (default-cli) on project Application: Cannot invoke Tomcat manager: Unexpected end of file from server -> [Help 1]
是否可以更改部署超时?也许我的应用程序需要长时间来启动
编辑: 我发现,当我签出项目并运行tomcat7:其中的Tomcat运行它的工作原理
您好我已经更新了我的问题 – wutzebaer 2012-08-06 08:18:28
**不能调用Tomcat管理:目标服务器无法响应** 实际的问题是与tomcat的。只是**尝试构建后手动启动tomcat。 – nand 2012-08-06 08:33:33
也许这是一个与tomcat的问题,但无法弄清楚什么:通过web界面的deploymant工作,maven可以登录到管理器,并开始上传 – wutzebaer 2012-08-06 08:41:38