Drools kie-maven-plugin error message using Gradle "plugin with id 'kie-maven-plugin' not found."

huangapple 未分类评论48阅读模式
英文:

Drools kie-maven-plugin error message using Gradle "plugin with id 'kie-maven-plugin' not found."

问题

在使用 Maven 时,我已成功使 kie-maven-plugin 正常工作,但在使用 Gradle 时,出现了错误 plugin with id 'kie-maven-plugin' not found。我已经尝试将 kie-maven-plugin 的坐标添加到插件存储库部分以及项目依赖项部分,但都没有成功(无论是其中之一还是两者都添加)。我是否正确使用了 apply plugin 行?

在 buildscript -> repositories -> dependencies 部分:

classpath 'org.kie:kie-maven-plugin:7.35.0.Final'

在所有项目部分:

apply plugin: 'kie-maven-plugin'

在所有项目 -> dependencies 部分:

compile group: 'org.kie', name: 'kie-maven-plugin', version: "7.35.0.Final"

我还尝试了以下方法,但均未成功:

apply plugin: 'org.kie.maven.plugin'
apply plugin: 'kie'
apply plugin: 'org.kie'
apply plugin: 'org.kie.kie'
apply plugin: 'org.kie.kie-maven-plugin'
apply plugin: 'org.kie:kie-maven-plugin'
apply plugin: 'org.kie.maven.plugin.ValidateDMNMojo'
英文:

I've gotten the kie-maven-plugin to work with maven, but when using it with gradle I get the error plugin with id 'kie-maven-plugin' not found. I've added the kie-maven-plugin coordinates to both the plugin repository section as well as the project dependencies section with no luck (as well as either/or). Am I getting the apply plugin line right?

In buildscript -> repositories -> dependencies section:

classpath 'org.kie:kie-maven-plugin:7.35.0.Final'

In allprojects section:

apply plugin: 'kie-maven-plugin'

In allprojects -> dependencies section:

compile group: 'org.kie', name: 'kie-maven-plugin', version: "7.35.0.Final"

I've also tried the following to no avail:

apply plugin: 'org.kie.maven.plugin'

apply plugin: 'kie'

apply plugin: 'org.kie'

apply plugin: 'org.kie.kie'

apply plugin: 'org.kie.kie-maven-plugin'

apply plugin: 'org.kie:kie-maven-plugin'

apply plugin: 'org.kie.maven.plugin.ValidateDMNMojo'

huangapple
  • 本文由 发表于 2020年5月4日 15:02:35
  • 转载请务必保留本文链接:https://java.coder-hub.com/61586775.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定