我正在尝试将war文件从unix框部署到另一个使用以下目标运行jboss eap的unix框
mvn clean install jboss-as:deploy
部署适用于战争规模较小的某些项目。但是对于战争规模超过40MB并且误差低于
的项目来说却失败了[INFO]
[INFO] --- jboss-as-maven-plugin:7.3.Final:deploy (default-cli) @ ---
INFO: XNIO Version 3.0.7.GA
Jun 13, 2014 6:35:49 AM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.7.GA
Jun 13, 2014 6:35:49 AM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.12.GA
Authenticating against security realm: ManagementRealm
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 59.685s
[INFO] Finished at: Fri Jun 13 06:36:28 GMT+00:00 2014
[INFO] Final Memory: 41M/996M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.3.Final:deploy
(default-cli) on project: Deployment failed and was rolled back. -> [Help 1]
[ERROR]
有人可以帮忙吗?
答案 0 :(得分:3)
部署扫描程序的默认超时设置为60秒。这意味着如果您的部署在一分钟内没有完成,它将被取消。
可以找到更多信息here,但实质上,您需要更改standalone.xml
或domain.xml
配置文件中的超时设置。
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir"
scan-interval="5000" deployment-timeout="300" />
<!-- sets the timeout to 5 minutes -->
</subsystem>