You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2008/03/14 22:06:51 UTC
svn commit: r637265 - in
/maven/core-integration-testing/trunk/core-integration-tests/src/test:
java/org/apache/maven/integrationtests/
resources/mng-2883-legacy-repo-offline/
resources/mng-2883-legacy-repo-offline/dependency/
resources/mng-2883-legacy...
Author: jdcasey
Date: Fri Mar 14 14:06:48 2008
New Revision: 637265
URL: http://svn.apache.org/viewvc?rev=637265&view=rev
Log:
[MNG-2883] Tests to make sure offline setting applies to legacy repositories.
Added:
maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/pom.xml (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/jars/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/jars/dep-1.0-SNAPSHOT.jar (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/dep-1.0-SNAPSHOT.pom (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/App.java (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/pom.xml (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/parent-1.0-SNAPSHOT.pom (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/jars/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/jars/plugin-1.0-SNAPSHOT.jar (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/plugin-1.0-SNAPSHOT.pom (with props)
maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/settings.xml.in (with props)
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java Fri Mar 14 14:06:48 2008
@@ -0,0 +1,350 @@
+package org.apache.maven.integrationtests;
+
+import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
+import org.apache.maven.it.VerificationException;
+import org.apache.maven.it.Verifier;
+import org.apache.maven.it.util.IOUtil;
+import org.apache.maven.it.util.ResourceExtractor;
+import org.apache.maven.it.util.StringUtils;
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.Reader;
+import java.io.Writer;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * This is a sample integration test. The IT tests typically
+ * operate by having a sample project in the
+ * /src/test/resources folder along with a junit test like
+ * this one. The junit test uses the verifier (which uses
+ * the invoker) to invoke a new instance of Maven on the
+ * project in the resources folder. It then checks the
+ * results. This is a non-trivial example that shows two
+ * phases. See more information inline in the code.
+ *
+ * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
+ *
+ */
+public class MavenITmng2883LegacyRepoOfflineTest
+ extends AbstractMavenIntegrationTestCase
+{
+ public MavenITmng2883LegacyRepoOfflineTest()
+ throws InvalidVersionSpecificationException
+ {
+ super( "(2.0.4,)" );
+ }
+
+ public void testParentUnresolvable()
+ throws Exception
+ {
+ String testName = "parent";
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(),
+ "/mng-2883-legacy-repo-offline/"
+ + testName );
+
+ Verifier verifier;
+
+ verifier = new Verifier( testDir.getAbsolutePath() );
+
+ File settings = writeSettings( testDir );
+ List cliOptions = new ArrayList();
+
+ // used to inject the remote repository
+ cliOptions.add( "-s" );
+ cliOptions.add( settings.getAbsolutePath() );
+
+ verifier.setCliOptions( cliOptions );
+
+ // execute once just to make sure this test works at all!
+ try
+ {
+ // this will ensure that all relevant plugins are present.
+ verifier.executeGoal( "initialize" );
+ }
+ catch ( VerificationException e )
+ {
+ throw new VerificationException( "Build should succeed the first time through when NOT in offline mode!", e );
+ }
+
+ // the centerpiece of these tests!
+ cliOptions.add( "-o" );
+
+ verifier.setCliOptions( cliOptions );
+ verifier.setAutoclean( false );
+
+ // clear out the parent POM if it's in the local repository.
+ verifier.deleteArtifact( "org.apache.maven.its.mng2883", "parent", "1.0-SNAPSHOT", "pom" );
+
+ try
+ {
+ verifier.executeGoal( "initialize" );
+
+ fail( "Build should fail with unresolvable parent POM." );
+ }
+ catch ( VerificationException e )
+ {
+ }
+
+ List missingMessages = new ArrayList();
+ missingMessages.add( "System is offline." );
+ missingMessages.add( "org.apache.maven.its.mng2883:parent:pom:1.0-SNAPSHOT" );
+
+ List lines = verifier.loadFile( new File( testDir, "log.txt" ), false );
+
+ for ( Iterator it = lines.iterator(); it.hasNext(); )
+ {
+ String line = (String) it.next();
+ for ( Iterator messageIt = missingMessages.iterator(); messageIt.hasNext(); )
+ {
+ String message = (String) messageIt.next();
+
+ if ( line.indexOf( message ) > -1 )
+ {
+ messageIt.remove();
+ }
+ }
+ }
+
+ if ( !missingMessages.isEmpty() )
+ {
+ StringBuffer buffer = new StringBuffer();
+
+ buffer.append( "The following key messages were missing from build output:\n\n" );
+
+ for ( Iterator it = missingMessages.iterator(); it.hasNext(); )
+ {
+ String message = (String) it.next();
+ if ( buffer.length() < 1 )
+ {
+ buffer.append( "\n" );
+ }
+ buffer.append( '\'' ).append( message ).append( '\'' );
+ }
+
+ fail( buffer.toString() );
+ }
+ }
+
+ public void testDependencyUnresolvable()
+ throws Exception
+ {
+ String testName = "dependency";
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(),
+ "/mng-2883-legacy-repo-offline/"
+ + testName );
+
+ Verifier verifier;
+
+ verifier = new Verifier( testDir.getAbsolutePath() );
+
+ List cliOptions = new ArrayList();
+
+ File settings = writeSettings( testDir );
+
+ // used to inject the remote repository
+ cliOptions.add( "-s" );
+ cliOptions.add( settings.getAbsolutePath() );
+
+ verifier.setCliOptions( cliOptions );
+
+ // execute once just to make sure this test works at all!
+ try
+ {
+ // this will ensure that all relevant plugins are present.
+ verifier.executeGoal( "compile" );
+ }
+ catch ( VerificationException e )
+ {
+ throw new VerificationException( "Build should succeed the first time through when NOT in offline mode!", e );
+ }
+
+ // the centerpiece of these tests!
+ cliOptions.add( "-o" );
+
+ verifier.setCliOptions( cliOptions );
+
+ // clear out the dependency if it's in the local repository.
+ verifier.deleteArtifact( "org.apache.maven.its.mng2883", "dep", "1.0-SNAPSHOT", "pom" );
+ verifier.deleteArtifact( "org.apache.maven.its.mng2883", "dep", "1.0-SNAPSHOT", "jar" );
+
+ try
+ {
+ verifier.executeGoal( "compile" );
+
+ fail( "Build should fail with unresolvable dependency artifact." );
+ }
+ catch ( VerificationException e )
+ {
+ }
+
+ List missingMessages = new ArrayList();
+
+ // FIXME: We need a more prominent diagnosis including system being in offline mode for 2.0.x.
+ missingMessages.add( "offline mode." );
+ missingMessages.add( "org.apache.maven.its.mng2883:dep:jar:1.0-SNAPSHOT" );
+
+ List lines = verifier.loadFile( new File( testDir, "log.txt" ), false );
+
+ for ( Iterator it = lines.iterator(); it.hasNext(); )
+ {
+ String line = (String) it.next();
+ for ( Iterator messageIt = missingMessages.iterator(); messageIt.hasNext(); )
+ {
+ String message = (String) messageIt.next();
+
+ if ( line.indexOf( message ) > -1 )
+ {
+ messageIt.remove();
+ }
+ }
+ }
+
+ if ( !missingMessages.isEmpty() )
+ {
+ StringBuffer buffer = new StringBuffer();
+
+ buffer.append( "The following key messages were missing from build output:\n\n" );
+
+ for ( Iterator it = missingMessages.iterator(); it.hasNext(); )
+ {
+ String message = (String) it.next();
+ if ( buffer.length() < 1 )
+ {
+ buffer.append( "\n" );
+ }
+ buffer.append( '\'' ).append( message ).append( '\'' );
+ }
+
+ fail( buffer.toString() );
+ }
+ }
+
+ public void testPluginUnresolvable()
+ throws Exception
+ {
+ String testName = "plugin";
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(),
+ "/mng-2883-legacy-repo-offline/"
+ + testName );
+
+ Verifier verifier;
+
+ verifier = new Verifier( testDir.getAbsolutePath() );
+
+ List cliOptions = new ArrayList();
+
+ // the centerpiece of these tests!
+ cliOptions.add( "-o" );
+
+ File settings = writeSettings( testDir );
+
+ // used to inject the remote repository
+ cliOptions.add( "-s" );
+ cliOptions.add( settings.getAbsolutePath() );
+
+ verifier.setCliOptions( cliOptions );
+
+ // clear out the dependency if it's in the local repository.
+ verifier.deleteArtifact( "org.apache.maven.its.mng2883", "plugin", "1.0-SNAPSHOT", "pom" );
+ verifier.deleteArtifact( "org.apache.maven.its.mng2883", "plugin", "1.0-SNAPSHOT", "jar" );
+
+ try
+ {
+ verifier.executeGoal( "org.apache.maven.its.mng2883:plugin:1.0-SNAPSHOT:run" );
+
+ fail( "Build should fail with unresolvable plugin artifact." );
+ }
+ catch ( VerificationException e )
+ {
+ }
+
+ List missingMessages = new ArrayList();
+ missingMessages.add( "System is offline." );
+ missingMessages.add( "org.apache.maven.its.mng2883:plugin:pom:1.0-SNAPSHOT" );
+
+ List lines = verifier.loadFile( new File( testDir, "log.txt" ), false );
+
+ for ( Iterator it = lines.iterator(); it.hasNext(); )
+ {
+ String line = (String) it.next();
+ for ( Iterator messageIt = missingMessages.iterator(); messageIt.hasNext(); )
+ {
+ String message = (String) messageIt.next();
+
+ if ( line.indexOf( message ) > -1 )
+ {
+ messageIt.remove();
+ }
+ }
+ }
+
+ if ( !missingMessages.isEmpty() )
+ {
+ StringBuffer buffer = new StringBuffer();
+
+ buffer.append( "The following key messages were missing from build output:\n\n" );
+
+ for ( Iterator it = missingMessages.iterator(); it.hasNext(); )
+ {
+ String message = (String) it.next();
+ if ( buffer.length() < 1 )
+ {
+ buffer.append( "\n" );
+ }
+ buffer.append( '\'' ).append( message ).append( '\'' );
+ }
+
+ fail( buffer.toString() );
+ }
+ }
+
+ private File writeSettings( File testDir )
+ throws IOException
+ {
+ File settingsIn = new File( testDir.getParentFile(), "settings.xml.in" );
+
+ String settingsContent = null;
+ Reader reader = null;
+ try
+ {
+ reader = new FileReader( settingsIn );
+ settingsContent = IOUtil.toString( reader );
+ }
+ finally
+ {
+ IOUtil.close( reader );
+ }
+
+ settingsContent = StringUtils.replace( settingsContent,
+ "@TESTDIR@",
+ testDir.getAbsolutePath() );
+
+ File settingsOut = new File( testDir, "settings.xml" );
+
+ System.out.println( "Writing tets settings to: " + settingsOut );
+
+ if ( settingsOut.exists() )
+ {
+ settingsOut.delete();
+ }
+
+ Writer writer = null;
+ try
+ {
+ writer = new FileWriter( settingsOut );
+ IOUtil.copy( settingsContent, writer );
+ }
+ finally
+ {
+ IOUtil.close( writer );
+ }
+
+ return settingsOut;
+ }
+
+}
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng2883LegacyRepoOfflineTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/pom.xml?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/pom.xml Fri Mar 14 14:06:48 2008
@@ -0,0 +1,35 @@
+<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.mng2883</groupId>
+ <artifactId>dependency-user</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.mng2883</groupId>
+ <artifactId>dep</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/jars/dep-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/jars/dep-1.0-SNAPSHOT.jar?rev=637265&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/jars/dep-1.0-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/dep-1.0-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/dep-1.0-SNAPSHOT.pom?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/dep-1.0-SNAPSHOT.pom (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/dep-1.0-SNAPSHOT.pom Fri Mar 14 14:06:48 2008
@@ -0,0 +1,17 @@
+<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.mng2883</groupId>
+ <artifactId>dep</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/dep-1.0-SNAPSHOT.pom
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/remote-repository/org.apache.maven.its.mng2883/poms/dep-1.0-SNAPSHOT.pom
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/App.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/App.java?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/App.java (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/App.java Fri Mar 14 14:06:48 2008
@@ -0,0 +1,13 @@
+package tests;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/dependency/src/main/java/tests/App.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/pom.xml?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/pom.xml Fri Mar 14 14:06:48 2008
@@ -0,0 +1,13 @@
+<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>
+
+ <parent>
+ <groupId>org.apache.maven.its.mng2883</groupId>
+ <version>1.0-SNAPSHOT</version>
+ <artifactId>parent</artifactId>
+ </parent>
+
+ <artifactId>snapshot-offline-parent-legacyRepo</artifactId>
+
+</project>
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/parent-1.0-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/parent-1.0-SNAPSHOT.pom?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/parent-1.0-SNAPSHOT.pom (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/parent-1.0-SNAPSHOT.pom Fri Mar 14 14:06:48 2008
@@ -0,0 +1,19 @@
+<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.mng2883</groupId>
+ <version>1.0-SNAPSHOT</version>
+ <artifactId>parent</artifactId>
+
+ <packaging>pom</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/parent-1.0-SNAPSHOT.pom
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/parent/remote-repository/org.apache.maven.its.mng2883/poms/parent-1.0-SNAPSHOT.pom
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/jars/plugin-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/jars/plugin-1.0-SNAPSHOT.jar?rev=637265&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/jars/plugin-1.0-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/plugin-1.0-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/plugin-1.0-SNAPSHOT.pom?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/plugin-1.0-SNAPSHOT.pom (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/plugin-1.0-SNAPSHOT.pom Fri Mar 14 14:06:48 2008
@@ -0,0 +1,17 @@
+<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.mng2883</groupId>
+ <artifactId>plugin</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/plugin-1.0-SNAPSHOT.pom
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/plugin/remote-repository/org.apache.maven.its.mng2883/poms/plugin-1.0-SNAPSHOT.pom
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/settings.xml.in
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/settings.xml.in?rev=637265&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/settings.xml.in (added)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/settings.xml.in Fri Mar 14 14:06:48 2008
@@ -0,0 +1,24 @@
+<settings>
+ <profiles>
+ <profile>
+ <id>remote-repository</id>
+ <repositories>
+ <repository>
+ <id>testing-repo</id>
+ <url>file://@TESTDIR@/remote-repository</url>
+ <layout>legacy</layout>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>testing-repo</id>
+ <url>file://@TESTDIR@/remote-repository</url>
+ <layout>legacy</layout>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+ <activeProfiles>
+ <activeProfile>remote-repository</activeProfile>
+ </activeProfiles>
+</settings>
\ No newline at end of file
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/settings.xml.in
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/mng-2883-legacy-repo-offline/settings.xml.in
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"