-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
None
-
NEW
-
NEW
When I clone a rule project created from the workbench and try to build it using mvn, I get a compiler error. Maven is not pulling in the required KIE library dependencies.
Steps to reproduce:
- Create a rule project using the Workbench
- Go to Authoring > Administration and click on the project from the File Explorer
- Copy the GIT repo URL using the copy button
- Open a command prompt and run "git clone <url>"
- cd into the project source directory
- mvn clean install
The POM of the generated project is missing the dependencies for Drools. The generated POM must be modified with the additional information before it can be built. I was able to work around the issue by copying missing dependencies from another project:
<properties> <runtime.version>6.5.0.Final</runtime.version> </properties> <dependencies> <dependency> <groupId>org.kie</groupId> <artifactId>kie-api</artifactId> <version>${runtime.version}</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <version>${runtime.version}</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-decisiontables</artifactId> <version>${runtime.version}</version> </dependency> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-test</artifactId> <version>${runtime.version}</version> </dependency> </dependencies>
In addition to missing dependencies, the POM also does not include repo declarations for JBoss. The generated POM should really declare these repositories, rather than relying on my local settings.xml.