maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r945714 - in /maven/core-integration-testing/trunk/core-it-suite/src/test: java/org/apache/maven/it/ resources/mng-4679/ resources/mng-4679/repo-1/ resources/mng-4679/repo-1/org/ resources/mng-4679/repo-1/org/apache/ resources/mng-4679/repo...
Date Tue, 18 May 2010 15:48:31 GMT
Author: bentmann
Date: Tue May 18 15:48:31 2010
New Revision: 945714

URL: http://svn.apache.org/viewvc?rev=945714&view=rev
Log:
[MNG-4679] [regression] command line option "-update-snapshots" does not work for dependency:copy-dependencies

o Added IT

Added:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/ItUtils.java
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4679SnapshotUpdateInPluginTest.java
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/pom.xml
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.jar
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.pom
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.jar
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.pom
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
  (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/settings-template.xml
  (with props)
Modified:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java?rev=945714&r1=945713&r2=945714&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
(original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java
Tue May 18 15:48:31 2010
@@ -82,6 +82,7 @@ public class IntegrationTestSuite
         // suite.addTestSuite( MavenIT0109ReleaseUpdateTest.class );
         // suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
 
+        suite.addTestSuite( MavenITmng4679SnapshotUpdateInPluginTest.class );
         suite.addTestSuite( MavenITmng4677DisabledPluginConfigInheritanceTest.class );
         suite.addTestSuite( MavenITmng4666CoreRealmImportTest.class );
         suite.addTestSuite( MavenITmng4654ArtifactHandlerForMainArtifactTest.class );

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/ItUtils.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/ItUtils.java?rev=945714&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/ItUtils.java
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/ItUtils.java
Tue May 18 15:48:31 2010
@@ -0,0 +1,72 @@
+package org.apache.maven.it;
+
+/*
+ * 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.
+ */
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.security.DigestInputStream;
+import java.security.MessageDigest;
+
+/**
+ * @author Benjamin Bentmann
+ */
+class ItUtils
+{
+
+    public static String calcHash( File file, String algo )
+        throws Exception
+    {
+        MessageDigest digester = MessageDigest.getInstance( algo );
+
+        FileInputStream is = new FileInputStream( file );
+        try
+        {
+            DigestInputStream dis = new DigestInputStream( is, digester );
+
+            for ( byte[] buffer = new byte[1024 * 4]; dis.read( buffer ) >= 0; )
+            {
+                // just read it
+            }
+        }
+        finally
+        {
+            is.close();
+        }
+
+        byte[] digest = digester.digest();
+
+        StringBuffer hash = new StringBuffer( digest.length * 2 );
+
+        for ( int i = 0; i < digest.length; i++ )
+        {
+            int b = digest[i] & 0xFF;
+
+            if ( b < 0x10 )
+            {
+                hash.append( '0' );
+            }
+
+            hash.append( Integer.toHexString( b ) );
+        }
+
+        return hash.toString();
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/ItUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/ItUtils.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4679SnapshotUpdateInPluginTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4679SnapshotUpdateInPluginTest.java?rev=945714&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4679SnapshotUpdateInPluginTest.java
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4679SnapshotUpdateInPluginTest.java
Tue May 18 15:48:31 2010
@@ -0,0 +1,90 @@
+package org.apache.maven.it;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.it.Verifier;
+import org.apache.maven.it.util.ResourceExtractor;
+
+import java.io.File;
+import java.util.Properties;
+
+/**
+ * This is a test set for <a href="http://jira.codehaus.org/browse/MNG-4679">MNG-4679</a>.
+ * 
+ * @author Benjamin Bentmann
+ */
+public class MavenITmng4679SnapshotUpdateInPluginTest
+    extends AbstractMavenIntegrationTestCase
+{
+
+    public MavenITmng4679SnapshotUpdateInPluginTest()
+    {
+        super( "[2.0.3,3.0-alpha-1),[3.0-beta-2,)" );
+    }
+
+    /**
+     * Verify that plugins using the 2.x style artifact resolver/collector directly are subject
to the snapshot update
+     * mode of the current Maven session.
+     */
+    public void testit()
+        throws Exception
+    {
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4679"
);
+
+        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+        verifier.setAutoclean( false );
+        verifier.deleteArtifacts( "org.apache.maven.its.mng4679" );
+        verifier.getCliOptions().add( "-s" );
+        verifier.getCliOptions().add( "settings.xml" );
+
+        Properties filterProps = verifier.newDefaultFilterProperties();
+
+        filterProps.setProperty( "@repo@", "repo-1" );
+        verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", filterProps
);
+        verifier.setLogFileName( "log-force-1.txt" );
+        verifier.executeGoal( "validate" );
+        verifier.verifyErrorFreeLog();
+
+        assertChecksum( verifier, "jar", "cc7df75103468dd798397a81d0162d70faf92455" );
+        assertChecksum( verifier, "pom", "7de357a948a8bb2357759c7c585adb504e579bad" );
+
+        filterProps.setProperty( "@repo@", "repo-2" );
+        verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", filterProps
);
+        verifier.setLogFileName( "log-force-2.txt" );
+        verifier.deleteDirectory( "target" );
+        verifier.getCliOptions().add( "-U" );
+        verifier.executeGoal( "validate" );
+        verifier.verifyErrorFreeLog();
+
+        verifier.resetStreams();
+
+        assertChecksum( verifier, "jar", "f3d46277c2ab45ff9bbd97605c942bed7fc27f97" );
+        assertChecksum( verifier, "pom", "8f17048dee72cc6ec33e9ab30fa00a910e1d6997" );
+    }
+
+    private void assertChecksum( Verifier verifier, String ext, String checksum )
+        throws Exception
+    {
+        String path = verifier.getArtifactPath( "org.apache.maven.its.mng4679", "dep", "0.1-SNAPSHOT",
ext );
+        String actual = ItUtils.calcHash( new File( path ), "SHA-1" );
+        assertEquals( checksum, actual );
+    }
+
+}

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4679SnapshotUpdateInPluginTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4679SnapshotUpdateInPluginTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/pom.xml?rev=945714&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/pom.xml
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/pom.xml
Tue May 18 15:48:31 2010
@@ -0,0 +1,70 @@
+<?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.mng4679</groupId>
+  <artifactId>test</artifactId>
+  <version>0.1</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: MNG-4679</name>
+  <description>
+    Verify that plugins using the 2.x style artifact resolver/collector directly are subject
to the snapshot update
+    mode of the current Maven session.
+  </description>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.its.plugins</groupId>
+        <artifactId>maven-it-plugin-artifact</artifactId>
+        <version>2.1-SNAPSHOT</version>
+        <configuration>
+          <dependencies>
+            <dependency>
+              <groupId>org.apache.maven.its.mng4679</groupId>
+              <artifactId>dep</artifactId>
+              <version>0.1-SNAPSHOT</version>
+            </dependency>
+          </dependencies>
+        </configuration>
+        <executions>
+          <execution>
+            <id>resolver</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>resolve</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>collector</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>collect</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

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

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

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.jar?rev=945714&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.pom?rev=945714&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144321-1.pom
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml?rev=945714&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
Tue May 18 15:48:31 2010
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.mng4679</groupId>
+  <artifactId>dep</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <snapshot>
+      <timestamp>20100518.144321</timestamp>
+      <buildNumber>1</buildNumber>
+    </snapshot>
+    <lastUpdated>20100518144321</lastUpdated>
+  </versioning>
+</metadata>

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-1/org/apache/maven/its/mng4679/dep/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-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.jar?rev=945714&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.pom?rev=945714&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/dep-0.1-20100518.144344-2.pom
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml?rev=945714&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
Tue May 18 15:48:31 2010
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.mng4679</groupId>
+  <artifactId>dep</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <snapshot>
+      <timestamp>20100518.144344</timestamp>
+      <buildNumber>2</buildNumber>
+    </snapshot>
+    <lastUpdated>20100518144344</lastUpdated>
+  </versioning>
+</metadata>

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/0.1-SNAPSHOT/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/repo-2/org/apache/maven/its/mng4679/dep/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-4679/settings-template.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/settings-template.xml?rev=945714&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/settings-template.xml
(added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/settings-template.xml
Tue May 18 15:48:31 2010
@@ -0,0 +1,46 @@
+<?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.
+-->
+
+<settings>
+  <profiles>
+    <profile>
+      <id>maven-core-it-repo</id>
+      <repositories>
+        <repository>
+          <id>maven-core-it</id>
+          <url>@baseurl@/@repo@</url>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+            <checksumPolicy>ignore</checksumPolicy>
+            <!-- NOTE: This should be overriden by -U from the CLI -->
+            <updatePolicy>never</updatePolicy>
+          </snapshots>
+        </repository>
+      </repositories>
+    </profile>
+  </profiles>
+  <activeProfiles>
+    <activeProfile>maven-core-it-repo</activeProfile>
+  </activeProfiles>
+</settings>

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-4679/settings-template.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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



Mime
View raw message