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

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

commit 16600d5ef402c3613ec1cdf7cebf1eb3a32bbd55
Author: Marián Macik <[email protected]>
AuthorDate: Thu May 6 21:03:32 2021 +0200

    Enhancements #3
---
 .../java/org/kie/kogito/benchmarks/framework/Commands.java     | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java 
b/framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java
index 231c1fa..6b9ca73 100644
--- a/framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java
+++ b/framework/src/main/java/org/kie/kogito/benchmarks/framework/Commands.java
@@ -79,6 +79,12 @@ public class Commands {
                 return sys;
             }
         }
+
+        String mainBuildRepo = System.getProperty("maven.repo.local");
+        if (StringUtils.isNotBlank(mainBuildRepo)) {
+            return mainBuildRepo;
+        }
+
         return System.getProperty("user.home") + File.separator + ".m2" + 
File.separator + "repository";
     }
 
@@ -271,6 +277,9 @@ public class Commands {
         }
         buildCmd.addAll(Arrays.asList(baseCommand));
         buildCmd.add("-Dmaven.repo.local=" + getLocalMavenRepoDir());
+        // use the same settings.xml as the main build
+        buildCmd.add("-s");
+        buildCmd.add(System.getProperty("maven.settings"));
 
         return Collections.unmodifiableList(buildCmd);
     }
@@ -602,6 +611,7 @@ public class Commands {
             pb.redirectOutput(ProcessBuilder.Redirect.to(log));
             Process p = null;
             try {
+                LOGGER.info("Running command: " + String.join(" ", command));
                 p = pb.start();
             } catch (IOException e) {
                 e.printStackTrace();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to