You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ti...@apache.org on 2026/05/01 17:40:11 UTC

(incubator-kie-drools) branch main updated: [kie-drools#6669] Building `drools-test-suite` is dependent on `kie-maven-plugin` being remotely available (#6687)

This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/main by this push:
     new 8456d71c41 [kie-drools#6669] Building `drools-test-suite` is dependent on `kie-maven-plugin` being remotely available (#6687)
8456d71c41 is described below

commit 8456d71c41a448a8aa8c9ff2662779ea0c93b6a6
Author: Yeser Amer <ye...@ibm.com>
AuthorDate: Fri May 1 19:40:07 2026 +0200

    [kie-drools#6669] Building `drools-test-suite` is dependent on `kie-maven-plugin` being remotely available (#6687)
    
    * Ensure kie-maven-plugin is built
    
    * Ensure kie-maven-plugin is built
    
    * revert
    
    * Test
    
    * Update
    
    * version revert
    
    * CR
    
    * Minor
---
 drools-test-coverage/test-suite/pom.xml | 34 ++++++++++++++++++++++++++++++++-
 kie-maven-plugin/pom.xml                |  4 ----
 2 files changed, 33 insertions(+), 5 deletions(-)

diff --git a/drools-test-coverage/test-suite/pom.xml b/drools-test-coverage/test-suite/pom.xml
index e0bde11a53..c6ac7e4df8 100644
--- a/drools-test-coverage/test-suite/pom.xml
+++ b/drools-test-coverage/test-suite/pom.xml
@@ -142,7 +142,6 @@
       <artifactId>kie-test-util</artifactId>
       <scope>test</scope>
     </dependency>
-
     <dependency>
       <groupId>org.drools.testcoverage</groupId>
       <artifactId>drools-test-coverage-jars</artifactId>
@@ -180,6 +179,39 @@
     </dependency>
   </dependencies>
 
+  <build>
+    <plugins>
+      <!-- Ensures kie-maven-plugin is built before this module in the Maven reactor -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <dependencies>
+          <dependency>
+            <groupId>org.kie</groupId>
+            <artifactId>kie-maven-plugin</artifactId>
+            <version>${project.version}</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <!-- The tests in this module use generated KJARs stored under src/test/resources/kjar.
+           They are produced by the drools-test-coverage-jars setup/profile when missing, and
+           must be removed by clean to avoid reusing stale artifacts between builds. -->
+      <plugin>
+        <artifactId>maven-clean-plugin</artifactId>
+        <configuration>
+          <filesets>
+            <fileset>
+              <directory>src/test/resources/kjar</directory>
+              <includes>
+                <include>*.jar</include>
+              </includes>
+            </fileset>
+          </filesets>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
   <profiles>
     <profile>
       <id>runTurtleTests</id>
diff --git a/kie-maven-plugin/pom.xml b/kie-maven-plugin/pom.xml
index 1dafa76bed..ff14d14c53 100644
--- a/kie-maven-plugin/pom.xml
+++ b/kie-maven-plugin/pom.xml
@@ -144,10 +144,6 @@
           <groupId>aopalliance</groupId>
           <artifactId>aopalliance</artifactId>
         </exclusion>
-        <exclusion>
-          <groupId>aopalliance</groupId>
-          <artifactId>aopalliance</artifactId>
-        </exclusion>
       </exclusions>
     </dependency>
     <dependency>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org