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 2009/08/12 15:36:17 UTC

svn commit: r803503 - in /maven/core-integration-testing/trunk/core-it-suite/src/test: java/org/apache/maven/it/ resources/mng-0553/repo/ resources/mng-0553/repo/org/ resources/mng-0553/repo/org/apache/ resources/mng-0553/repo/org/apache/maven/ resourc...

Author: bentmann
Date: Wed Aug 12 13:36:16 2009
New Revision: 803503

URL: http://svn.apache.org/viewvc?rev=803503&view=rev
Log:
o Decoupled IT from core API details like wagon manager and tested effective repo access instead

Added:
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.jar   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.pom
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/maven-metadata.xml   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/maven-metadata.xml   (with props)
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings-template.xml
      - copied, changed from r803014, maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings.xml
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings-template.xml
      - copied, changed from r803014, maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings.xml
Removed:
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings.xml
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings.xml
Modified:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/pom.xml
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/pom.xml

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java?rev=803503&r1=803502&r2=803503&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0553SettingsAuthzEncryptionTest.java Wed Aug 12 13:36:16 2009
@@ -23,43 +23,112 @@
 import org.apache.maven.it.util.ResourceExtractor;
 
 import java.io.File;
-import java.util.ArrayList;
 import java.util.Collections;
-import java.util.List;
 import java.util.Properties;
 
