我试图通过maven plugin
在JBoss AS 7上部署一个Web应用程序。我设置了配置:
<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>
但是当我尝试执行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
我该如何解决?
答案 0 :(得分:1)
我会尝试最新的AS 7版本 - 7.1.1.Final。