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

Inconsistency in pom files prevents running unittests from broker source distribution

    XMLWordPrintable

Details

    • Hide

      sed -i 's|<version>2.4.0</version>|<version>2.4.0.amq-710004-redhat-1</version>|' extra-tests/pom.xm

      Show
      sed -i 's|<version>2.4.0</version>|<version>2.4.0.amq-710004-redhat-1</version>|' extra-tests/pom.xm

    Description

      When running unittests, the tests/extra-tests/pom.xml expects to find a parent pom, but it does not find it.

      [ERROR]   The project org.apache.activemq.tests:extra-tests:[unknown-version] (/opt/amq-broker-7.1.0-sources/artemis-pom-2.4.0.amq-710004-redhat-1/tests/extra-tests/pom.xml) has 1 error
      [ERROR]     Non-resolvable parent POM for org.apache.activemq.tests:extra-tests:[unknown-version]: Could not find artifact org.apache.activemq.tests:artemis-tests-pom:pom:2.4.0 in jboss-ga-repository (http://maven.repository.redhat.com/ga) and 'parent.relativePath' points at wrong local POM @ line 24, column 12 -> [Help 2]
      

      The cause seems to be that the tests/pom.xml, which is the parent pom, has a different version set than what is expected.

      tests/extra-tests/pom.xml uses the upstream version, while tests/pom.xml inherits the downstream version with -redhat-x classifier.

      /opt/amq-broker-7.1.0-sources/artemis-pom-2.4.0.amq-710004-redhat-1/tests/pom.xml
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache
      .org/maven-v4_0_0.xsd">
         <parent>
            <groupId>org.apache.activemq</groupId>
            <artifactId>artemis-pom</artifactId>
            <version>2.4.0.amq-710004-redhat-1</version>
         </parent>
      
         <name>ActiveMQ Artemis Tests POM</name>
         <modelVersion>4.0.0</modelVersion>
         <groupId>org.apache.activemq.tests</groupId>
         <artifactId>artemis-tests-pom</artifactId>
         <packaging>pom</packaging>
      [...]
      
      /opt/amq-broker-7.1.0-sources/artemis-pom-2.4.0.amq-710004-redhat-1/tests/extra-tests/pom.xml
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
         <modelVersion>4.0.0</modelVersion>
         <parent>
            <groupId>org.apache.activemq.tests</groupId>
            <artifactId>artemis-tests-pom</artifactId>
            <version>2.4.0</version>
         </parent>
      [...]
      

      Attachments

        Issue Links

          Activity

            People

              mtaylor1@redhat.com Martyn Taylor (Inactive)
              jdanek@redhat.com Jiri Danek
              Michal Toth Michal Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: