2015-01-11 44 views
0

我试图通过maven plugin在JBoss AS 7上部署一个web应用程序。我设置好的配置:如何通过maven插件在JBoss上进行部署?

<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-如:部署我得到了以下错误:

[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 

我该如何解决呢?

回答

1

我会尝试最新的AS 7版本 - 7.1.1.Final。

相关问题