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

Broker examples cannot be built, because of missing proton-j dependency (in offline repo)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • AMQ 7.2.0.GA
    • broker-core
    • None
    • Hide
      1. Download and install the broker.
      2. Download and unzip the broker maven repository.
      3. Configure ~/.m2/settings.xml per instructions in the broker maven repository example-settings.xml file.
      4. Go to "~/examples/features/standard/" folder and run particular examples (f.e. broker-plugin): "mvn verify".
      Show
      Download and install the broker. Download and unzip the broker maven repository. Configure ~/.m2/settings.xml per instructions in the broker maven repository example-settings.xml file. Go to "~/examples/features/standard/" folder and run particular examples (f.e. broker-plugin): "mvn verify".

      Broker examples build fails on error:

      [root@dhcp-144-237 broker-plugin]# mvn verify
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building ActiveMQ Artemis Broker Plugin Example 2.6.1.amq-720002-redhat-1
      [INFO] ------------------------------------------------------------------------
      Downloading from jboss-earlyaccess-repository: http://maven.repository.redhat.com/earlyaccess/all/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata.xml
      Downloaded from jboss-earlyaccess-repository: http://maven.repository.redhat.com/earlyaccess/all/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata.xml (426 B at 518 B/s)
      Downloading from jboss-earlyaccess-repository: http://maven.repository.redhat.com/earlyaccess/all/org/apache/qpid/proton-j/0.27.1.redhat-1/proton-j-0.27.1.redhat-1.pom
      [WARNING] The POM for org.apache.qpid:proton-j:jar:0.27.1.redhat-1 is missing, no dependency information available
      Downloading from jboss-earlyaccess-repository: http://maven.repository.redhat.com/earlyaccess/all/org/apache/qpid/proton-j/0.27.1.redhat-1/proton-j-0.27.1.redhat-1.jar
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.997 s
      [INFO] Finished at: 2018-06-19T13:44:30+02:00
      [INFO] Final Memory: 17M/132M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project broker-plugin: Could not resolve dependencies for project org.apache.activemq.examples.broker:broker-plugin:jar:2.6.1.amq-720002-redhat-1: Could not find artifact org.apache.qpid:proton-j:jar:0.27.1.redhat-1 in jboss-earlyaccess-repository (http://maven.repository.redhat.com/earlyaccess/all/) -> [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
      
      # find /opt/AMQ7/jboss-amq-7.2.0.CR3-maven-repository/maven-repository -iname "*proton-j*"
      
      # cat settings.xml
      <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
          <profiles>
              <!-- Configure the AMQ7 Maven repository -->
              <profile>
                  <id>jboss-amq-repository</id>
                  <repositories>
                      <repository>
                          <id>jboss-amq-repository</id>
                          <url>file:///opt/AMQ7/jboss-amq-7.2.0.CR3-maven-repository/maven-repository</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </repository>
                  </repositories>
                  <pluginRepositories>
                      <pluginRepository>
                          <id>jboss-amq-repository</id>
                          <url>file:///opt/AMQ7/jboss-amq-7.2.0.CR3-maven-repository/maven-repository</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </pluginRepository>
                  </pluginRepositories>
              </profile>
              <!-- Configure the JBoss GA Maven repository -->
              <profile>
                  <id>jboss-ga-repository</id>
                  <repositories>
                      <repository>
                          <id>jboss-ga-repository</id>
                          <url>http://maven.repository.redhat.com/ga</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </repository>
                  </repositories>
                  <pluginRepositories>
                      <pluginRepository>
                          <id>jboss-ga-repository</id>
                          <url>http://maven.repository.redhat.com/ga</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </pluginRepository>
                  </pluginRepositories>
              </profile>
              <!-- Configure the JBoss Early Access Maven repository -->
              <profile>
                  <id>jboss-earlyaccess-repository</id>
                  <repositories>
                      <repository>
                          <id>jboss-earlyaccess-repository</id>
                          <url>http://maven.repository.redhat.com/earlyaccess/all/</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </repository>
                  </repositories>
                  <pluginRepositories>
                      <pluginRepository>
                          <id>jboss-earlyaccess-repository</id>
                          <url>http://maven.repository.redhat.com/earlyaccess/all/</url>
                          <releases>
                              <enabled>true</enabled>
                          </releases>
                          <snapshots>
                              <enabled>false</enabled>
                          </snapshots>
                      </pluginRepository>
                  </pluginRepositories>
              </profile>
          </profiles>
          <activeProfiles>
              <!-- Optionally, make the repository active by default -->
              <activeProfile>jboss-amq-repository</activeProfile>
              <activeProfile>jboss-ga-repository</activeProfile>
              <activeProfile>jboss-earlyaccess-repository</activeProfile>
          </activeProfiles>
      </settings>
      

            mtaylor1@redhat.com Martyn Taylor (Inactive)
            psvobodo@redhat.com Petra Svobodova (Inactive)
            Michal Toth Michal Toth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: