blob: 78d23bc6aee523abd2e644e53438fa68106b79a9 [file] [log] [blame]
package org.apache.maven.integrationtests;
import java.io.File;
import java.util.ArrayList;
import org.apache.maven.it.IntegrationTestRunner;
public class MavenIT0119PluginPrefixOrder
extends AbstractMavenIntegrationTestCase
{
public void testit0119()
throws Exception
{
File testDir = extractTestResources( getClass(), "/it0119-pluginprefixorder" );
IntegrationTestRunner itr;
// Install the parent POM, extension and the plugin
itr = new IntegrationTestRunner( testDir.getAbsolutePath() );
itr.executeGoal( "install" );
itr.verifyErrorFreeLog();
itr.resetStreams();
// now run the test. Since we have apache and codehaus, i should get the apache one first
testDir = extractTestResources( getClass(), "/it0119-pluginprefixorder/test-project" );
itr = new IntegrationTestRunner( testDir.getAbsolutePath() );
itr.executeGoal( "it0119:apache" );
itr.verifyErrorFreeLog();
// now run the test. Since we have apache and codehaus and a prefix in my settings, i should get the custom one first
testDir = extractTestResources( getClass(), "/it0119-pluginprefixorder/test-project" );
itr = new IntegrationTestRunner( testDir.getAbsolutePath() );
//use my custom settings upon invocation.
ArrayList cli = new ArrayList();
cli.add("-s '" +testDir.getAbsolutePath()+"/settings.xml'");
itr.executeGoal( "it0119:custom", cli );
itr.verifyErrorFreeLog();
}
}