How to build a kjar from Maven command for BRMS

335 views
Skip to first unread message

Swapnil Thakare

unread,
Dec 27, 2021, 7:47:48 AM12/27/21
to Drools Usage
Please help Getting below error while creating jar in eclipse. 

[ERROR]   The project com.telus:RANCT:1.0.6 (D:\Work\Drools_Maven_Build\TELUS_RANCT\project\pom.xml) has 1 error
[ERROR]     Unknown packaging: kjar @ line 8, column 14

Toshiya Kobayashi

unread,
Dec 31, 2021, 1:32:44 AM12/31/21
to Drools Usage
Hi,

Could you share your pom.xml file for review?

Regards,
Toshiya


2021年12月27日月曜日 21:47:48 UTC+9 swap...@gmail.com:

Swapnil Thakare

unread,
Jan 2, 2022, 11:28:28 PM1/2/22
to Drools Usage
Hi  Toshiya,

Thanks for your response.

So basically I am trying to build jar of drools code using eclipse, below are pom.xml of both.
If I am removing <packaging>kjar</packaging>  tag from eclipse_pom.xml  then jar is getting build and same jar if deployed on kie-server then cannot find kiemodule error is getting.

Also find attached MavenInvoker java code and drools folder structure.



Thanks & Regards,
Swapnil Thakare
drools folder structure.PNG
eclipse_pom.xml
drools_pom.xml
MavenInvoker.txt

Toshiya Kobayashi

unread,
Jan 5, 2022, 1:04:52 AM1/5/22
to Drools Usage
Thank you for the information.

I'm not yet clear about your project. But at least, I see that the drools_pom.xml is missing

```
  <build>
    <plugins>
      <plugin>
        <groupId>org.kie</groupId>
        <artifactId>kie-maven-plugin</artifactId>
        <version>7.46.0.Final</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
```

Adding this solves the issue?

If not, please attach the whole project so that I can reproduce the issue on my end.

Toshiya

2022年1月3日月曜日 13:28:28 UTC+9 swap...@gmail.com:
Reply all
Reply to author
Forward
0 new messages