ARTEMIS-3870: mark -all client deps optional in distribution pom, avoid passing on... main
authorRobbie Gemmell <robbie@apache.org>
Wed, 22 Jun 2022 17:00:02 +0000 (18:00 +0100)
committerGary Tully <gary.tully@gmail.com>
Thu, 23 Jun 2022 08:42:15 +0000 (09:42 +0100)
artemis-distribution/pom.xml
tests/e2e-tests/pom.xml
tests/smoke-tests/pom.xml

index c516d71baa9ed76d635f402af9cb95e14ba0847d..5296eeb69e1765593c7a84d6a1e428ced2a29360 100644 (file)
 
    <dependencies>
      <!-- ActiveMQ Artemis artifacts -->
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jms-client-all</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jakarta-client-all</artifactId>
-         <version>${project.version}</version>
-      </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>
          <artifactId>artemis-boot</artifactId>
          <artifactId>artemis-website</artifactId>
          <version>${project.version}</version>
       </dependency>
+
+      <!-- Must be optional to avoid passing on, as they clash
+           with each other, and contain duplicates of their deps
+           with those from the original jms client dep  -->
+      <dependency>
+         <groupId>org.apache.activemq</groupId>
+         <artifactId>artemis-jms-client-all</artifactId>
+         <version>${project.version}</version>
+         <optional>true</optional>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.activemq</groupId>
+         <artifactId>artemis-jakarta-client-all</artifactId>
+         <version>${project.version}</version>
+         <optional>true</optional>
+      </dependency>
+
       <!-- dependencies -->
        <dependency>
            <groupId>org.apache.activemq</groupId>
index cc43a3be6fcdb5b747744cbce03b803c5be5f4a9..dd3d82da889c2ffd3eed7288a4caa77f4b287a92 100644 (file)
          <version>${project.version}</version>
          <scope>compile</scope>
          <type>pom</type>
-         <exclusions>
-            <exclusion>
-               <groupId>org.apache.activemq</groupId>
-               <artifactId>artemis-jms-client-all</artifactId>
-            </exclusion>
-            <exclusion>
-               <groupId>org.apache.activemq</groupId>
-               <artifactId>artemis-jakarta-client-all</artifactId>
-            </exclusion>
-         </exclusions>
       </dependency>
       <dependency>
          <groupId>org.testcontainers</groupId>
index 34298fc98460a32c0d7db0fb8196c83375fc8184..2be5cc24deb5a4de215035abd129cad169ed8b3f 100644 (file)
          <version>${project.version}</version>
          <scope>compile</scope>
          <type>pom</type>
-         <exclusions>
-            <exclusion>
-               <groupId>org.apache.activemq</groupId>
-               <artifactId>artemis-jms-client-all</artifactId>
-            </exclusion>
-            <exclusion>
-               <groupId>org.apache.activemq</groupId>
-               <artifactId>artemis-jakarta-client-all</artifactId>
-            </exclusion>
-         </exclusions>
       </dependency>
       <dependency>
          <groupId>org.apache.activemq</groupId>