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

Mister PM (Jira) issues at jboss.org
Mon Nov 26 06:49:00 EST 2018


    [ https://issues.jboss.org/browse/JBDS-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665910#comment-13665910 ] 

Mister PM commented on JBDS-4745:
---------------------------------

Hi [~jeffmaury],

I tested your workaround using the pom.xml you attached.

Then this works fine.

I also got the latest archetype from maven repo today, kie-kjar-archetype, then JBoss Developer Studio 12.9.0.GA, was able to give me 3 quick fix from the problem list and added this plugin management to my pom   

<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>
    									[7.14.0.Final,)
    								</versionRange>
    								<goals>
    									<goal>build</goal>
    									<goal>generateDMNModel</goal>
    								</goals>
    							</pluginExecutionFilter>
    							<action>
    								<ignore></ignore>
    							</action>
    						</pluginExecution>
    					</pluginExecutions>
    				</lifecycleMappingMetadata>
    			</configuration>
    		</plugin>
    	</plugins>
    </pluginManagement>

To ignore the problem, then it works fine as well.

Ideal would be great if the a kie-kjar-architype works across all types of IDE without need to include any workaround. 
Should we have a knowledge page explaining this workaround and keep this jira open until we have a fix for this?

Thanks
Paulo Menon

> 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
>            Assignee: Jeff MAURY
>            Priority: Minor
>             Fix For: 12.x
>
>         Attachments: pom.xml, 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