1 package org.apache.maven.it;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.it.util.ResourceExtractor;
23
24 import java.io.File;
25
26
27
28
29
30
31
32
33
34
35 public class MavenITmng5663NestedImportScopePomResolutionTest
36 extends AbstractMavenIntegrationTestCase
37 {
38
39 public MavenITmng5663NestedImportScopePomResolutionTest()
40 {
41 super( "[3.0.4,3.2.2),(3.2.2,)" );
42 }
43
44 public void testitMNG5639()
45 throws Exception
46 {
47 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5663-nested-import-scope-pom-resolution");
48
49 Verifier verifier = newVerifier( testDir.getAbsolutePath() );
50 verifier.deleteArtifacts( "org.apache.maven.its.mng5663" );
51
52 verifier.filterFile( "pom-template.xml", "pom.xml", "UTF-8", verifier.newDefaultFilterProperties() );
53 verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() );
54 verifier.addCliOption( "--settings" );
55 verifier.addCliOption( "settings.xml" );
56
57 verifier.executeGoal( "install" );
58 verifier.verifyErrorFreeLog();
59 verifier.resetStreams();
60
61 verifier.assertArtifactPresent( "org.apache.maven.its.mng5663", "c", "0.1", "jar" );
62
63 }
64
65
66
67 }