This is an automated email from the ASF dual-hosted git repository.
fjtiradosarti pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new ab02861b5f [Fix #3782] Properly resolving root dir in all CI
environments (#3783)
ab02861b5f is described below
commit ab02861b5f656a15ae808ad2a94410a20623d7d8
Author: Francisco Javier Tirado Sarti
<[email protected]>
AuthorDate: Wed Nov 20 14:23:54 2024 +0100
[Fix #3782] Properly resolving root dir in all CI environments (#3783)
* [Fix #3782] Properly resolving root dir in all CI environments
* Update kogito-build/kogito-build-no-bom-parent/pom.xml
Co-authored-by: Gonzalo Muñoz <[email protected]>
* Use relative path for resources
* Change phase to validate
* [Fix #3782] Using relative path
---------
Co-authored-by: Gonzalo Muñoz <[email protected]>
Co-authored-by: gmunozfe <[email protected]>
---
kogito-build/kogito-build-no-bom-parent/pom.xml | 22 +++++++++++++++++++++-
.../pom.xml | 2 +-
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/kogito-build/kogito-build-no-bom-parent/pom.xml
b/kogito-build/kogito-build-no-bom-parent/pom.xml
index 94e930a526..b7c3505d20 100644
--- a/kogito-build/kogito-build-no-bom-parent/pom.xml
+++ b/kogito-build/kogito-build-no-bom-parent/pom.xml
@@ -87,7 +87,6 @@
possible to measure cross-module test coverage -->
<jacoco.exec.file>${project.root.dir}/target/jacoco.exec</jacoco.exec.file>
<!--suppress UnresolvedMavenProperty -->
- <project.root.dir>${maven.multiModuleProjectDirectory}</project.root.dir>
<quarkus.logging.manager>org.jboss.logmanager.LogManager</quarkus.logging.manager>
<tests.surefire.include>**/*Test.java</tests.surefire.include>
<tests.failsafe.include>**/*IT.java</tests.failsafe.include>
@@ -671,10 +670,31 @@
<legacyMode>true</legacyMode>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.commonjava.maven.plugins</groupId>
+ <artifactId>directory-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>directories</id>
+ <goals>
+ <goal>highest-basedir</goal>
+ </goals>
+ <phase>validate</phase>
+ <configuration>
+ <property>project.root.dir</property>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.commonjava.maven.plugins</groupId>
+ <artifactId>directory-maven-plugin</artifactId>
+ </plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
diff --git
a/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-image-integration-test/pom.xml
b/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-image-integration-test/pom.xml
index 0cde3b2706..a9ba1c715f 100644
---
a/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-image-integration-test/pom.xml
+++
b/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-image-integration-test/pom.xml
@@ -87,7 +87,7 @@
<directory>src/main/resources</directory>
</resource>
<resource>
-
<directory>${project.root.dir}/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/main/resources</directory>
+
<directory>../kogito-quarkus-serverless-workflow-integration-test/src/main/resources</directory>
<includes>
<include>expression.sw.json</include>
<include>schema/expressionInput.json</include>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]