This is an automated email from the ASF dual-hosted git repository.
tkobayas 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 d37152fb851 [incubator-kie-drools-6819] "CI :: Build" job fails in
KJarLoadingTest because of missing kjar build (#6818)
d37152fb851 is described below
commit d37152fb85119cc139ce904668bc6b9e970936a0
Author: Toshiya Kobayashi <[email protected]>
AuthorDate: Wed Jul 22 18:21:31 2026 +0900
[incubator-kie-drools-6819] "CI :: Build" job fails in KJarLoadingTest
because of missing kjar build (#6818)
- use maven-invoker-plugin for hidden dependency. Maven local repo check is
fragile, so build it unconditionally. The build is cheap.
---
.../standalone/kie-ci-with-domain/tests/pom.xml | 21 +++++++++++++
.../standalone/kie-ci-without-domain/tests/pom.xml | 34 ++++++++++++++++++++++
2 files changed, 55 insertions(+)
diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml
b/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml
index eec6e37d1be..d3d524dcaf5 100644
--- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml
@@ -122,6 +122,27 @@
</testResources>
<plugins>
+ <!-- The tests load test-kjar at runtime from the local Maven repo via
kie-ci.
+ Always ensure it is installed before tests run. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>build-test-kjar</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ <configuration>
+ <pom>${basedir}/../test-kjar/pom.xml</pom>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
diff --git
a/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml
b/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml
index 0f5c245f1b2..199afd2b035 100644
--- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml
@@ -117,6 +117,40 @@
</testResources>
<plugins>
+ <!-- The tests load test-kjar (and its test-domain dep) at runtime from
the
+ local Maven repo via kie-ci. Always ensure they are installed
before tests run. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>build-test-domain</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ <configuration>
+ <pom>${basedir}/../test-domain/pom.xml</pom>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ </configuration>
+ </execution>
+ <execution>
+ <id>build-test-kjar</id>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ <configuration>
+ <pom>${basedir}/../test-kjar/pom.xml</pom>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]