简体   繁体   English

Jboss作为Maven插件远程部署问题

[英]Jboss as maven plugin remote deployment issue

I am trying to deploy a war file from a unix box to another unix box where the jboss eap is running using the below goals 我正在尝试使用以下目标将War文件从unix框部署到运行jboss eap的另一个unix框

mvn clean install jboss-as:deploy mvn clean install jboss-as:deploy

Deployment works fine for some projects with small war size. 对于某些战争规模较小的项目,部署工作正常。 But fails for projects with war sizes aroung 40MB with below error 但对于战争大小约为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] 

Can someone help? 有人可以帮忙吗?

The deployment scanner has a default timeout setting of 60 seconds. 部署扫描器的默认超时设置为60秒。 This means that if your deployment does not complete within a minute, it will be canceled. 这意味着,如果您的部署在一分钟内未完成,它将被取消。

More information can be found here , but in essence, you need to change the timeout setting in your standalone.xml or domain.xml configuration file. 此处可以找到更多信息,但从本质上讲,您需要在standalone.xmldomain.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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM