[jboss-jira] [JBoss JIRA] (DROOLS-3198) kie maven plugin fails to build kjar if kmodule contains a ruleTemplate
Webster Homer (Jira)
issues at jboss.org
Fri Oct 26 10:13:01 EDT 2018
Webster Homer created DROOLS-3198:
-------------------------------------
Summary: kie maven plugin fails to build kjar if kmodule contains a ruleTemplate
Key: DROOLS-3198
URL: https://issues.jboss.org/browse/DROOLS-3198
Project: Drools
Issue Type: Bug
Components: tools
Affects Versions: 7.8.0.Final
Reporter: Webster Homer
Assignee: Mario Fusco
If I have a maven pom that uses the kie maven plugin org.kie:kie-maven-plugin to build the kljar for deployment, and the project kjar has a ruleTemplate:
<ruleTemplate dtable="rules/business/TermSearchQFRules.xls"
template="rules/business/templates/TermSearchQF.drt"
row="2" col="1"/>
The build will fail with an error:
ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.8.0.Final:build (default-build) on project ba-search-kjar: Execution default-build of goal org.kie:kie-maven-plugin:7.8.0.Final:build failed: No RuleTable cells in spreadsheet. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.kie:kie-maven-plugin:7.8.0.Final:build (default-build) on project ba-search-kjar: Execution default-build of goal org.kie:kie-maven-plugin:7.8.0.Final:build failed: No RuleTable cells in spreadsheet.
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-build of goal org.kie:kie-maven-plugin:7.8.0.Final:build failed: No RuleTable cells in spreadsheet.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.drools.template.parser.DecisionTableParseException: No RuleTable cells in spreadsheet.
This is because the plugin doesn't understand the rule template, and treats the xls file as a decision table spreadsheet rather than a template spreadsheet.
The kie-maven-plugin is a useful tool that compiles the kjar are build time rather than load time, and gives good diagnostics.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list