mirror of https://github.com/apache/maven.git
Add .mvn directory in project root
This commit is contained in:
parent
6de0ea10df
commit
fe968ff43b
|
@ -0,0 +1 @@
|
||||||
|
.mvn directory should exist in project root
|
|
@ -19,6 +19,7 @@
|
||||||
package org.apache.maven.it;
|
package org.apache.maven.it;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.nio.file.Files;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.maven.shared.verifier.Verifier;
|
import org.apache.maven.shared.verifier.Verifier;
|
||||||
|
@ -46,6 +47,7 @@ public class MavenITmng3043BestEffortReactorResolutionTest extends AbstractMaven
|
||||||
@Test
|
@Test
|
||||||
public void testitTestPhase() throws Exception {
|
public void testitTestPhase() throws Exception {
|
||||||
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-3043");
|
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-3043");
|
||||||
|
Files.createDirectories(testDir.toPath().resolve(".mvn"));
|
||||||
|
|
||||||
Verifier verifier = newVerifier(testDir.getAbsolutePath());
|
Verifier verifier = newVerifier(testDir.getAbsolutePath());
|
||||||
verifier.setAutoclean(false);
|
verifier.setAutoclean(false);
|
||||||
|
|
|
@ -57,6 +57,7 @@ public class MavenITmng4660OutdatedPackagedArtifact extends AbstractMavenIntegra
|
||||||
public void testShouldWarnWhenPackagedArtifactIsOutdated() throws Exception {
|
public void testShouldWarnWhenPackagedArtifactIsOutdated() throws Exception {
|
||||||
final File testDir =
|
final File testDir =
|
||||||
ResourceExtractor.simpleExtractResources(getClass(), "/mng-4660-outdated-packaged-artifact");
|
ResourceExtractor.simpleExtractResources(getClass(), "/mng-4660-outdated-packaged-artifact");
|
||||||
|
Files.createDirectories(testDir.toPath().resolve(".mvn"));
|
||||||
|
|
||||||
// 1. Package the whole project
|
// 1. Package the whole project
|
||||||
final Verifier verifier1 = newVerifier(testDir.getAbsolutePath());
|
final Verifier verifier1 = newVerifier(testDir.getAbsolutePath());
|
||||||
|
|
Loading…
Reference in New Issue