mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-28 17:15:55 +00:00
Try to disable mrm to see if the itermittent ClassNotFound errors
disappear in GitHub actions
This commit is contained in:
@@ -47,34 +47,11 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- mrm-maven-plugin creates a proxy backed by the local Maven repo of the main build -->
|
||||
<!-- Thanks to this, the builds invoked from the tests do not have to download all the dependencies from the Central. -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>mrm-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>mrm-start</id>
|
||||
<phase>process-test-classes</phase>
|
||||
<goals>
|
||||
<goal>start</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>mrm-stop</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>stop</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<mrm.repository.url>${mrm.repository.url}</mrm.repository.url>
|
||||
<project.version>${project.version}</project.version>
|
||||
<mvnd.home>${project.basedir}/../daemon/target/maven-distro</mvnd.home>
|
||||
</systemPropertyVariables>
|
||||
|
@@ -159,10 +159,7 @@ public class MvndTestExtension implements BeforeAllCallback, BeforeEachCallback,
|
||||
final Path settingsTemplatePath = Paths.get("src/test/resources/settings-template.xml");
|
||||
try {
|
||||
final String template = new String(Files.readAllBytes(settingsTemplatePath), StandardCharsets.UTF_8);
|
||||
/* mrm.repository.url is set by mrm-maven-plugin */
|
||||
final String mrmsRepoUrl = Objects.requireNonNull(System.getProperty("mrm.repository.url"),
|
||||
"System property mrm.repository.url");
|
||||
final String content = template.replace("${mrm.repository.url}", mrmsRepoUrl);
|
||||
final String content = template;
|
||||
try {
|
||||
Files.write(settingsPath, content.getBytes(StandardCharsets.UTF_8));
|
||||
} catch (Exception e) {
|
||||
|
@@ -1,51 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<settings>
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>mrm-maven-plugin</id>
|
||||
<name>Mock Repository Manager</name>
|
||||
<url>${mrm.repository.url}</url>
|
||||
<mirrorOf>*</mirrorOf>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>it-repo</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>snapshots</id>
|
||||
<url>${mrm.repository.url}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
<updatePolicy>never</updatePolicy>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
<updatePolicy>always</updatePolicy>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>snapshots</id>
|
||||
<url>${mrm.repository.url}</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
<updatePolicy>never</updatePolicy>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
<updatePolicy>always</updatePolicy>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</settings>
|
||||
|
Reference in New Issue
Block a user