mirror of https://github.com/apache/maven.git
Disable test
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@689612 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b07c8d2e36
commit
4b5ab88824
maven-project/src/test/java/org/apache/maven/project
|
@ -25,9 +25,12 @@ import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
|||
import org.apache.maven.model.Build;
|
||||
import org.apache.maven.model.Plugin;
|
||||
import org.apache.maven.model.Resource;
|
||||
import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
|
||||
import org.codehaus.plexus.util.FileUtils;
|
||||
import org.codehaus.plexus.util.WriterFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Writer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
@ -102,10 +105,14 @@ public class DefaultMavenProjectBuilderTest
|
|||
public void testDuplicatePluginDefinitionsMerged()
|
||||
throws Exception
|
||||
{
|
||||
File f1 = getTestFile( "src/test/resources/projects/duplicate-plugins-merged-pom.xml" );
|
||||
File f1 = getTestFile( "maven-project/src/test/resources/projects/duplicate-plugins-merged-pom.xml" );
|
||||
|
||||
MavenProject project = getProject( f1 );
|
||||
|
||||
Writer out = WriterFactory.newXmlWriter( System.out );
|
||||
MavenXpp3Writer writer = new MavenXpp3Writer();
|
||||
writer.write( out, project.getModel() );
|
||||
out.close();
|
||||
assertEquals( 2, ( (Plugin) project.getBuildPlugins().get( 0 ) ).getDependencies().size() );
|
||||
}
|
||||
|
||||
|
@ -148,4 +155,25 @@ public class DefaultMavenProjectBuilderTest
|
|||
|
||||
return r;
|
||||
}
|
||||
|
||||
public void tetA() throws Exception {
|
||||
ArtifactRepositoryLayout repoLayout = (ArtifactRepositoryLayout) lookup( ArtifactRepositoryLayout.ROLE,
|
||||
"default" );
|
||||
|
||||
ArtifactRepository r = new DefaultArtifactRepository( "local", "file://" + "C:\\Documents and Settings\\sisbell\\.m2\\repository\\",
|
||||
repoLayout );
|
||||
|
||||
try {
|
||||
MavenProject mp = projectBuilder.build(new File("C:\\Documents and Settings\\sisbell\\.m2\\repository\\org\\apache\\maven\\maven-core\\2.0\\maven-core-2.0.pom"),
|
||||
new DefaultProjectBuilderConfiguration().setLocalRepository(r));
|
||||
|
||||
Writer out = WriterFactory.newXmlWriter( System.out );
|
||||
MavenXpp3Writer writer = new MavenXpp3Writer();
|
||||
writer.write( out, mp.getModel() );
|
||||
out.close();
|
||||
// System.out.println(mp.getModel())
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue