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
30
31
32
33 public class MavenITmng3684BuildPluginParameterTest
34 extends AbstractMavenIntegrationTestCase
35 {
36 public MavenITmng3684BuildPluginParameterTest()
37 {
38 super( "(2.0.9,)" );
39 }
40
41 public void testitMNG3684 ()
42 throws Exception
43 {
44 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3684" );
45 File pluginDir = new File( testDir, "maven-mng3684-plugin" );
46 File projectDir = new File( testDir, "project" );
47
48 Verifier verifier = newVerifier( pluginDir.getAbsolutePath(), "remote" );
49 verifier.executeGoal( "install" );
50
51 verifier.verifyErrorFreeLog();
52 verifier.resetStreams();
53
54 verifier = newVerifier( projectDir.getAbsolutePath(), "remote" );
55 verifier.setLogFileName( "log-validate.txt" );
56 verifier.executeGoal( "validate" );
57
58 verifier.verifyErrorFreeLog();
59 verifier.resetStreams();
60
61 verifier.setLogFileName( "log-site.txt" );
62 verifier.executeGoal( "site" );
63
64 verifier.verifyErrorFreeLog();
65 verifier.resetStreams();
66 }
67 }