2017-11-10 13 views
0

Ich habe versucht, das Projekt https://github.com/javaee/metro-jax-ws zu bauen, aber ich habe diese Fehler:Gebäude JAX-WS-Projekt mit Maven

[ERROR] [ERROR] Some problems were encountered while processing the POMs: 
[ERROR] Non-resolvable import POM: Could not find artifact org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in jvnet-nexus-releases (https://maven.java.net/content/repositories/releases/) @ line 208, column 25 
[ERROR] Non-resolvable import POM: Failure to find org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in https://maven.java.net/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of jvnet-nexus-releases has elapsed or updates are forced @ com.sun.xml.ws:jaxws-ri-bom:2.3.1-SNAPSHOT, /Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom/pom.xml, line 208, column 25 
@ 
[ERROR] The build could not read 2 projects -> [Help 1] 
[ERROR] 
[ERROR] The project com.sun.xml.ws:jaxws-ri-bom:2.3.1-SNAPSHOT (/Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom/pom.xml) has 1 error 
[ERROR]  Non-resolvable import POM: Could not find artifact org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in jvnet-nexus-releases (https://maven.java.net/content/repositories/releases/) @ line 208, column 25 -> [Help 2] 
[ERROR] 
[ERROR] The project com.sun.xml.ws:jaxws-ri-bom-ext:2.3.1-SNAPSHOT (/Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom-ext/pom.xml) has 1 error 
[ERROR]  Non-resolvable import POM: Failure to find org.glassfish.jaxb:jaxb-bom:pom:2.3.1-b171012.0423 in https://maven.java.net/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of jvnet-nexus-releases has elapsed or updates are forced @ com.sun.xml.ws:jaxws-ri-bom:2.3.1-SNAPSHOT, /Users/lopes/Downloads/metro-jax-ws-master/jaxws-ri/boms/bom/pom.xml, line 208, column 25 -> [Help 2] 
[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/ProjectBuildingException 
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 
+0

Diese Quellen sind alt und beziehen sich vermutlich auf Java.net als Repository. Das wurde entfernt, aber viele Artefakte sind auf Maven Central, also brauchen Sie nur diese stattdessen. –

+0

10 @enLopes Haben Sie überprüft, dass Sie auch das übergeordnete Projekt ' boms/bom-ext/pom.xml' ebenfalls verfügbar haben oder habe ich das falsche Pom überprüft? – pirho

Antwort

0

Versuchen Sie zuerst:

mvn clean install -U 

Wenn es nicht löschen hilft Verzeichnis

{yourHomeDir}/.m2/repository/org/glassfish/jaxb/jaxb-bom 
+0

Ich habe mit dem gleichen Fehler :-( –

+0

@enLopes bitte überprüfen, dass es immer noch genau klagt: ** Konnte Artefakt nicht finden org.glassfish.jaxb: jaxb-bom: pom: 2.3.1-b171012.0423 ** und nicht irgendein oher jar/pom oder so – pirho

+0

ja, und ich löschte das ganze repository –