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

optaweb-employee-rostering example fails to build with offline Maven repo ZIP

    Details

    • Affects Build:
      CR1
    • Target Release:
    • Fix Build:
      CR1
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      As a workaround the online Red Hat Maven repository [1] can be used instead of the offline maven repository zip file

      [1] - https://maven.repository.redhat.com/ga

      Show
      As a workaround the online Red Hat Maven repository [1] can be used instead of the offline maven repository zip file [1] - https://maven.repository.redhat.com/ga
    • Affects:
      Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Release Notes Text:
      Hide
      As a workaround the online Red Hat Maven repository [1] can be used instead of the offline maven repository zip file

      [1] - https://maven.repository.redhat.com/ga
      Show
      As a workaround the online Red Hat Maven repository [1] can be used instead of the offline maven repository zip file [1] - https://maven.repository.redhat.com/ga

      Description

      When building the example optaweb-employee-rostering with only Maven Central and our product offline Maven repository, the build fails because Maven is unable to download the following artifacts:

      Could not resolve dependencies for project org.optaweb.employeerostering:employee-rostering-server:jar:7.26.0.Final-redhat-00004: The following artifacts could not be resolved: net.jcip:jcip-annotations:jar:1.0.0.redhat-8, org.jboss.logging:jboss-logging:jar:3.3.2.Final-redhat-00001: Could not find artifact net.jcip:jcip-annotations:jar:1.0.0.redhat-8 in bxms-product-repo

      Maven dependency tree reveals that the missing artifacts are pulled in by org.jboss.resteasy:resteasy-jaxrs with the scope test. Since test dependencies are not meant to be included in the product offline Maven repository, the fact that they are missing makes sense.

      The question is, which requirement has higher priority in this case, having runtime-only Maven repository ZIP, vs. being able to build the example with the offline Maven repository.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                anstephe Ant Stephenson
                Reporter:
                marek.winkler Marek Winkler
                Tester:
                Marek Winkler
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: