Any drools project which needs to use kie-maven-plugin to packing kjar maven project it's falling to build with the following error:
An internal error occurred during: "Updating Maven Project".
Missing parameter for pluginExecutionFilter. groupId, artifactId, versionRange and goals must be specificed, but found: groupId = 'org.kie'
artifactId = 'kie-maven-plugin'
versionRange = '7.13.0.Final'
goals = '[]'
You can create a maven project from the catalog archetype kie-drools-archetype, which will come with
...
<packaging>kjar</packaging>
...
...
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<version>${drools-version}</version>
<extensions>true</extensions>
</plugin>
I also added this part here in the pom file
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<versionRange>${drools-version}</versionRange>
<goals>
<goal>compile</goal>
<goal>package</goal>
<goal>build</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Which was a workaround in previous drools version.
However this didn't work either.
I can build from the command line with or without the pluginManagement and I can build this archetype without issues in other IDE like IntelliJ
- is related to
-
RHDM-799 [GSS] error happens when using 7.1.x version of kie-maven-plugin in JBD
- Closed
- links to