mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-29 09:28:53 +00:00
Use takari-local-repository for the main build so that mrm-maven-plugin's writes to the local repo are correct
This commit is contained in:
@@ -94,14 +94,21 @@
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>mrm-maven-plugin</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>mrm-start</id>
|
||||
<phase>process-test-classes</phase>
|
||||
<goals>
|
||||
<goal>start</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>mrm-stop</id>
|
||||
<phase>post-integration-test</phase>
|
||||
<goals>
|
||||
<goal>stop</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
@@ -64,6 +64,12 @@ public class NativeTestClient implements Client {
|
||||
if (!Environment.MAVEN_REPO_LOCAL.hasCommandLineProperty(args)) {
|
||||
cmd.add(Environment.MAVEN_REPO_LOCAL.asCommandLineProperty(layout.getLocalMavenRepository().toString()));
|
||||
}
|
||||
final Path settings = layout.getSettings();
|
||||
if (settings != null && args.stream().noneMatch(arg -> arg.equals("-s") || arg.equals("--settings"))) {
|
||||
cmd.add("-s");
|
||||
cmd.add(settings.toString());
|
||||
}
|
||||
|
||||
final ProcessBuilder builder = new ProcessBuilder(cmd.toArray(new String[0]))
|
||||
.directory(layout.userDir().toFile()) //
|
||||
.redirectErrorStream(true);
|
||||
|
Reference in New Issue
Block a user