wildfly quickstart fails from the offset

[亡魂溺海] 提交于 2019-12-25 01:22:09

问题


i just downloaded wildfly 9.02 with the quickstarts and the jboss developer studio. I am a total newbie to jboss, i am following the guide on github https://github.com/wildfly/quickstart/ to build and deploy the sources. i got my maven installed (v 3.3.3) with java 8. settings.xml copied to my $HOME/.m2 directory but it seems to me that the urls of the artifcats are all broken

[ERROR]   The project org.wildfly.quickstarts:wildfly-helloworld:10.0.0-SNAPSHOT (C:\jboss\quickstart\helloworld\pom.xml) has 4 errors
[ERROR]     Non-resolvable import POM: Could not transfer artifact org.jboss.spec:jboss-javaee-7.0:pom:1.0.3.Final 
from/to jboss-earlyaccess-repository (http://maven.repository.redhat.com/earlyaccess/all/): 
Connect to maven.repository.redhat.com:80 [maven.repository.redhat.com/104.66.178.195] failed: Connection timed out: connect @ line 66, column 25 -> 
[Help 2]
[ERROR]     'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 79, column 21
[ERROR]     'dependencies.dependency.version' fororg.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar is missing. @ line 87, column 21
[ERROR]     'dependencies.dependency.version' fororg.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:jar is missing. @ line 94, column 21
[ERROR]

I am supposing something is messed up there because i can't be the only one having this.

appreciate all the help. thanks


回答1:


It is maven that is giving you a problem. It says that the artifact: org.jboss.spec:jboss-javaee-7.0:pom:1.0.3.Final cannot be found in the maven.repository.redhat.com:80, as you can see here.

What you need to do is remove the redhat maven repository that is somewhere added, so the artifacts are resolved from the standard maven central repository, which does provide this artifact as you see here



来源:https://stackoverflow.com/questions/33614324/wildfly-quickstart-fails-from-the-offset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!