diff --git a/maven-core-it/README.txt b/maven-core-it/README.txt index b8525e729a..49632216a2 100644 --- a/maven-core-it/README.txt +++ b/maven-core-it/README.txt @@ -146,6 +146,13 @@ it0051: Test source attachment when -DperformRelease=true is specified. it0052: Test that source attachment doesn't take place when -DperformRelease=true is missing. +it0053: Test that attached artifacts have the same buildnumber and timestamp + as the main artifact. This will not correctly verify until we have + some way to pattern-match the buildnumber/timestamp... + +it0054: Test that locally defined repositories override those from the super + POM. This is from MNG-479. + ------------------------------------------------------------------------------- - generated sources diff --git a/maven-core-it/integration-tests.txt b/maven-core-it/integration-tests.txt index 6db25e4b83..7d02b2b2f8 100644 --- a/maven-core-it/integration-tests.txt +++ b/maven-core-it/integration-tests.txt @@ -1,3 +1,4 @@ +it0054 it0052 it0051 it0050 diff --git a/maven-core-it/it0054/goals.txt b/maven-core-it/it0054/goals.txt new file mode 100644 index 0000000000..9daeafb986 --- /dev/null +++ b/maven-core-it/it0054/goals.txt @@ -0,0 +1 @@ +test diff --git a/maven-core-it/it0054/pom.xml b/maven-core-it/it0054/pom.xml new file mode 100644 index 0000000000..66c73368ab --- /dev/null +++ b/maven-core-it/it0054/pom.xml @@ -0,0 +1,41 @@ + + 4.0.0 + org.apache.maven + maven-it1011 + 1.0-SNAPSHOT + + + + central-plugins + Empty Repository + file:/tmp/emptyRepo + + + + + + junit + junit + 3.8.1 + + + + + + + maven-projecthelp-plugin + + + generate-test-resources + + effective-pom + + + target/effective-pom.xml + + + + + + + diff --git a/maven-core-it/it0054/src/test/java/Test.java b/maven-core-it/it0054/src/test/java/Test.java new file mode 100644 index 0000000000..7e8c54566e --- /dev/null +++ b/maven-core-it/it0054/src/test/java/Test.java @@ -0,0 +1,26 @@ +import java.io.BufferedInputStream; +import java.io.ByteArrayOutputStream; +import java.io.FileInputStream; + +import junit.framework.TestCase; + +public class Test extends TestCase +{ + public void testPOM() throws Exception + { + + BufferedInputStream in = new BufferedInputStream( new FileInputStream("target/effective-pom.xml") ); + + ByteArrayOutputStream out = new ByteArrayOutputStream(); + + int rd = 0; + byte [] buffer = new byte[512]; + + while ( ( rd = in.read( buffer ) ) > 0 ) + { + out.write( buffer, 0, rd ); + } + + assertEquals( -1, out.toString().indexOf("repo1.maven.org/maven2/plugins") ); + } +}