Author: brianf
Date: Tue Oct 16 18:02:37 2007
New Revision: 585311
URL: http://svn.apache.org/viewvc?rev=585311&view=rev
Log:
MNG2045: core it test
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/pom.xml
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/main/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/main/java/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/mycompany/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/mycompany/app/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/mycompany/app/SomeGeneralTestClass.java
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/pom.xml
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/pom.xml
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/com/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/com/somecompany/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/com/somecompany/OtherAppRequiringGeneralTestClass.java
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/test/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/test/java/
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=585311&r1=585310&r2=585311&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
Tue Oct 16 18:02:37 2007
@@ -160,6 +160,7 @@
suite.addTestSuite( MavenIT0114ExtensionThatProvidesResources.class );
suite.addTestSuite( MavenIT0118AttachedArtifactsInReactor.class );
suite.addTestSuite( MavenITmng2254PomEncodingTest.class);
+ suite.addTestSuite(
MavenITmng2045testJarDependenciesBrokenInReactorTest.class);
//
----------------------------------------------------------------------------------------------------
// Tests that need to be fixed.
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java?rev=585311&view=auto
==============================================================================
---
maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java
(added)
+++
maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2045testJarDependenciesBrokenInReactorTest.java
Tue Oct 16 18:02:37 2007
@@ -0,0 +1,37 @@
+package org.apache.maven.integrationtests;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase;
+import org.apache.maven.it.Verifier;
+import org.apache.maven.it.util.ResourceExtractor;
+
+/**
+ * Simple IT test invoking maven in a reactor with 2 projects.
+ * First project produced a test-jar, which is required to
+ * compile second project.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Brian Fox</a>
+ * @author [EMAIL PROTECTED]
+ */
+public class MavenITmng2045testJarDependenciesBrokenInReactorTest extends
AbstractMavenIntegrationTestCase {
+
+ public void testitMNG2045()
+ throws Exception
+ {
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(),
"/mng-2045-testJarDependenciesBrokenInReactor" );
+ Verifier verifier;
+
+ verifier = new Verifier( testDir.getAbsolutePath() );
+ verifier.deleteArtifact( "testing", "mng-2045-test", "1.0-SNAPSHOT",
"pom" );
+ verifier.deleteArtifact( "testing", "first-project", "1.0-SNAPSHOT",
"jar" );
+ verifier.deleteArtifact( "testing", "second-project", "1.0-SNAPSHOT",
"jar" );
+
+ verifier.executeGoal( "install" );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+
+ }
+}
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/pom.xml
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/pom.xml?rev=585311&view=auto
==============================================================================
---
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/pom.xml
(added)
+++
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/pom.xml
Tue Oct 16 18:02:37 2007
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<project>
+ <parent>
+ <groupId>testing</groupId>
+ <artifactId>mng-2045-test</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>first-project</artifactId>
+ <name>first-project</name>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals><goal>test-jar</goal></goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/mycompany/app/SomeGeneralTestClass.java
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/mycompany/app/SomeGeneralTestClass.java?rev=585311&view=auto
==============================================================================
---
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/mycompany/app/SomeGeneralTestClass.java
(added)
+++
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/first-project/src/test/java/com/mycompany/app/SomeGeneralTestClass.java
Tue Oct 16 18:02:37 2007
@@ -0,0 +1,8 @@
+package com.mycompany.app;
+
+public class SomeGeneralTestClass {
+
+ public void foo() {
+ System.out.println("FOO!");
+ }
+}
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/pom.xml
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/pom.xml?rev=585311&view=auto
==============================================================================
---
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/pom.xml
(added)
+++
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/pom.xml
Tue Oct 16 18:02:37 2007
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>testing</groupId>
+ <artifactId>mng-2045-test</artifactId>
+ <name>mng-2045-test</name>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <modules>
+ <module>first-project</module>
+ <module>second-project</module>
+ </modules>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
\ No newline at end of file
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/pom.xml
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/pom.xml?rev=585311&view=auto
==============================================================================
---
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/pom.xml
(added)
+++
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/pom.xml
Tue Oct 16 18:02:37 2007
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<project>
+ <parent>
+ <groupId>testing</groupId>
+ <artifactId>mng-2045-test</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>second-project</artifactId>
+ <name>second-project</name>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>first-project</artifactId>
+ <version>${project.version}</version>
+ <type>test-jar</type>
+ <!-- This also fails:
+ <classifier>tests</classifier>
+ -->
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/com/somecompany/OtherAppRequiringGeneralTestClass.java
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/com/somecompany/OtherAppRequiringGeneralTestClass.java?rev=585311&view=auto
==============================================================================
---
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/com/somecompany/OtherAppRequiringGeneralTestClass.java
(added)
+++
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2045-testJarDependenciesBrokenInReactor/second-project/src/main/java/com/somecompany/OtherAppRequiringGeneralTestClass.java
Tue Oct 16 18:02:37 2007
@@ -0,0 +1,15 @@
+package com.somecompany;
+
+import com.mycompany.app.SomeGeneralTestClass;
+
+/**
+ * Hello world!
+ *
+ */
+public class OtherAppRequiringGeneralTestClass {
+
+ public static void main(String[] args) throws Exception {
+ SomeGeneralTestClass.class.newInstance();
+ }
+
+}