2015-01-11 80 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。

相關問題