Author: jdcasey
Date: Mon Aug 22 14:02:07 2005
New Revision: 239251

URL: http://svn.apache.org/viewcvs?rev=239251&view=rev
Log:
Adding integration itest it0054 to verify that MNG-479 is fixed.

Added:
    maven/components/trunk/maven-core-it/it0054/
    maven/components/trunk/maven-core-it/it0054/goals.txt   (with props)
    maven/components/trunk/maven-core-it/it0054/pom.xml   (with props)
    maven/components/trunk/maven-core-it/it0054/src/
    maven/components/trunk/maven-core-it/it0054/src/test/
    maven/components/trunk/maven-core-it/it0054/src/test/java/
    maven/components/trunk/maven-core-it/it0054/src/test/java/Test.java   (with 
props)
Modified:
    maven/components/trunk/maven-core-it/README.txt
    maven/components/trunk/maven-core-it/integration-tests.txt

Modified: maven/components/trunk/maven-core-it/README.txt
URL: 
http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/README.txt?rev=239251&r1=239250&r2=239251&view=diff
==============================================================================
--- maven/components/trunk/maven-core-it/README.txt (original)
+++ maven/components/trunk/maven-core-it/README.txt Mon Aug 22 14:02:07 2005
@@ -146,6 +146,13 @@
 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

Modified: maven/components/trunk/maven-core-it/integration-tests.txt
URL: 
http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/integration-tests.txt?rev=239251&r1=239250&r2=239251&view=diff
==============================================================================
--- maven/components/trunk/maven-core-it/integration-tests.txt (original)
+++ maven/components/trunk/maven-core-it/integration-tests.txt Mon Aug 22 
14:02:07 2005
@@ -1,3 +1,4 @@
+it0054
 it0052
 it0051
 it0050

Added: maven/components/trunk/maven-core-it/it0054/goals.txt
URL: 
http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/it0054/goals.txt?rev=239251&view=auto
==============================================================================
--- maven/components/trunk/maven-core-it/it0054/goals.txt (added)
+++ maven/components/trunk/maven-core-it/it0054/goals.txt Mon Aug 22 14:02:07 
2005
@@ -0,0 +1 @@
+test

Propchange: maven/components/trunk/maven-core-it/it0054/goals.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-it/it0054/goals.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-it/it0054/pom.xml
URL: 
http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/it0054/pom.xml?rev=239251&view=auto
==============================================================================
--- maven/components/trunk/maven-core-it/it0054/pom.xml (added)
+++ maven/components/trunk/maven-core-it/it0054/pom.xml Mon Aug 22 14:02:07 2005
@@ -0,0 +1,41 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven</groupId>
+  <artifactId>maven-it1011</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <pluginRepositories>
+    <pluginRepository>
+      <id>central-plugins</id>
+      <name>Empty Repository</name>
+      <url>file:/tmp/emptyRepo</url>
+    </pluginRepository>
+  </pluginRepositories>
+
+       <dependencies>
+               <dependency>
+                       <artifactId>junit</artifactId>
+                       <groupId>junit</groupId>
+                       <version>3.8.1</version>
+               </dependency>
+       </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-projecthelp-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-test-resources</phase>
+            <goals>
+              <goal>effective-pom</goal>
+            </goals>
+            <configuration>
+              <output>target/effective-pom.xml</output>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/components/trunk/maven-core-it/it0054/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-it/it0054/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-core-it/it0054/src/test/java/Test.java
URL: 
http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/it0054/src/test/java/Test.java?rev=239251&view=auto
==============================================================================
--- maven/components/trunk/maven-core-it/it0054/src/test/java/Test.java (added)
+++ maven/components/trunk/maven-core-it/it0054/src/test/java/Test.java Mon Aug 
22 14:02:07 2005
@@ -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") );
+    }
+}

Propchange: maven/components/trunk/maven-core-it/it0054/src/test/java/Test.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-core-it/it0054/src/test/java/Test.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to