Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-829

Missing dependency when building example

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • AMQ 7.0.2.GA
    • None
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • Hide

      Follow instructions in section 4.4 of the documentation referenced below.

      Show
      Follow instructions in section 4.4 of the documentation referenced below.
    • AMQ Broker 7.1 Sprint 2

      While following documentation "Using AMQ Broker", section "4.4 RUNNING THE INCLUDED EXAMPLES"
      (https://access.redhat.com/documentation/en-us/red_hat_jboss_amq/7.0/html-single/using_amq_broker/#examples), I get the following error:

      [kvdr@rhm-x3455-02 queue]$ mvn clean verify
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building ActiveMQ Artemis JMS Queue Example 2.0.0.amq-700011-redhat-1
      [INFO] ------------------------------------------------------------------------
      Downloading: file:///home/kvdr/jboss-amq-7.0.2.GA-maven-repository/maven-repository/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata.xml
      Downloading: file:///home/kvdr/jboss-amq-7.0.2.GA-maven-repository/maven-repository/commons-collections/commons-collections/3.2.2.redhat-2/commons-collections-3.2.2.redhat-2.pom
      Downloading: https://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2.2.redhat-2/commons-collections-3.2.2.redhat-2.pom
      [WARNING] The POM for commons-collections:commons-collections:jar:3.2.2.redhat-2 is missing, no dependency information available
      Downloading: file:///home/kvdr/jboss-amq-7.0.2.GA-maven-repository/maven-repository/commons-collections/commons-collections/3.2.2.redhat-2/commons-collections-3.2.2.redhat-2.jar
      Downloading: https://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2.2.redhat-2/commons-collections-3.2.2.redhat-2.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.878 s
      [INFO] Finished at: 2017-09-25T11:23:20-04:00
      [INFO] Final Memory: 18M/143M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project queue: Could not resolve dependencies for project org.apache.activemq.examples.broker:queue:jar:2.0.0.amq-700011-redhat-1: Could not find artifact commons-collections:commons-collections:jar:3.2.2.redhat-2 in jboss-amq-maven-repository (file:///home/kvdr/jboss-amq-7.0.2.GA-maven-repository/maven-repository) -> [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
      

      The test was run on a pristine RHEL7 server with java-1.8.0-openjdk installed; Maven 3.5 was downloaded manually and installed as per instructions in section 4.4. The broker has had an instance created and it has been started and stopped successfully (per instructions in section 4.1 and 4.2).

      A local copy of the Red Hat JBoss AMQ Broker 7.0.2 Maven Repository was unzipped locally at /home/kvdr/jboss-amq-7.0.2.GA-maven-repository/maven-repository, and I can verify that the file referenced in the above error does not exist (there is no commons-collections directory in the repository that I can see):

      [kvdr@rhm-x3455-02 queue]$ ll /home/kvdr/jboss-amq-7.0.2.GA-maven-repository/maven-repository
      total 0
      drwxrwxr-x.  5 kvdr kvdr  45 Jul 27 05:09 com
      drwxrwxr-x.  3 kvdr kvdr  31 Jul 27 05:09 commons-beanutils
      drwxrwxr-x.  3 kvdr kvdr  29 Jul 27 05:09 commons-logging
      drwxrwxr-x.  5 kvdr kvdr  46 Jul 27 05:09 io
      drwxrwxr-x.  3 kvdr kvdr  19 Jul 27 05:09 log4j
      drwxrwxr-x. 12 kvdr kvdr 155 Jul 27 05:09 org
      

      I have attached the settings.xml file created as per section 4.4 in the docs. The settings.xml file was copied from the Maven 3.5 install and placed locally in ~/.m2 where it was modified as instructed in section 4.4, see the attached file.

        1. settings.xml
          11 kB
        2. settings (1).xml
          11 kB

              rh-ee-ataylor Andy Taylor
              kvanderr@redhat.com Kim van der Riet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: