在jboss-public-repository-group中找不到工件org.wildfly.core:wildfly-coer-parent:pom:myVersion

我正在为我的项目使用Maven。我有一个父项目myProjectA,当我执行mvn clean install时,它会成功构建。 myProjectA有多个子代,其中之一是“ childA1”。此childA1从myProjectB调用插件childB1。

问题是,当我尝试在childA1上执行mvn全新安装时,它将失败并显示错误:

Plugin my-maven-plugin:0.1-snAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for my-maven-plugin:jar:0.1-snAPSHOT: Failure to find org.wildfly.core:wildfly-core-parent:pom:myVersion in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository,resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced

我从错误中了解到在my-maven-plugin中未找到依赖项org.wildfly.core。此依赖项未明确出现在childA1或childB1的pom中。因此,为了解决我的问题,我将依赖项添加到childB1并在childB1上进行了mvn clean install,该依赖项已解决且构建成功。在执行此操作时,我看到依赖项实际上是从http://mynexus/nexus/content/groups/public下载的,而不是childA1试图从中获取它的jboss存储库。

我查看了childA1和childB1的“有效pom”选项卡(在eclipse中),在那里我看到列出了正确的存储库mynexus,而不是jboss存储库。

我尝试使用-U运行的其他操作,并且确保在构建childA1之前先构建myProjectA。不幸的是,这并没有解决我的问题。欢迎提供任何解决方法的建议。

zhouanneng 回答:在jboss-public-repository-group中找不到工件org.wildfly.core:wildfly-coer-parent:pom:myVersion

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3153422.html

大家都在问