maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r619178 - in /maven/core-integration-testing/trunk/core-integration-tests/src/test: java/org/apache/maven/integrationtests/ resources/mng-1491-reactorArtifactIdCollision/ resources/mng-1491-reactorArtifactIdCollision/child1/ resources/mng-1...
Date Wed, 06 Feb 2008 22:06:13 GMT
Author: jdcasey
Date: Wed Feb  6 14:06:12 2008
New Revision: 619178

URL: http://svn.apache.org/viewvc?rev=619178&view=rev
Log:
[MNG-1491] Add an integration test to verify that a build error happens when two projects'
artifactId's collide in the reactor.

Added:
    maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java
  (with props)
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/pom.xml
  (with props)
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/pom.xml
  (with props)
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/pom.xml
  (with props)
    maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/readme.txt
  (with props)
Modified:
    maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java

Modified: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java?rev=619178&r1=619177&r2=619178&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java
(original)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java
Wed Feb  6 14:06:12 2008
@@ -190,6 +190,7 @@
 		suite.addTestSuite( MavenITmng3099SettingsProfilesWithNoPOM.class );
 		suite.addTestSuite( MavenITmng3331ModulePathNormalization.class );
 		suite.addTestSuite( MavenITmng1493NonStandardModulePomNames.class );
+		suite.addTestSuite( MavenITmng1491ReactorArtifactIdCollision.class );
         // suite.addTestSuite( MavenIT0120EjbClientDependency.class ); -- not passing for
2.0.7 either, looks to be 2.1+ ?
         return suite;
     }

Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java?rev=619178&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java
(added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java
Wed Feb  6 14:06:12 2008
@@ -0,0 +1,34 @@
+package org.apache.maven.integrationtests;
+
+import org.apache.maven.it.VerificationException;
+import org.apache.maven.it.Verifier;
+import org.apache.maven.it.util.ResourceExtractor;
+
+import java.io.File;
+
+public class MavenITmng1491ReactorArtifactIdCollision
+    extends AbstractMavenIntegrationTestCase
+{
+    public void testitMNG1491 ()
+        throws Exception
+    {
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-1491-reactorArtifactIdCollision"
);
+
+        Verifier verifier;
+
+        verifier = new Verifier( testDir.getAbsolutePath() );
+
+        try
+        {
+            verifier.executeGoal( "initialize" );
+
+            verifier.verifyErrorFreeLog();
+
+            fail( "Build should fail due to duplicate artifactId's in the reactor." );
+        }
+        catch( VerificationException e )
+        {
+            // expected.
+        }
+    }
+}

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng1491ReactorArtifactIdCollision.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/pom.xml?rev=619178&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/pom.xml
(added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/pom.xml
Wed Feb  6 14:06:12 2008
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <parent>
+    <artifactId>parent</artifactId>
+    <groupId>org.apache.maven.its.mng1491</groupId>
+    <version>1</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>child</artifactId>
+</project>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child1/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/pom.xml?rev=619178&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/pom.xml
(added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/pom.xml
Wed Feb  6 14:06:12 2008
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <parent>
+    <artifactId>parent</artifactId>
+    <groupId>org.apache.maven.its.mng1491</groupId>
+    <version>1</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>child</artifactId>
+</project>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/child2/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/pom.xml?rev=619178&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/pom.xml
(added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/pom.xml
Wed Feb  6 14:06:12 2008
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.its.mng1491</groupId>
+  <artifactId>parent</artifactId>
+  <packaging>pom</packaging>
+  <version>1</version>
+
+  <modules>
+    <module>child1</module>
+    <module>child2</module>
+  </modules>
+</project>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/readme.txt
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/readme.txt?rev=619178&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/readme.txt
(added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/readme.txt
Wed Feb  6 14:06:12 2008
@@ -0,0 +1 @@
+Check to make sure the build fails when two projects' artifactIds collide inside the reactor.
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-1491-reactorArtifactIdCollision/readme.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message