Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-647

Workbench-generated project is missing drools dependencies when cloned

XMLWordPrintable

    • 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:

      1. Create a rule project using the Workbench
      2. Go to Authoring > Administration and click on the project from the File Explorer
      3. Copy the GIT repo URL using the copy button
      4. Open a command prompt and run "git clone <url>"
      5. cd into the project source directory
      6. 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.

              mdessi-1 Massimiliano Dessi
              rmorrise_jira Russell Morrisey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: