[artifact:dependencies] Transferring 20K from abc
[artifact:dependencies] Downloading: javax/xml/bind/jaxb-api-parent/2.3.1/jaxb-api-parent-2.3.1.pom from repository abc at http://example.com:8081/repository/public/
[artifact:dependencies] Transferring 8K from abc
[artifact:dependencies] Downloading: org/glassfish/jaxb/jaxb-runtime/2.3.1/jaxb-runtime-2.3.1.pom from repository abc at http://example.com:8081/repository/public/
[artifact:dependencies] Transferring 8K from abc
[artifact:dependencies] Downloading: com/sun/xml/bind/mvn/jaxb-runtime-parent/2.3.1/jaxb-runtime-parent-2.3.1.pom from repository abc at http://example.com:8081/repository/public/
[artifact:dependencies] Transferring 3K from abc
[artifact:dependencies] Downloading: com/sun/xml/bind/mvn/jaxb-parent/2.3.1/jaxb-parent-2.3.1.pom from repository abc at http://example.com:8081/repository/public/
[artifact:dependencies] Transferring 40K from abc
[artifact:dependencies] Downloading: com/sun/xml/bind/jaxb-bom-ext/2.3.1/jaxb-bom-ext-2.3.1.pom from repository releases.java.net at http://maven.java.net/content/repositories/releases/
[artifact:dependencies] Transferring 0K from releases.java.net
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '8b9bea8c8373e3f0386e14134443c1873e3cf219'; remote = '<html>
[artifact:dependencies] <head><title>301' - RETRYING
[artifact:dependencies] Downloading: com/sun/xml/bind/jaxb-bom-ext/2.3.1/jaxb-bom-ext-2.3.1.pom from repository releases.java.net at http://maven.java.net/content/repositories/releases/
[artifact:dependencies] Transferring 0K from releases.java.net
[artifact:dependencies] [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '8b9bea8c8373e3f0386e14134443c1873e3cf219'; remote = '<html>
[artifact:dependencies] <head><title>301' - IGNORING
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'org.glassfish.jaxb:jaxb-runtime:jar': Cannot find parent: com.sun.xml.bind:jaxb-bom-ext for project: com.sun.xml.bind.mvn:jaxb-parent:pom:null for project com.sun.xml.bind.mvn:jaxb-parent:pom:null
[artifact:dependencies] org.glassfish.jaxb:jaxb-runtime:jar:2.3.1
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] abc (http://example.com:8081/repository/public/)
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.apache.maven:super-pom:pom:2.0
[artifact:dependencies] 2) org.hibernate:hibernate-core:jar:5.3.15.Final
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] Not a v4.0.0 POM. for project com.sun.xml.bind:jaxb-bom-ext at c:\gitviews\.m2\repository\com\sun\xml\bind\jaxb-bom-ext\2.3.1\jaxb-bom-ext-2.3.1.pom
[artifact:dependencies]
BUILD FAILED
我们正在将WildFly升级到版本19。遇到上述错误,我不太了解。 有人可以解释这个错误吗?我是新来的。
答案 0 :(得分:1)
首先要意识到的是错误所在
Cannot find parent: com.sun.xml.bind:jaxb-bom-ext for project: com.sun.xml.bind.mvn:jaxb-parent:pom:null
因此,即使我不知道该Bubblegateway是什么,我还是故意说这个POM不在您的本地存储库中。例如,要在eclipse中查找本地存储库,请注意maven设置,应指定路径。
在此存储库中,文件夹就像您的错误消息中的名称。因此文件夹结构应该像
com/sun/xml/bind/2.3.1
在“:”后面的是artifactId。这是.pom或.jar文件的重要名称部分。
所以他要查找的文件应该是:jaxb-bom-ext.pom
我敢打赌他找不到。自己看看,我可能会弄错。
现在如何获取它:
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
bubbleGateway (http://example.com:8081/repository/public/)
他正在查看您的预定义存储库,我想您确实在maven设置文件中对其进行了设置,但是您也可以在其他位置进行设置。 关键是,调用http://repo1.maven.org/maven2不再有用,因为它在一段时间前已移至安全站点https://repo1.maven.org/maven2。
在浏览器中检出它,第一个会给您501。后者会给您一个运行中的存储库,您可以在其中找到pom。
所以基本上,您所要做的就是,如果我没记错的话,找到定义存储库的位置,然后添加“ s”;)
祝你好运。