| package org.apache.maven.integrationtests; |
| |
| import java.io.File; |
| |
| import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; |
| import org.apache.maven.it.IntegrationTestRunner; |
| |
| /** |
| * Verify that dependencies with invalid POMs can still be used without failing |
| * the build. |
| * |
| * @author jdcasey |
| */ |
| public class MavenITmng3680InvalidDependencyPOMTest |
| extends AbstractMavenIntegrationTestCase |
| { |
| public MavenITmng3680InvalidDependencyPOMTest() |
| throws InvalidVersionSpecificationException |
| { |
| super( "(2.0.9,)" ); |
| } |
| |
| public void testitMNG3680 () |
| throws Exception |
| { |
| File testDir = extractTestResources( getClass(), "/mng-3680-invalidDependencyPOM" ); |
| IntegrationTestRunner itr = new IntegrationTestRunner( testDir.getAbsolutePath() ); |
| itr.invoke( "compile" ); |
| itr.verifyErrorFreeLog(); |
| itr.resetStreams(); |
| } |
| } |