+<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
+<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
+<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
+<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
+<?xml version="1.0"?>
<metadata>
<groupId>test</groupId>
<artifactId>newversion-artifact</artifactId>
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v3artifact</artifactId>
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v3artifact</artifactId>
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v3artifact</artifactId>
<version>1.0.0-SNAPSHOT</version>
- <versioning />
+ <versioning/>
</metadata>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v3artifact</artifactId>
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v3artifact</artifactId>
<version>1.0.0</version>
- <versioning />
+ <versioning/>
</metadata>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v4artifact</artifactId>
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v4artifact</artifactId>
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v4artifact</artifactId>
<version>1.0.0-SNAPSHOT</version>
- <versioning />
+ <versioning/>
</metadata>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v4artifact</artifactId>
+<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>test</groupId>
<artifactId>v4artifact</artifactId>
<version>1.0.0</version>
- <versioning />
+ <versioning/>
</metadata>
\ No newline at end of file
{
String expectedContent = normalizeString( FileUtils.fileRead( expectedPomFile ) );
String targetContent = normalizeString( FileUtils.fileRead( pomFile ) );
- assertEquals( "Check file match", expectedContent, targetContent );
+ assertEquals( "Check file match between " + expectedPomFile + " and " + pomFile, expectedContent,
+ targetContent );
}
private static String normalizeString( String path )
<dependency>\r
<groupId>org.apache.maven.wagon</groupId>\r
<artifactId>wagon-file</artifactId>\r
- <version>1.0-alpha-7</version>\r
<scope>test</scope>\r
</dependency>\r
</dependencies>\r
disconnectWagon( wagon );
- copyTempToTarget( temp, target );
+ if ( temp.exists() )
+ {
+ copyTempToTarget( temp, target );
+ }
return target;
}
{
return 0;
}
+
+ public void setOptional( boolean b )
+ {
+ }
}
{
return null;
}
+
+ public Artifact createDependencyArtifact( String string, String string1, VersionRange versionRange, String string2,
+ String string3, String string4, boolean b )
+ {
+ return null;
+ }
}