mirror of https://github.com/apache/maven.git
[MNG-8133] IT for ${project.rootDirectory} in external parent (#368)
This commit is contained in:
parent
fa8432713a
commit
4e1de4ef6e
|
@ -0,0 +1,46 @@
|
||||||
|
/*
|
||||||
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
* or more contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
|
* to you 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.
|
||||||
|
*/
|
||||||
|
package org.apache.maven.it;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
import org.apache.maven.shared.verifier.Verifier;
|
||||||
|
import org.apache.maven.shared.verifier.util.ResourceExtractor;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
public class MavenITmng8133RootDirectoryInParentTest extends AbstractMavenIntegrationTestCase {
|
||||||
|
public MavenITmng8133RootDirectoryInParentTest() {
|
||||||
|
super("[4.0.0-beta-5,)");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRootDirectoryInParent() throws Exception {
|
||||||
|
File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-8133-root-directory-in-parent");
|
||||||
|
|
||||||
|
Verifier verifier = newVerifier(new File(testDir, "parent").getAbsolutePath());
|
||||||
|
verifier.addCliArgument("install");
|
||||||
|
verifier.execute();
|
||||||
|
verifier.verifyErrorFreeLog();
|
||||||
|
|
||||||
|
verifier = newVerifier(new File(testDir, "child").getAbsolutePath());
|
||||||
|
verifier.addCliArgument("install");
|
||||||
|
verifier.execute();
|
||||||
|
verifier.verifyErrorFreeLog();
|
||||||
|
}
|
||||||
|
}
|
|
@ -120,6 +120,7 @@ public class TestSuiteOrdering implements ClassOrderer {
|
||||||
* the tests are to finishing. Newer tests are also more likely to fail, so this is
|
* the tests are to finishing. Newer tests are also more likely to fail, so this is
|
||||||
* a fail fast technique as well.
|
* a fail fast technique as well.
|
||||||
*/
|
*/
|
||||||
|
suite.addTestSuite(MavenITmng8133RootDirectoryInParentTest.class);
|
||||||
suite.addTestSuite(MavenITmng8230CIFriendlyTest.class);
|
suite.addTestSuite(MavenITmng8230CIFriendlyTest.class);
|
||||||
suite.addTestSuite(MavenITmng7255InferredGroupIdTest.class);
|
suite.addTestSuite(MavenITmng7255InferredGroupIdTest.class);
|
||||||
suite.addTestSuite(MavenITmng8220ExtensionWithDITest.class);
|
suite.addTestSuite(MavenITmng8220ExtensionWithDITest.class);
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.1.0">
|
||||||
|
<parent>
|
||||||
|
<groupId>org.apache.maven.its.mng8133</groupId>
|
||||||
|
<artifactId>parent</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>child</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
</project>
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.1.0">
|
||||||
|
<groupId>org.apache.maven.its.mng8133</groupId>
|
||||||
|
<artifactId>parent</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<reporting>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.its.plugins</groupId>
|
||||||
|
<artifactId>maven-it-plugin-touch</artifactId>
|
||||||
|
<version>2.1-SNAPSHOT</version>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.rootDirectory}/target/</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</reporting>
|
||||||
|
</project>
|
Loading…
Reference in New Issue