blob: 4f5655d990319202acb98b17a306adb6b2593b07 [file] [log] [blame]
package org.apache.maven.integrationtests;
import java.io.File;
import org.apache.maven.it.DefaultInvocationRequest;
import org.apache.maven.it.IntegrationTestRunner;
import org.apache.maven.it.InvocationRequest;
public class MavenIT0021Test
extends AbstractMavenIntegrationTestCase
{
/**
* Test pom-level profile inclusion (this one is activated by system
* property).
*/
public void testit0021()
throws Exception
{
File testDir = extractTestResources( getClass(), "/it0021" );
IntegrationTestRunner itr = new IntegrationTestRunner( testDir.getAbsolutePath() );
itr.deleteArtifact( "org.apache.maven", "maven-core-it-support", "1.0", "jar" );
InvocationRequest r = new DefaultInvocationRequest()
.addSystemProperty( "includeProfile", "true" )
.setGoals( "compile" );
itr.invoke( r );
itr.assertArtifactPresent( "org.apache.maven", "maven-core-it-support", "1.0", "jar" );
itr.verifyErrorFreeLog();
itr.resetStreams();
}
}