+import org.mortbay.jetty.Server;
+import org.mortbay.jetty.handler.DefaultHandler;
+import org.mortbay.jetty.handler.HandlerList;
+import org.mortbay.jetty.handler.ResourceHandler;
+import org.mortbay.jetty.security.Constraint;
+import org.mortbay.jetty.security.ConstraintMapping;
+import org.mortbay.jetty.security.HashUserRealm;
+import org.mortbay.jetty.security.SecurityHandler;
+
+/**
+ * This is a test set for <a href="http://jira.codehaus.org/browse/MNG-553">MNG-553</a>.
+ * 
+ * @author Benjamin Bentmann
+ */
 public class MavenITmng0553SettingsAuthzEncryptionTest
     extends AbstractMavenIntegrationTestCase
 {
+
+    private File testDir;
+
+    private Server server;
+
+    private int port;
+
     public MavenITmng0553SettingsAuthzEncryptionTest()
     {
         // TODO: reintroduce for 3.0
         super( "(2.1.0-M1,3.0-alpha-1)" ); // 2.1.0-M2+
     }
 
+    public void setUp()
+        throws Exception
+    {
+        super.setUp();
+
+        testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0553" );
+
+        Constraint constraint = new Constraint();
+        constraint.setName( Constraint.__BASIC_AUTH );
+        constraint.setRoles( new String[] { "user" } );
+        constraint.setAuthenticate( true );
+
+        ConstraintMapping constraintMapping = new ConstraintMapping();
+        constraintMapping.setConstraint( constraint );
+        constraintMapping.setPathSpec( "/*" );
+
+        HashUserRealm userRealm = new HashUserRealm( "TestRealm" );
+        userRealm.put( "testuser", "testtest" );
+        userRealm.addUserToRole( "testuser", "user" );
+
+        SecurityHandler securityHandler = new SecurityHandler();
+        securityHandler.setUserRealm( userRealm );
+        securityHandler.setConstraintMappings( new ConstraintMapping[] { constraintMapping } );
+
+        ResourceHandler repoHandler = new ResourceHandler();
+        repoHandler.setResourceBase( new File( testDir, "repo" ).getAbsolutePath() );
+
+        HandlerList handlerList = new HandlerList();
+        handlerList.addHandler( securityHandler );
+        handlerList.addHandler( repoHandler );
+        handlerList.addHandler( new DefaultHandler() );
+
+        server = new Server( 0 );
+        server.setHandler( handlerList );
+        server.start();
+
+        port = server.getConnectors()[0].getLocalPort();
+    }
+
+    protected void tearDown()
+        throws Exception
+    {
+        if ( server != null )
+        {
+            server.stop();
+            server = null;
+        }
+
+        super.tearDown();
+    }
+
     /**
      * Test that the encrypted auth infos given in the settings.xml are decrypted.
      */
     public void testitBasic()
         throws Exception
     {
-        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0553/test-1" );
+        Properties filterProps = new Properties();
+        filterProps.setProperty( "@port@", Integer.toString( port ) );
 
-        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+        Verifier verifier = new Verifier( new File( testDir, "test-1" ).getAbsolutePath() );
         verifier.setAutoclean( false );
-        verifier.deleteDirectory( "target" );
-        List cliOptions = new ArrayList();
-        cliOptions.add( "--settings" );
-        cliOptions.add( "settings.xml" );
+        verifier.deleteArtifacts( "org.apache.maven.its.mng0553" );
+        verifier.assertArtifactNotPresent( "org.apache.maven.its.mng0553", "a", "0.1-SNAPSHOT", "jar" );
+        verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", filterProps );
         verifier.getSystemProperties().setProperty( "settings.security", "settings-security.xml" );
-        verifier.setCliOptions( cliOptions );
+        verifier.getCliOptions().add( "--settings" );
+        verifier.getCliOptions().add( "settings.xml" );
         verifier.executeGoal( "validate" );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
 
-        Properties props = verifier.loadProperties( "target/auth.properties" );
-        assertEquals( "testuser", props.getProperty( "test.username" ) );
-        assertEquals( "testtest", props.getProperty( "test.password" ) );
+        verifier.assertArtifactPresent( "org.apache.maven.its.mng0553", "a", "0.1-SNAPSHOT", "jar" );
     }
 
     /**
@@ -69,32 +138,30 @@
     public void testitRelocation()
         throws Exception
     {
-        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0553/test-2" );
+        Properties filterProps = new Properties();
+        filterProps.setProperty( "@port@", Integer.toString( port ) );
+        // NOTE: The upper-case scheme name is essential part of the test
+        String secUrl = "FILE://" + new File( testDir, "test-2/relocated-settings-security.xml" ).toURI().getRawPath();
+        filterProps.setProperty( "@relocation@", secUrl );
 
-        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+        Verifier verifier = new Verifier( new File( testDir, "test-2" ).getAbsolutePath() );
         verifier.setAutoclean( false );
-        verifier.deleteDirectory( "target" );
+        verifier.deleteArtifacts( "org.apache.maven.its.mng0553" );
+        verifier.assertArtifactNotPresent( "org.apache.maven.its.mng0553", "a", "0.1-SNAPSHOT", "jar" );
 
-        // NOTE: The upper-case scheme name is essential part of the test
-        String secUrl = "FILE://" + new File( testDir, "relocated-settings-security.xml" ).toURI().getRawPath();
-        Properties filterProps = new Properties();
-        filterProps.setProperty( "@relocation@", secUrl );
         // NOTE: The tilde ~ in the file name is essential part of the test
         verifier.filterFile( "security-template.xml", "settings~security.xml", "UTF-8", filterProps );
+        verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", filterProps );
 
-        List cliOptions = new ArrayList();
-        cliOptions.add( "--settings" );
-        cliOptions.add( "settings.xml" );
         verifier.getSystemProperties().setProperty( "settings.security", "settings~security.xml" );
-        verifier.setCliOptions( cliOptions );
+        verifier.getCliOptions().add( "--settings" );
+        verifier.getCliOptions().add( "settings.xml" );
         // NOTE: The selection of the Turkish language for the JVM locale is essential part of the test
         verifier.executeGoal( "validate", Collections.singletonMap( "MAVEN_OPTS", "-Duser.language=tr" ) );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
 
-        Properties props = verifier.loadProperties( "target/auth.properties" );
-        assertEquals( "testuser", props.getProperty( "test.username" ) );
-        assertEquals( "testtest", props.getProperty( "test.password" ) );
+        verifier.assertArtifactPresent( "org.apache.maven.its.mng0553", "a", "0.1-SNAPSHOT", "jar" );
     }
 
 }

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.jar
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.jar?rev=803503&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.pom
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.pom?rev=803503&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.pom (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/a-0.1-20090812.131911-1.pom Wed Aug 12 13:36:16 2009
@@ -0,0 +1,41 @@
+<?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.mng0553</groupId>
+  <artifactId>a</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: MNG-553</name>
+  <description>
+    Test support for encrypted passwords in settings.
+  </description>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+    </repository>
+  </distributionManagement>
+</project>

Added: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/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-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/maven-metadata.xml?rev=803503&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/maven-metadata.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/0.1-SNAPSHOT/maven-metadata.xml Wed Aug 12 13:36:16 2009
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.mng0553</groupId>
+  <artifactId>a</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <snapshot>
+      <timestamp>20090812.131911</timestamp>
+      <buildNumber>1</buildNumber>
+    </snapshot>
+    <lastUpdated>20090812131911</lastUpdated>
+  </versioning>
+</metadata>

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

Propchange: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/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-0553/repo/org/apache/maven/its/mng0553/a/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/maven-metadata.xml?rev=803503&view=auto
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/maven-metadata.xml (added)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/repo/org/apache/maven/its/mng0553/a/maven-metadata.xml Wed Aug 12 13:36:16 2009
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.mng0553</groupId>
+  <artifactId>a</artifactId>
+  <version>0.1-SNAPSHOT</version>
+  <versioning>
+    <versions>
+      <version>0.1-SNAPSHOT</version>
+    </versions>
+    <lastUpdated>20090812131911</lastUpdated>
+  </versioning>
+</metadata>

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

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

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/pom.xml?rev=803503&r1=803502&r2=803503&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/pom.xml (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/pom.xml Wed Aug 12 13:36:16 2009
@@ -28,31 +28,35 @@
   <version>1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
 
-  <name>test</name>
+  <name>Maven Integration Test :: MNG-533</name>
   <description>
-    Test that the auth infos given in the settings.xml are pushed into the wagon manager and are available
-    to other components/plugins.
+    Test that the auth infos given in the settings.xml are properly decrypted.
   </description>
 
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.its.mng0553</groupId>
+      <artifactId>a</artifactId>
+      <version>0.1-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+
   <build>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.its.plugins</groupId>
-        <artifactId>maven-it-plugin-uses-wagon</artifactId>
+        <artifactId>maven-it-plugin-dependency-resolution</artifactId>
         <version>2.1-SNAPSHOT</version>
         <configuration>
-          <propertiesFile>target/auth.properties</propertiesFile>
-          <serverIds>
-            <serverId>test</serverId>
-          </serverIds>
+          <compileClassPath>target/classpath.txt</compileClassPath>
         </configuration>
         <executions>
           <execution>
             <id>test</id>
             <phase>validate</phase>
             <goals>
-              <goal>dump-auth</goal>
-           </goals>
+              <goal>compile</goal>
+            </goals>
           </execution>
         </executions>
       </plugin>

Copied: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings-template.xml (from r803014, maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings.xml)
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings-template.xml?p2=maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings-template.xml&p1=maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings.xml&r1=803014&r2=803503&rev=803503&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings.xml (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-1/settings-template.xml Wed Aug 12 13:36:16 2009
@@ -27,4 +27,24 @@
       <password>{BteqUEnqHecHM7MZfnj9FwLcYbdInWxou1C929Txa0A=}</password>
     </server>
   </servers>
+  <profiles>
+    <profile>
+      <id>maven-core-it-repo</id>
+      <repositories>
+        <repository>
+          <id>test</id>
+          <url>http://localhost:@port@/</url>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <snapshots>
+            <checksumPolicy>ignore</checksumPolicy>
+          </snapshots>
+        </repository>
+      </repositories>
+    </profile>
+  </profiles>
+  <activeProfiles>
+    <activeProfile>maven-core-it-repo</activeProfile>
+  </activeProfiles>
 </settings>

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/pom.xml?rev=803503&r1=803502&r2=803503&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/pom.xml (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/pom.xml Wed Aug 12 13:36:16 2009
@@ -28,31 +28,35 @@
   <version>1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
 
-  <name>test</name>
+  <name>Maven Integration Test :: MNG-553</name>
   <description>
-    Test that the auth infos given in the settings.xml are pushed into the wagon manager and are available
-    to other components/plugins.
+    Test that the auth infos given in the settings.xml are properly decrypted.
   </description>
 
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.its.mng0553</groupId>
+      <artifactId>a</artifactId>
+      <version>0.1-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+
   <build>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.its.plugins</groupId>
-        <artifactId>maven-it-plugin-uses-wagon</artifactId>
+        <artifactId>maven-it-plugin-dependency-resolution</artifactId>
         <version>2.1-SNAPSHOT</version>
         <configuration>
-          <propertiesFile>target/auth.properties</propertiesFile>
-          <serverIds>
-            <serverId>test</serverId>
-          </serverIds>
+          <compileClassPath>target/classpath.txt</compileClassPath>
         </configuration>
         <executions>
           <execution>
             <id>test</id>
             <phase>validate</phase>
             <goals>
-              <goal>dump-auth</goal>
-           </goals>
+              <goal>compile</goal>
+            </goals>
           </execution>
         </executions>
       </plugin>

Copied: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings-template.xml (from r803014, maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings.xml)
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings-template.xml?p2=maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings-template.xml&p1=maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings.xml&r1=803014&r2=803503&rev=803503&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings.xml (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-0553/test-2/settings-template.xml Wed Aug 12 13:36:16 2009
@@ -27,4 +27,24 @@
       <password>{BteqUEnqHecHM7MZfnj9FwLcYbdInWxou1C929Txa0A=}</password>
     </server>
   </servers>
+  <profiles>
+    <profile>
+      <id>maven-core-it-repo</id>
+      <repositories>
+        <repository>
+          <id>test</id>
+          <url>http://localhost:@port@/</url>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <snapshots>
+            <checksumPolicy>ignore</checksumPolicy>
+          </snapshots>
+        </repository>
+      </repositories>
+    </profile>
+  </profiles>
+  <activeProfiles>
+    <activeProfile>maven-core-it-repo</activeProfile>
+  </activeProfiles>
 </settings>