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

Include missing maven goals on the kieserver-pull.sh script

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 7.13.0.GA
    • 7.10.1.GA
    • Cloud
    • None
    • 2022 Week 05-07 (from Jan 31), 2022 Week 08-10 (from Feb 21), 2022 Week 11-13 (from Mar 14)

    Description

      Today, in some cases, the kieserver-pull.sh script is pulling artifacts twice, during the s2i build and during the image startup.

      This should be one single process and the local m2 repository should contain everything that is needed.

      Chatting with David, he figured out that a few more goals can be added to help to prevent this behavior to happen:

      mvn -e \
          dependency:resolve \
          dependency:resolve-plugins \
          dependency:go-offline \
          clean \
          compile \
          test \
          package \
          -f pom.xml \
          -s ~/.m2/settings.xml \
          --batch-mode \
          -Dcheckstyle.skip=true \
          -Dfabric8.skip=true \
          -Dfindbugs.skip=true \
          -DincludeScope=test \
          -Djacoco.skip=true \
          -Dmaven.javadoc.skip=true \
          -Dmaven.site.skip=true \
          -Dmaven.source.skip=true \
          -Dpmd.skip=true
      

      On kieserver-pull.sh we only used dependency:go-offline, but those other dependency:* goals plus the includeScope=test are the key differences.

      Attachments

        Activity

          People

            amadhusu Achyut Madhusudan
            rhn-support-fspolti Filippe Spolti
            Jakub Schwan Jakub Schwan
            Jakub Schwan Jakub Schwan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: