gdst file is not pre compiled into kjar with kie-maven-plugin

375 views
Skip to first unread message

wang Sherry

unread,
Sep 22, 2015, 2:07:32 AM9/22/15
to Drools Usage
I wanted to use kie-maven-plugin to pre compile rules, bpmn2 and gdst  to a kjar. gdst file is not recognised and not compiled at all.
According to red hat, I added 2 dependencies for kie-maven-plungins: jbpm-bpmn2 for bpmn2 and drools-decisiontables for decision table. It's still not working. 
But if I build the project from jbpm-console, I can see the drl files for each gdst file are added and therefore they are precompiled to kiebase cache.

Any one got any idea?  Thanks~~

Here is my pom.xml

 <?xml version="1.0" encoding="UTF-8"?>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.chm.drools</groupId>
  <artifactId>cip-businessprocesses</artifactId>
  <name>cip-businessprocesses</name>
    <packaging>kjar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<version>6.2.0.Final</version>
<extensions>true</extensions>
                       <dependencies>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-bpmn2</artifactId>
<version>6.2.0.Final</version>
</dependency>
                        <dependency>
                            <groupId>org.drools</groupId>
                            <artifactId>drools-decisiontables</artifactId>
                            <version>6.2.0.Final</version>
                        </dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>

Michael Anstis

unread,
Sep 22, 2015, 4:13:30 AM9/22/15
to drools...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/ead897c7-62ff-46f7-90f5-2de26afab327%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wang Sherry

unread,
Sep 22, 2015, 4:16:52 AM9/22/15
to drools...@googlegroups.com
Thanks for reply... I've tried ... Not working... Seems the gdst file is not recognized at all. I've made a syntax error, it's not caught at all...
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAAG9P0uiU2Lm8AeBdH1VYQ%3DOD-y268ixXXOo%3DzxOW3m-UCefDg%40mail.gmail.com.

Michael Anstis

unread,
Sep 22, 2015, 4:17:28 AM9/22/15
to drools...@googlegroups.com
OK.. let's step back a bit.. what is the error you receive?

wang Sherry

unread,
Sep 22, 2015, 4:18:49 AM9/22/15
to drools...@googlegroups.com
No error... Just gdst not been complied and couldn't be use on runtime 
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAAG9P0tPyTOh3H6A%3D0iZW3Vq_T3XZESLk%3DZ6QNQxPaTL5xSsvw%40mail.gmail.com.

wang Sherry

unread,
Sep 22, 2015, 4:21:53 AM9/22/15
to drools...@googlegroups.com
If it's compiled, all the rules from gdst will be listed in kmodule.info. But the kmodule.info in my kjar is empty....

Michael Anstis

unread,
Sep 22, 2015, 4:27:59 AM9/22/15
to drools...@googlegroups.com
@wang, I've BCC'ed a colleague who knows more about how the pre-compilation should be working.

JAR drools-workbench-models-guided-dtable contains class GuidedDecisionTableConverter which is responsible for converting between GDST and DRL.. but IDK why they're not ending up in kmodule.info.

@mfusco.. IDK why this would not be working. Any ideas? 

wang Sherry

unread,
Sep 22, 2015, 6:59:14 PM9/22/15
to drools...@googlegroups.com
Thanks Michael. I created a test class to convert the gdst file to drl using drools-workbench-models-guided-dtable, which indicate my GDST file is fine and could be converted. So I wonder if I need to add anything to maven execution stage... Can't figure out why the GDST file is not recognised... odd...

Sai Hegde

unread,
Mar 31, 2016, 1:35:12 PM3/31/16
to Drools Usage
Were you able to figure this out?
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/ead897c7-62ff-46f7-90f5-2de26afab327%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

wang Sherry

unread,
Mar 31, 2016, 9:47:46 PM3/31/16
to drools...@googlegroups.com
Not really...You've got the same issue now?

To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAAG9P0tzj_faLkrnWssk9aTDYeUJsi2pfz48C2-RLL56yG4LaA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

wang Sherry

unread,
Mar 31, 2016, 10:32:16 PM3/31/16
to drools...@googlegroups.com
According to https://bugzilla.redhat.com/show_bug.cgi?id=1267510 It has been fixed. I just tried 6.4.0.CR2 includes the fix.

Sai Hegde

unread,
Apr 1, 2016, 9:55:45 AM4/1/16
to Drools Usage
6.4.0.CR2 of the kie-maven-plugin? I did try it, but I don't see the drl files being generated.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/ead897c7-62ff-46f7-90f5-2de26afab327%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAAG9P0tzj_faLkrnWssk9aTDYeUJsi2pfz48C2-RLL56yG4LaA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Sai Hegde

unread,
Apr 1, 2016, 10:31:49 AM4/1/16
to Drools Usage
You are right. I got it to work after upgrading it to 6.4.0.CR2 on my service.

wang Sherry

unread,
Apr 3, 2016, 10:46:25 PM4/3/16
to drools...@googlegroups.com
Hi, Sai,

Do you get the drl and gdst together?  I can only see the gdst files in my kjar as you said metioned.... lol... The working version should include both gdst and drls.....

To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/W394C2O9-xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.

wang Sherry

unread,
Apr 3, 2016, 11:09:59 PM4/3/16
to drools...@googlegroups.com
Sai, the problem I've got might be different from what you've got. The kjar was generated from the console compiled gdst file to 2 files one is gdst and one is drl with the same name. But the maven plugin only generate one file gdst file and missing drl. So it might still be a problem....
Reply all
Reply to author
Forward
0 new messages