You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/10/21 21:21:06 UTC

svn commit: r706727 - in /maven/core-integration-testing/trunk/core-it-suite/src/test: java/org/apache/maven/it/ resources/mng-2695-offlinePluginSnapshots/ resources/mng-2695-offlinePluginSnapshots/plugin/ resources/mng-2695-offlinePluginSnapshots/proj...

Author: bentmann
Date: Tue Oct 21 12:21:05 2008
New Revision: 706727

URL: http://svn.apache.org/viewvc?rev=706727&view=rev
Log:
o Fixed IT for MNG-2695 to actually exhibit the reported issue

Added:
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/pom.xml   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/maven-metadata.xml   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/maven-metadata.xml   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.jar   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.pom
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/maven-metadata.xml   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/maven-metadata.xml   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.jar   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.pom
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/maven-metadata.xml   (with props)
Removed:
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/plugin/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/project/
Modified:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2695OfflinePluginSnapshotsTest.java

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2695OfflinePluginSnapshotsTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2695OfflinePluginSnapshotsTest.java?rev=706727&r1=706726&r2=706727&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2695OfflinePluginSnapshotsTest.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2695OfflinePluginSnapshotsTest.java Tue Oct 21 12:21:05 2008
@@ -19,156 +19,64 @@
  * under the License.
  */
 
-import org.apache.maven.it.VerificationException;
 import org.apache.maven.it.Verifier;
 import org.apache.maven.it.util.FileUtils;
 import org.apache.maven.it.util.ResourceExtractor;
 
 import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
