Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1772

Generating Maven jbpm-workitems-archetype fails due to missing "tests" jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.5.1.GA
    • 7.0.0.GA, 7.0.1.GA, 7.0.2.GA, 7.1.0.GA, 7.1.1.GA
    • Maven Repository
    • None
    • OS: RHEL 7.6
      Maven version: 3.5.4
      Java version: OpenJDK 1.8.0_191

    • 1
    • CR1
    • Hide

      1. Create a folder on the filesystem
      2. "cd" into the folder
      3. Run the following command:
      mvn archetype:generate -DarchetypeGroupId=org.jbpm -DarchetypeArtifactId=jbpm-workitems-archetype -DgroupId=com.example -DartifactId=myworkitem -DclassPrefix=MyWorkItem -DarchetypeVersion=7.11.0.Final-redhat-00004 -Dversion=1.0.0-SNAPSHOT
      4. "cd" into the newly created "myworkitem" directory
      5. Run the following command:
      mvn clean package
      6. Observe error message

      Show
      1. Create a folder on the filesystem 2. "cd" into the folder 3. Run the following command: mvn archetype:generate -DarchetypeGroupId=org.jbpm -DarchetypeArtifactId=jbpm-workitems-archetype -DgroupId=com.example -DartifactId=myworkitem -DclassPrefix=MyWorkItem -DarchetypeVersion=7.11.0.Final-redhat-00004 -Dversion=1.0.0-SNAPSHOT 4. "cd" into the newly created "myworkitem" directory 5. Run the following command: mvn clean package 6. Observe error message
    • 2019 Week 08-10

      Attempting to generate a Work Item Handler via the command line using the Maven "jbpm-workitems-archetype" archetype fails with the following error:

      [ERROR] Failed to execute goal on project myworkitem: Could not resolve dependencies for project org.jbpm.contrib:myworkitem:jar:7.11.0.Final-redhat-00004: Failure to find org.jbpm:jbpm-workitems-core:jar:tests:7.11.0.Final-redhat-00004 in http://maven.repository.redhat.com/ga was cached in the local repository, resolution will not be reattempted until the update interval of jboss-ga-repository has elapsed or updates are forced -> [Help 1]

      This error results from the following dependency, found inside the "pom.xml" for the "jbpm-workitems-archetype":

      <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-workitems-core</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
      </dependency>

      Red Hat repositories [1] do not contain the "-tests" JARs, while upstream repositories [2] do.

      [1] https://maven.repository.redhat.com/nexus/content/groups/product-ga/org/jbpm/jbpm-workitems-core/
      [2] https://repository.jboss.org/nexus/content/repositories/public-jboss/org/jbpm/jbpm-workitems-core/

              mnovotny@redhat.com Marek Novotny
              rhn-gps-dlaffran David Laffranchi (Inactive)
              Marek Winkler Marek Winkler (Inactive)
              Marek Winkler Marek Winkler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: