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 java.io.File;
23
24 import org.apache.maven.it.util.ResourceExtractor;
25
26
27
28
29 public class MavenITmng6972AllowAccessToGraphPackageTest
30 extends AbstractMavenIntegrationTestCase
31 {
32
33 public MavenITmng6972AllowAccessToGraphPackageTest()
34 {
35 super( "[4.0.0-alpha-1,)" );
36 }
37
38 public void testit()
39 throws Exception
40 {
41
42
43 final File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-6972-allow-access-to-graph-package" );
44
45 Verifier verifier;
46
47
48
49
50
51
52
53
54 verifier = newVerifier( testDir.getAbsolutePath() );
55 verifier.deleteArtifact( "mng-6972-allow-access-to-graph-package", "build-plugin", "1.0", "jar" );
56 verifier.deleteArtifact( "mng-6972-allow-access-to-graph-package", "using-module", "1.0", "jar" );
57
58 verifier = newVerifier( new File( testDir.getAbsolutePath(), "build-plugin" ).getAbsolutePath() );
59 verifier.getSystemProperties().put( "maven.multiModuleProjectDirectory", testDir.getAbsolutePath() );
60 verifier.executeGoal( "install" );
61 verifier.verifyErrorFreeLog();
62 verifier.resetStreams();
63
64 verifier = newVerifier( new File( testDir.getAbsolutePath(), "using-module" ).getAbsolutePath() );
65 verifier.getSystemProperties().put( "maven.multiModuleProjectDirectory", testDir.getAbsolutePath() );
66 verifier.executeGoal( "install" );
67 verifier.verifyErrorFreeLog();
68 verifier.resetStreams();
69 }
70 }