+import java.util.Collections;
 
 /**
- * This is a test set for <a href="http://jira.codehaus.org/browse/MNG-3314">MNG-3314</a>.
+ * This is a test set for <a href="http://jira.codehaus.org/browse/MNG-2695">MNG-2695</a>.
  *
- * Verifies that offline mode functions correctly for snapshot dependencies.
+ * Verifies that offline mode functions correctly for snapshot plugins.
  *
  * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
  * @author jdcasey
- *
  */
 public class MavenITmng2695OfflinePluginSnapshotsTest
     extends AbstractMavenIntegrationTestCase
 {
+
     public MavenITmng2695OfflinePluginSnapshotsTest()
     {
         super( "(2.0.8,)" ); // only test in 2.0.9+
     }
 
     /**
-     * Consists of two projects. First is a plugin project with a snapshot
-     * version, which is deployed to the url 'file:../test-repo'. Second is a
-     * project that declares use of the first project in its build, and also declares
-     * a repository entry pointing to the url 'file:../test-repo' (these projects
-     * are in sibling directories, so this should be the same location as the
-     * first project deployed to). The second project's repository declaration
-     * specifies releases disabled, and snapshots enabled with an update-policy
-     * of 'always', which should trigger metadata updates on each build.
-     * <br />
-     * This test has four parts, executed in order:
-     * <ol>
-     *   <li>Deploy a snapshot plugin to the test repository, then remove
-     *       the plugin artifact from the local repository.</li>
-     *
-     *   <li>Build a project using that plugin using offline mode, without
-     *       the plugin artifact in the local repository. This build should fail.</li>
-     *
-     *   <li>Build the project again without offline mode. The plugin should
-     *       be downloaded from the test repository, and the build should succeed.</li>
-     *
-     *   <li>Build the project once more using offline mode. The plugin should
-     *       exist in the local repository, so the build should still succeed.</li>
-     * </ol>
+     * Verify that snapshot plugins which are scheduled for an update don't fail the build when in offline mode.
      */
-    public void testitMNG2695 ()
+    public void testitMNG2695()
         throws Exception
     {
-        File testParentDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2695-offlinePluginSnapshots" );
-
-        File testPlugin = new File( testParentDir, "plugin" );
-
-        Verifier verifier = new Verifier( testPlugin.getAbsolutePath() );
-
-        // Deploy the dependency to the test repository.
-        verifier.executeGoal( "deploy" );
-
-        verifier.verifyErrorFreeLog();
-        verifier.resetStreams();
-
-        String pluginPath = verifier.getArtifactPath( "org.apache.maven.its.mng2695", "plugin", "1.0-SNAPSHOT", "pom" );
-
-        File plugin = new File( pluginPath );
-        plugin = plugin.getParentFile().getParentFile();
-
-        // remove the dependency from the local repository.
-        FileUtils.deleteDirectory( plugin );
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2695-offlinePluginSnapshots" );
 
-        File testProject = new File( testParentDir, "project" );
-
-        verifier = new Verifier( testProject.getAbsolutePath() );
-
-        // Conditions for this build:
-        // 1. plugin is NOT in local repository
-        // 2. executing in offline mode
-        //
-        // Expected outcome: build failure
-        try
-        {
-            List cliOptions = new ArrayList();
-            cliOptions.add( "-o" );
-            verifier.setCliOptions( cliOptions );
-
-            verifier.executeGoal( "compile" );
-
-            fail( "Plugin should be missing from local repo, and in offline this should make the project build fail." );
-        }
-        catch( VerificationException e )
-        {
-            // should fail.
-        }
-        finally
-        {
-            verifier.resetStreams();
-        }
-
-        // move this log file off to a new name to make room for the next build.
-        File buildLog = new File( testProject, "log.txt" );
-        if ( buildLog.exists() )
-        {
-            buildLog.renameTo( new File( testProject, "log-build1.txt" ) );
-        }
-
-        // Conditions for this build:
-        // 1. plugin is NOT in local repository
-        // 2. executing in ONLINE mode
-        //
-        // Expected outcome: build success
-        try
-        {
-            verifier.getCliOptions().clear();
-
-            verifier.executeGoal( "compile" );
-        }
-        finally
         {
+            // phase 1: run build in online mode to fill local repo
+            Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+            verifier.deleteDirectory( "target" );
+            verifier.setAutoclean( false );
+            verifier.executeGoal( "validate" );
+            verifier.assertFilePresent( "target/a.txt" );
+            verifier.assertFilePresent( "target/b.txt" );
             verifier.verifyErrorFreeLog();
             verifier.resetStreams();
+            new File( testDir, "log.txt").renameTo( new File( testDir, "log1.txt" ) );
         }
 
-        // move this log file off to a new name to make room for the next build.
-        if ( buildLog.exists() )
-        {
-            buildLog.renameTo( new File( testProject, "log-build2.txt" ) );
-        }
-
-        // Conditions for this build:
-        // 1. plugin IS in local repository
-        // 2. executing in offline mode
-        //
-        // Expected outcome: build success
-        try
-        {
-            List cliOptions = new ArrayList();
-            cliOptions.add( "-o" );
-            verifier.setCliOptions( cliOptions );
-
-            verifier.executeGoal( "compile" );
-        }
-        finally
         {
+            // phase 2: run build in offline mode to check it still passes
+            Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+            verifier.deleteDirectory( "target" );
+            verifier.setAutoclean( false );
+            verifier.setCliOptions( Collections.singletonList( "-o" ) );
+            verifier.executeGoal( "validate" );
+            verifier.assertFilePresent( "target/a.txt" );
+            verifier.assertFilePresent( "target/b.txt" );
             verifier.verifyErrorFreeLog();
             verifier.resetStreams();
+            new File( testDir, "log.txt").renameTo( new File( testDir, "log2.txt" ) );
         }
-
     }
+
 }

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/pom.xml?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/pom.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/pom.xml Tue Oct 21 12:21:05 2008
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.mng2695</groupId>
+  <artifactId>test1</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Maven Integration Test :: MNG-2695</name> 
+  <description>
+    Verify that snapshot plugins which are scheduled for an update don't fail the build when in offline mode.
+  </description>
+
+  <repositories>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+      <releases>
+        <checksumPolicy>ignore</checksumPolicy>
+      </releases>
+      <snapshots>
+        <checksumPolicy>ignore</checksumPolicy>
+        <!-- NOTE: Trigger update regardless of timestamps -->
+        <updatePolicy>always</updatePolicy>
+      </snapshots>
+    </repository>
+  </repositories>
+  <pluginRepositories>
+    <pluginRepository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+      <releases>
+        <checksumPolicy>ignore</checksumPolicy>
+      </releases>
+      <snapshots>
+        <checksumPolicy>ignore</checksumPolicy>
+        <!-- NOTE: Trigger update regardless of timestamps -->
+        <updatePolicy>always</updatePolicy>
+      </snapshots>
+    </pluginRepository>
+  </pluginRepositories>
+
+  <build>
+    <plugins>
+      <!-- This has been deployed using uniqueVersion=false, it's the most prominent problem case -->
+      <plugin>
+        <groupId>org.apache.maven.its.mng2695</groupId>
+        <artifactId>plugin-a</artifactId>
+        <version>0.1-SNAPSHOT</version>
+        <configuration>
+          <file>target/a.txt</file>
+        </configuration>
+        <executions>
+          <execution>
+            <id>test</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>touch</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <!-- This has been deployed using uniqueVersion=true, it's merely used to test the other snapshot versioning scheme, too -->
+      <plugin>
+        <groupId>org.apache.maven.its.mng2695</groupId>
+        <artifactId>plugin-b</artifactId>
+        <version>0.1-SNAPSHOT</version>
+        <configuration>
+          <file>target/b.txt</file>
+        </configuration>
+        <executions>
+          <execution>
+            <id>test</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>touch</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/maven-metadata.xml?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/maven-metadata.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/maven-metadata.xml Tue Oct 21 12:21:05 2008
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?><metadata>
+  <plugins>
+    <plugin>
+      <name>Unnamed - org.apache.maven.its.mng2695:plugin-a:maven-plugin:0.1-SNAPSHOT</name>
+      <prefix>a</prefix>
+      <artifactId>plugin-a</artifactId>
+    </plugin>
+    <plugin>
+      <name>Unnamed - org.apache.maven.its.mng2695:plugin-b:maven-plugin:0.1-SNAPSHOT</name>
+      <prefix>b</prefix>
+      <artifactId>plugin-b</artifactId>
+    </plugin>
+  </plugins>
+</metadata>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/maven-metadata.xml?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/maven-metadata.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/maven-metadata.xml Tue Oct 21 12:21:05 2008
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?><metadata>
+  <groupId>org.apache.maven.its.mng2695</groupId>
+  <artifactId>plugin-a</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <snapshot>
+      <buildNumber>1</buildNumber>
+    </snapshot>
+    <lastUpdated>20081021184119</lastUpdated>
+  </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.jar?rev=706727&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.pom?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.pom (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/0.1-SNAPSHOT/plugin-a-0.1-SNAPSHOT.pom Tue Oct 21 12:21:05 2008
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.mng2695</groupId>
+  <artifactId>plugin-a</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+      <uniqueVersion>false</uniqueVersion>
+    </repository>
+  </distributionManagement>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <resources>
+      <resource>
+        <directory>.</directory>
+        <includes>
+          <include>pom.xml</include>
+          <include>src/**</include>
+        </includes>
+      </resource>
+      <resource>
+        <directory>src/main/resources</directory>
+      </resource>
+    </resources>
+  </build>
+</project>

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/maven-metadata.xml?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/maven-metadata.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/maven-metadata.xml Tue Oct 21 12:21:05 2008
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?><metadata>
+  <groupId>org.apache.maven.its.mng2695</groupId>
+  <artifactId>plugin-a</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <latest>0.1-SNAPSHOT</latest>
+    <versions>
+      <version>0.1-SNAPSHOT</version>
+    </versions>
+    <lastUpdated>20081021184119</lastUpdated>
+  </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-a/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/maven-metadata.xml?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/maven-metadata.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/maven-metadata.xml Tue Oct 21 12:21:05 2008
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?><metadata>
+  <groupId>org.apache.maven.its.mng2695</groupId>
+  <artifactId>plugin-b</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <snapshot>
+      <timestamp>20081021.184238</timestamp>
+      <buildNumber>1</buildNumber>
+    </snapshot>
+    <lastUpdated>20081021184238</lastUpdated>
+  </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.jar?rev=706727&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.pom?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.pom (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/0.1-SNAPSHOT/plugin-b-0.1-20081021.184238-1.pom Tue Oct 21 12:21:05 2008
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.mng2695</groupId>
+  <artifactId>plugin-b</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+      <uniqueVersion>true</uniqueVersion>
+    </repository>
+  </distributionManagement>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <resources>
+      <resource>
+        <directory>.</directory>
+        <includes>
+          <include>pom.xml</include>
+          <include>src/**</include>
+        </includes>
+      </resource>
+      <resource>
+        <directory>src/main/resources</directory>
+      </resource>
+    </resources>
+  </build>
+</project>

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/maven-metadata.xml?rev=706727&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/maven-metadata.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/maven-metadata.xml Tue Oct 21 12:21:05 2008
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?><metadata>
+  <groupId>org.apache.maven.its.mng2695</groupId>
+  <artifactId>plugin-b</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <latest>0.1-SNAPSHOT</latest>
+    <versions>
+      <version>0.1-SNAPSHOT</version>
+    </versions>
+    <lastUpdated>20081021184238</lastUpdated>
+  </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2695-offlinePluginSnapshots/repo/org/apache/maven/its/mng2695/plugin-b/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision