如何解决无法将.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 举报,一经查实,本站将立刻删除。