kie-maven插件:7.36.1使用maven的最终插件扩展依赖错误



将Drools从6.5.0.Final迁移到Drools 7.36.1.Final,我在解决org.kie:kie-maven插件7.36.0.最终依赖性问题如下

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.kie:kie-maven-plugin:7.36.0.Final or one of its dependencies could not be resolved: The following artifacts could not be resolved: xmlpull:xmlpull:jar:1.2.0, xpp3:xpp3_min:jar:1.2.0: Could not find artifact xmlpull:xmlpull:jar:1.2.0

POM入口

<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<version>7.36.1.Final</version>
<extensions>true</extensions>         
</plugin>

Hi 7.31以上版本的问题相同。由于他们从更改了kie parent.pom中的依赖项

<version.xmlpull>1.1.3.1</version.xmlpull>
<version.xmlunit>1.3</version.xmlunit>
<version.xpp3>1.1.4c</version.xpp3>

<version.xmlpull>1.2.0</version.xmlpull>
<version.xmlunit>1.3</version.xmlunit>
<version.xpp3>${version.xmlpull}</version.xpp3>

我耍了很多花招,但还不能解决这个问题。1.2.0这是一个ea版本,位于https://repository.jboss.org/nexus/content/repositories/ea/.

它可以在以下位置找到:https://mvnrepository.com/artifact/xmlpull/xmlpull/1.2.0.我不知道为什么这里没有列出:https://mvnrepository.com/artifact/xmlpull/xmlpull所以maven可以解决它。

您可以下载它并将其放入本地m2存储库或公司maven存储库,如nexus或artifactory。

您需要在构建中添加其中一个repo-s,这样maven就可以找到它:

  • https://mvnrepository.com/repos/jboss-ea
  • https://mvnrepository.com/repos/jboss-thirdparty-releases

最新更新