You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ah...@apache.org on 2007/11/16 16:40:58 UTC
svn commit: r595706 - in /maven/plugins/trunk/maven-eclipse-plugin/src/test:
java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java
resources/m2repo/root/
Author: aheritier
Date: Fri Nov 16 07:40:57 2007
New Revision: 595706
URL: http://svn.apache.org/viewvc?rev=595706&view=rev
Log:
[MECLIPSE-333] Remove generated artifacts from repository. Install them before tests.
Removed:
maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/m2repo/root/
Modified:
maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java
Modified: maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java?rev=595706&r1=595705&r2=595706&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/EclipsePluginTest.java Fri Nov 16 07:40:57 2007
@@ -22,6 +22,8 @@
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Properties;
import org.apache.maven.plugin.MojoExecutionException;
@@ -370,10 +372,14 @@
public void testJeeSimple()
throws Exception
{
- testProject( "j2ee-simple" );
-
+ // Install artefacts
File basedir = getTestFile( "target/test-classes/projects/j2ee-simple" );
-
+ File pom = new File( basedir, "pom.xml" );
+ List goals = new ArrayList();
+ goals.add( "install" );
+ executeMaven( pom, new Properties(), goals );
+ // Test project
+ testProject( "j2ee-simple" );
checkContextRoot( basedir, "servlets/servlet", "ear", "servlet" );
}