mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 04:59:54 +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:
25
.mvn/extensions.xml
Normal file
25
.mvn/extensions.xml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Copyright 2019 the original author or authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<groupId>io.takari.aether</groupId>
|
||||||
|
<artifactId>takari-local-repository</artifactId>
|
||||||
|
<version>0.11.3</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
@@ -94,14 +94,21 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>mrm-maven-plugin</artifactId>
|
<artifactId>mrm-maven-plugin</artifactId>
|
||||||
<version>1.2.0</version>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>mrm-start</id>
|
||||||
<phase>process-test-classes</phase>
|
<phase>process-test-classes</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>start</goal>
|
<goal>start</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>mrm-stop</id>
|
||||||
|
<phase>post-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>stop</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@@ -64,6 +64,12 @@ public class NativeTestClient implements Client {
|
|||||||
if (!Environment.MAVEN_REPO_LOCAL.hasCommandLineProperty(args)) {
|
if (!Environment.MAVEN_REPO_LOCAL.hasCommandLineProperty(args)) {
|
||||||
cmd.add(Environment.MAVEN_REPO_LOCAL.asCommandLineProperty(layout.getLocalMavenRepository().toString()));
|
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]))
|
final ProcessBuilder builder = new ProcessBuilder(cmd.toArray(new String[0]))
|
||||||
.directory(layout.userDir().toFile()) //
|
.directory(layout.userDir().toFile()) //
|
||||||
.redirectErrorStream(true);
|
.redirectErrorStream(true);
|
||||||
|
Reference in New Issue
Block a user