[jbosstools-issues] [JBoss JIRA] (JBDS-4745) Drools maven archetype or quickstart using kjar packaging doesn't build

Mister PM (Jira) issues at jboss.org
Tue Nov 13 05:15:00 EST 2018


Mister PM created JBDS-4745:
-------------------------------

             Summary: Drools maven archetype  or quickstart using kjar packaging doesn't build 
                 Key: JBDS-4745
                 URL: https://issues.jboss.org/browse/JBDS-4745
             Project: Red Hat JBoss Developer Studio (devstudio)
          Issue Type: Bug
          Components: build
    Affects Versions: 12.9.0.GA
            Reporter: Mister PM
         Attachments: pom.xml

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 

 





--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbosstools-issues mailing list