[英]How to deploy on the JBoss via maven plugin?
I'm trying to deploy on the JBoss AS 7 a web-application via maven plugin
. 我正在尝试通过maven plugin
在JBoss AS 7上部署一个Web应用程序。 I setted the configuration: 我设置了配置:
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.6.Final</version>
<configuration>
<hostname>localhost</hostname>
<jbossHome>D:\jboss-as-web-7.0.0.Final</jbossHome>
<fileName>target/corporate.war</fileName>
</configuration>
</plugin>
But when I tried to execute mvn jboss-as:deploy I got the following error: 但是当我尝试执行mvn jboss-as:deploy时,出现以下错误:
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.6.Final:deploy (default-cli) on project corporate: Error executing FORCE_DEPLOY: Operatio
n failed: Channel closed -> [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
How can I fix that? 我该如何解决?
我会尝试最新的AS 7版本-7.1.1.Final。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.