Add .mvn directory in project root

This commit is contained in:
Slawomir Jaranowski 2024-06-01 23:02:11 +02:00
parent 6de0ea10df
commit fe968ff43b
3 changed files with 4 additions and 0 deletions

1
its/.mvn/readme.txt Normal file
View File

@ -0,0 +1 @@
.mvn directory should exist in project root

View File

@ -19,6 +19,7 @@
package org.apache.maven.it;
import java.io.File;
import java.nio.file.Files;
import java.util.List;
import org.apache.maven.shared.verifier.Verifier;
@ -46,6 +47,7 @@ public class MavenITmng3043BestEffortReactorResolutionTest extends AbstractMaven
@Test
public void testitTestPhase() throws Exception {
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-3043");
Files.createDirectories(testDir.toPath().resolve(".mvn"));
Verifier verifier = newVerifier(testDir.getAbsolutePath());
verifier.setAutoclean(false);

View File

@ -57,6 +57,7 @@ public class MavenITmng4660OutdatedPackagedArtifact extends AbstractMavenIntegra
public void testShouldWarnWhenPackagedArtifactIsOutdated() throws Exception {
final File testDir =
ResourceExtractor.simpleExtractResources(getClass(), "/mng-4660-outdated-packaged-artifact");
Files.createDirectories(testDir.toPath().resolve(".mvn"));
// 1. Package the whole project
final Verifier verifier1 = newVerifier(testDir.getAbsolutePath());