无法将.ear文件部署到JBoss中

问题描述

我有一个多模块Maven项目。我正在从中生成一个耳朵文件,并尝试在JBoss服务器中部署它。 JBoss服务器版本为jboss-as-7.1.1.Final。在构建时出现错误。

[ERROR] Plugin org.jboss.as.plugins:jboss-as-maven-plugin:7.9.Final or one of its dependencies could not be resolved: 
Failed to read artifact descriptor for org.jboss.as.plugins:jboss-as-maven-plugin:jar:7.9.Final: Could not transfer 
artifact org.jboss.as.plugins:jboss-as-maven-plugin:pom:7.9.Final  from/to jboss-public-repository-group 
(http://repository.jboss.org/nexus/content/groups/public/): Transfer failed for http://repository.jboss.org/nexus/content/groups/public/org/jboss/as/plugins/jboss-as-maven-plugin/7.9.Final/jboss-as-maven-plugin-7.9.Final.pom:
Received fatal alert: handshake_failure -> [Help 1]

以下是我要在pom.xml中构建的配置文件

<profiles>
        <profile>
            <id>jboss-plugin</id>
            <properties>
                <deploy.directory>c:/app/deploy</deploy.directory>
                <jboss-as.hostname>localhost</jboss-as.hostname>
                <jboss-as.port>9999</jboss-as.port>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jboss.as.plugins</groupId>
                        <artifactId>jboss-as-maven-plugin</artifactId>
                        <version>7.9.Final</version>
                        <executions>
                            <execution>
                                <id>deploy-${project.artifactId}</id>
                                <phase>install</phase>
                                <goals>
                                    <goal>deploy</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>undeploy-${project.artifactId}</id>
                                <phase>clean</phase>
                                <goals>
                                    <goal>undeploy</goal>
                                </goals>
                            </execution>
                            
                             <execution>
                                <id>add-resource</id>
                                <phase>clean</phase>
                                <goals>
                                    <goal>add-resource</goal>
                                </goals>
                                <configuration>
                                    <resources>
                                        <resource>
                                            <!-- datasources connection details -->
                                        </resource>
                                    </resources>
                                </configuration>
                            </execution>
                            
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

我正在使用命令 mvn deploy -Pjboss-plugin 。这应该是我必须使用的命令吗?我还检查了我的本地.m2目录,找不到jboss-as-maven-plugin的jar文件。那会是问题吗? 有人可以帮我弄清楚问题出在哪里。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...