Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3036

flight-service quickstart fails to build due to dependency failure

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.10.3.Final
    • 5.8.2.Final
    • Build System
    • None
    • Hide

      Download 5.8.2 Final quickstart release zip file

      extract zip file

      cd quickstart-5.8.2.Final

      mvn -DskipTests clean compile package

      Show
      Download 5.8.2 Final quickstart release zip file extract zip file cd quickstart-5.8.2.Final mvn -DskipTests clean compile package
    • Workaround Exists

      [INFO] REST-AT to JTA Bridge Quickstart: JPA .............. SUCCESS [ 14.800 s]
      [INFO] REST-AT to JTA Bridge Quickstart: JMS .............. SUCCESS [ 0.587 s]
      [INFO] Narayana Quickstarts: REST-AT with undertow ........ SUCCESS [ 7.526 s]
      [INFO] RESTTX Quickstarts ................................. SUCCESS [ 0.000 s]
      [INFO] LRA Quickstart flight-service ...................... FAILURE [ 47.077 s]
      [INFO] LRA Quickstart hotel-service ....................... SKIPPED
      [INFO] LRA Quickstart trip-controller ..................... SKIPPED
      [INFO] LRA Quickstart trip-client ......................... SKIPPED
      [INFO] Run the example locally ............................ SKIPPED
      [INFO] RESTTX Quickstarts ................................. SKIPPED
      [INFO] xts-demo-all ....................................... SKIPPED
      [INFO] xts-demo-core ...................................... SKIPPED
      [INFO] xts-demo-webservices ............................... SKIPPED
      [INFO] xts-demo-war ....................................... SKIPPED
      [INFO] xts-demo-ear ....................................... SKIPPED
      [INFO] xts-demo-test ...................................... SKIPPED
      [INFO] JBoss Narayana Quickstarts: Simple WS-AT Web service, bridged to and from JTA. Bridges three servers SKIPPED
      [INFO] JBoss Narayana Quickstarts: Simple WS-AT Web service, bridged to and from JTA. Bridges three servers where one service invokes another SKIPPED
      [INFO] XTS Examples ....................................... SKIPPED
      [INFO] XTS over SSL Quickstart ............................ SKIPPED
      [INFO] setCheckedActionFactoryExample ..................... SKIPPED
      [INFO] optimistic ......................................... SKIPPED
      [INFO] pessimistic ........................................ SKIPPED
      [INFO] stm-jta ............................................ SKIPPED
      [INFO] JBoss Core Examples ................................ SKIPPED
      [INFO] narayana-quickstarts-all ........................... SKIPPED
      [INFO] jts-docker ......................................... SKIPPED
      [INFO] Narayana Quickstarts: JBTM and OSGI ................ SKIPPED
      [INFO] Narayana Quickstart: Standalone JTA 1.2 and Hibernate Quickstart SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 03:05 min
      [INFO] Finished at: 2018-06-20T17:19:36Z
      [INFO] Final Memory: 145M/738M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project flight-service: Could not resolve dependencies for project org.jboss.narayan a.quickstart.rts.lra:flight-service:war:5.8.2.Final: Could not find artifact org.eclipse.microprofile.lra:microprofile -lra-api:jar:1.0-SNAPSHOT in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/) -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :flight-service

            [JBTM-3036] flight-service quickstart fails to build due to dependency failure

            mindcrime_jira if you take a later release (the last one for example 5.10.3.Final) this issue should be resolved. Would it be possible to mark this issue as fixed in a later release?

            Michael Musgrove added a comment - mindcrime_jira if you take a later release (the last one for example 5.10.3.Final) this issue should be resolved. Would it be possible to mark this issue as fixed in a later release?

            So the simplest workaround is to build it manually:

              git clone https://github.com/jbosstm/microprofile-lra
              cd microprofile-lra/
              git checkout microprofile-lra
              cd ..
              ./build.sh -f microprofile-lra/pom.xml -B clean install
            

            or you can run it from the script: export WORKSPACE=`pwd`; ./scripts/hudson/quickstart.sh

            Michael Musgrove added a comment - So the simplest workaround is to build it manually: git clone https: //github.com/jbosstm/microprofile-lra cd microprofile-lra/ git checkout microprofile-lra cd .. ./build.sh -f microprofile-lra/pom.xml -B clean install or you can run it from the script: export WORKSPACE=`pwd`; ./scripts/hudson/quickstart.sh

            In version 5.8.2 Final of the quickstarts the eclipse microprofile-lra artifact needs to be built first. I see we didn't include that step in the README, apologies for that, but if you run the quickstarts from the script it will be built automatically:

            export WORKSPACE=`pwd`; ./scripts/hudson/quickstart.sh
            

            We have since fixed it by making sure the dependency is available in a public repo so you wont have the same issue in version 5.8.3 Final

            Michael Musgrove added a comment - In version 5.8.2 Final of the quickstarts the eclipse microprofile-lra artifact needs to be built first. I see we didn't include that step in the README, apologies for that, but if you run the quickstarts from the script it will be built automatically: export WORKSPACE=`pwd`; ./scripts/hudson/quickstart.sh We have since fixed it by making sure the dependency is available in a public repo so you wont have the same issue in version 5.8.3 Final

            FWIW, I took a stab at getting it to build by building and installing lra separately, but no luck so far. There's still a mismatch somewhere that I ran out of time to chase down while I was working on this yesterday.

            Phillip Rhodes (Inactive) added a comment - FWIW, I took a stab at getting it to build by building and installing lra separately, but no luck so far. There's still a mismatch somewhere that I ran out of time to chase down while I was working on this yesterday.

            This is caused by the changes to using the eclipse microprofile LRA spec jar. Mike is there a good coordinate we can update this quickstart to use yet or do we have to recommend the workaround (to build https://github.com/eclipse/microprofile-lra by hand?)

            Tom Jenkinson added a comment - This is caused by the changes to using the eclipse microprofile LRA spec jar. Mike is there a good coordinate we can update this quickstart to use yet or do we have to recommend the workaround (to build https://github.com/eclipse/microprofile-lra by hand?)

              rhn-engineering-mmusgrov Michael Musgrove
              mindcrime_jira Phillip Rhodes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: