You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/05/07 06:54:07 UTC

svn commit: r400416 - in /maven/plugins/trunk/maven-release-plugin/src: main/java/org/apache/maven/plugins/release/phase/ test/java/org/apache/maven/plugins/release/phase/ test/remote-repository/external/parent-artifactId/ test/remote-repository/extern...

Author: brett
Date: Sat May  6 21:54:05 2006
New Revision: 400416

URL: http://svn.apache.org/viewcvs?rev=400416&view=rev
Log:
make sure the SCM info is correct in an inherited scenario

Added:
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom   (with props)
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.md5
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.sha1
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml   (with props)
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.md5
    maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.sha1
    maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/
    maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/expected-pom.xml   (with props)
    maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/pom.xml   (with props)
    maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/
    maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/expected-pom.xml   (with props)
    maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/pom.xml   (with props)
Modified:
    maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/AbstractRewritePomsPhase.java
    maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhase.java
    maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhase.java
    maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/AbstractReleaseTestCase.java
    maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhaseTest.java
    maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhaseTest.java

Modified: maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/AbstractRewritePomsPhase.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/AbstractRewritePomsPhase.java?rev=400416&r1=400415&r2=400416&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/AbstractRewritePomsPhase.java (original)
+++ maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/AbstractRewritePomsPhase.java Sat May  6 21:54:05 2006
@@ -27,7 +27,6 @@
 import org.apache.maven.plugins.release.scm.ReleaseScmCommandException;
 import org.apache.maven.plugins.release.scm.ReleaseScmRepositoryException;
 import org.apache.maven.plugins.release.scm.ScmRepositoryConfigurator;
-import org.apache.maven.plugins.release.scm.ScmTranslator;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.scm.ScmException;
 import org.apache.maven.scm.ScmFileSet;
@@ -544,25 +543,24 @@
                                           ScmRepository scmRepository )
         throws ReleaseExecutionException;
 
-    protected void rewriteTagElement( ScmTranslator translator, String tag, Element scmRoot, Namespace namespace )
+    protected Element rewriteElement( String name, String value, Element root, Namespace namespace )
     {
-        String resolvedTag = translator.resolveTag( tag );
-        Element tagElement = scmRoot.getChild( "tag", namespace );
+        Element tagElement = root.getChild( name, namespace );
         if ( tagElement != null )
         {
-            if ( resolvedTag != null )
+            if ( value != null )
             {
-                tagElement.setText( resolvedTag );
+                tagElement.setText( value );
             }
             else
             {
-                int index = scmRoot.indexOf( tagElement );
-                scmRoot.removeContent( index );
+                int index = root.indexOf( tagElement );
+                root.removeContent( index );
                 for ( int i = index - 1; i >= 0; i-- )
                 {
-                    if ( scmRoot.getContent( i ) instanceof Text )
+                    if ( root.getContent( i ) instanceof Text )
                     {
-                        scmRoot.removeContent( i );
+                        root.removeContent( i );
                     }
                     else
                     {
@@ -573,12 +571,14 @@
         }
         else
         {
-            if ( resolvedTag != null )
+            if ( value != null )
             {
-                Element element = new Element( "tag", namespace );
-                element.setText( resolvedTag );
-                scmRoot.addContent( "  " ).addContent( element ).addContent( "\n  " );
+                Element element = new Element( name, namespace );
+                element.setText( value );
+                root.addContent( "  " ).addContent( element ).addContent( "\n  " );
+                tagElement = element;
             }
         }
+        return tagElement;
     }
 }

Modified: maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhase.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhase.java?rev=400416&r1=400415&r2=400416&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhase.java (original)
+++ maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhase.java Sat May  6 21:54:05 2006
@@ -48,35 +48,39 @@
         // If SCM is null in original model, it is inherited, no mods needed
         if ( project.getScm() != null )
         {
-            Element scmRoot = rootElement.getChild( "scm", namespace );
-            if ( scmRoot != null )
+            ScmTranslator translator = (ScmTranslator) scmTranslators.get( scmRepository.getProvider() );
+            if ( translator != null )
             {
-                Scm scm = (Scm) releaseConfiguration.getOriginalScmInfo().get( projectId );
-                if ( scm == null )
+                Element scmRoot = rootElement.getChild( "scm", namespace );
+                if ( scmRoot != null )
                 {
-                    throw new ReleaseExecutionException(
-                        "Unable to find original SCM info for '" + project.getName() + "'" );
-                }
+                    Map originalScmInfo = releaseConfiguration.getOriginalScmInfo();
+                    // check containsKey, not == null, as we store null as a value
+                    if ( !originalScmInfo.containsKey( projectId ) )
+                    {
+                        throw new ReleaseExecutionException(
+                            "Unable to find original SCM info for '" + project.getName() + "'" );
+                    }
 
-                scmRoot.getChild( "connection", namespace ).setText( scm.getConnection() );
+                    Scm scm = (Scm) originalScmInfo.get( projectId );
 
-                Element devConnection = scmRoot.getChild( "developerConnection", namespace );
-                if ( devConnection != null )
-                {
-                    devConnection.setText( scm.getDeveloperConnection() );
-                }
-
-                Element url = scmRoot.getChild( "url", namespace );
-                if ( url != null )
-                {
-                    url.setText( scm.getUrl() );
-                }
-
-                ScmTranslator translator = (ScmTranslator) scmTranslators.get( scmRepository.getProvider() );
-                if ( translator != null )
-                {
-                    rewriteTagElement( translator, scm.getTag(), scmRoot, namespace );
+                    if ( scm != null )
+                    {
+                        rewriteElement( "connection", scm.getConnection(), scmRoot, namespace );
+                        rewriteElement( "developerConnection", scm.getDeveloperConnection(), scmRoot, namespace );
+                        rewriteElement( "url", scm.getUrl(), scmRoot, namespace );
+                        rewriteElement( "tag", translator.resolveTag( scm.getTag() ), scmRoot, namespace );
+                    }
+                    else
+                    {
+                        // cleanly remove the SCM element
+                        rewriteElement( "scm", null, rootElement, namespace );
+                    }
                 }
+            }
+            else
+            {
+                getLogger().debug( "No SCM translator found - skipping rewrite" );
             }
         }
     }

Modified: maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhase.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhase.java?rev=400416&r1=400415&r2=400416&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhase.java (original)
+++ maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhase.java Sat May  6 21:54:05 2006
@@ -16,6 +16,7 @@
  * limitations under the License.
  */
 
+import org.apache.maven.artifact.ArtifactUtils;
 import org.apache.maven.model.Scm;
 import org.apache.maven.plugins.release.config.ReleaseConfiguration;
 import org.apache.maven.plugins.release.scm.ScmTranslator;
@@ -46,48 +47,77 @@
         // If SCM is null in original model, it is inherited, no mods needed
         if ( project.getScm() != null )
         {
-            Element scmRoot = rootElement.getChild( "scm", namespace );
-            if ( scmRoot != null )
+            ScmTranslator translator = (ScmTranslator) scmTranslators.get( scmRepository.getProvider() );
+            if ( translator != null )
             {
-                releaseConfiguration.mapOriginalScmInfo( projectId, project.getScm() );
-
-                ScmTranslator translator = (ScmTranslator) scmTranslators.get( scmRepository.getProvider() );
-                if ( translator != null )
+                Element scmRoot = rootElement.getChild( "scm", namespace );
+                if ( scmRoot != null )
                 {
-                    Scm scm = project.getOriginalModel().getScm();
-                    String tag = releaseConfiguration.getReleaseLabel();
-                    String tagBase = releaseConfiguration.getTagBase();
+                    releaseConfiguration.mapOriginalScmInfo( projectId, project.getScm() );
 
-                    // TODO: svn utils should take care of prepending this
-                    if ( tagBase != null )
+                    translateScm( project, releaseConfiguration, translator, scmRoot, namespace );
+                }
+                else if ( project.getParent() != null )
+                {
+                    // If the SCM element is not present, only add it if the parent was not mapped (ie, it's external to
+                    // the release process and so has not been modified, so the values will not be correct on the tag)
+                    String parentId = ArtifactUtils.versionlessKey( project.getParent().getGroupId(),
+                                                                    project.getParent().getArtifactId() );
+                    if ( !releaseConfiguration.getOriginalScmInfo().containsKey( parentId ) )
                     {
-                        tagBase = "scm:svn:" + tagBase;
-                    }
-                    scmRoot.getChild( "connection", namespace ).setText(
-                        translator.translateTagUrl( scm.getConnection(), tag, tagBase ) );
+                        // we need to add it, since it has changed from the inherited value
+                        releaseConfiguration.mapOriginalScmInfo( projectId, null );
 
-                    Element devConnection = scmRoot.getChild( "developerConnection", namespace );
-                    if ( devConnection != null )
-                    {
-                        devConnection.setText(
-                            translator.translateTagUrl( scm.getDeveloperConnection(), tag, tagBase ) );
-                    }
+                        scmRoot = new Element( "scm" );
+                        scmRoot.addContent( "\n  " );
+                        rootElement.addContent( "\n  " ).addContent( scmRoot ).addContent( "\n" );
 
-                    Element url = scmRoot.getChild( "url", namespace );
-                    if ( url != null )
-                    {
-                        // use original tag base without protocol
-                        url.setText(
-                            translator.translateTagUrl( scm.getUrl(), tag, releaseConfiguration.getTagBase() ) );
+                        translateScm( project, releaseConfiguration, translator, scmRoot, namespace );
                     }
-
-                    rewriteTagElement( translator, tag, scmRoot, namespace );
-                }
-                else
-                {
-                    getLogger().debug( "No SCM translator found - skipping rewrite" );
                 }
             }
+            else
+            {
+                getLogger().debug( "No SCM translator found - skipping rewrite" );
+            }
+        }
+    }
+
+    private void translateScm( MavenProject project, ReleaseConfiguration releaseConfiguration,
+                               ScmTranslator translator, Element scmRoot, Namespace namespace )
+    {
+        Scm scm = project.getScm();
+        String tag = releaseConfiguration.getReleaseLabel();
+        String tagBase = releaseConfiguration.getTagBase();
+
+        // TODO: svn utils should take care of prepending this
+        if ( tagBase != null )
+        {
+            tagBase = "scm:svn:" + tagBase;
+        }
+        String value = translator.translateTagUrl( scm.getConnection(), tag, tagBase );
+        if ( !value.equals( scm.getConnection() ) )
+        {
+            rewriteElement( "connection", value, scmRoot, namespace );
+        }
+
+        value = translator.translateTagUrl( scm.getDeveloperConnection(), tag, tagBase );
+        if ( !value.equals( scm.getDeveloperConnection() ) )
+        {
+            rewriteElement( "developerConnection", value, scmRoot, namespace );
+        }
+
+        // use original tag base without protocol
+        value = translator.translateTagUrl( scm.getUrl(), tag, releaseConfiguration.getTagBase() );
+        if ( !value.equals( scm.getUrl() ) )
+        {
+            rewriteElement( "url", value, scmRoot, namespace );
+        }
+
+        value = translator.resolveTag( tag );
+        if ( value != null && !value.equals( scm.getTag() ) )
+        {
+            rewriteElement( "tag", value, scmRoot, namespace );
         }
     }
 

Modified: maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/AbstractReleaseTestCase.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/AbstractReleaseTestCase.java?rev=400416&r1=400415&r2=400416&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/AbstractReleaseTestCase.java (original)
+++ maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/AbstractReleaseTestCase.java Sat May  6 21:54:05 2006
@@ -30,9 +30,13 @@
 import org.apache.maven.artifact.versioning.VersionRange;
 import org.apache.maven.model.Dependency;
 import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.Profile;
+import org.apache.maven.model.Repository;
 import org.apache.maven.plugins.release.config.ReleaseConfiguration;
 import org.apache.maven.plugins.release.scm.DefaultScmRepositoryConfigurator;
 import org.apache.maven.plugins.release.scm.ScmRepositoryConfigurator;
+import org.apache.maven.profiles.DefaultProfileManager;
+import org.apache.maven.profiles.ProfileManager;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.project.MavenProjectBuilder;
 import org.apache.maven.project.ProjectBuildingException;
@@ -119,6 +123,21 @@
         Stack projectFiles = new Stack();
         projectFiles.push( testFile );
 
+        String url = getTestFile( "src/test/remote-repository" ).toURL().toExternalForm();
+        List repos =
+            Collections.singletonList( new DefaultArtifactRepository( "central", url, new DefaultRepositoryLayout() ) );
+
+        Repository repository = new Repository();
+        repository.setId( "central" );
+        repository.setUrl( url );
+
+        ProfileManager profileManager = new DefaultProfileManager( getContainer() );
+        Profile profile = new Profile();
+        profile.setId( "profile" );
+        profile.addRepository( repository );
+        profileManager.addProfile( profile );
+        profileManager.activateAsDefault( profile.getId() );
+
         List projects = new ArrayList();
         while ( !projectFiles.isEmpty() )
         {
@@ -132,7 +151,7 @@
             FileUtils.copyFile( getTestFile( "src/test/resources/" + filePath ),
                                 getTestFile( "target/test-classes/" + filePath ) );
 
-            MavenProject project = projectBuilder.build( file, localRepository, null );
+            MavenProject project = projectBuilder.build( file, localRepository, profileManager );
 
             for ( Iterator i = project.getModules().iterator(); i.hasNext(); )
             {
@@ -143,9 +162,6 @@
 
             projects.add( project );
         }
-
-        List repos = Collections.singletonList( new DefaultArtifactRepository( "central", getTestFile(
-            "src/test/remote-repository" ).toURL().toExternalForm(), new DefaultRepositoryLayout() ) );
 
         ProjectSorter sorter = new ProjectSorter( projects );
 

Modified: maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhaseTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhaseTest.java?rev=400416&r1=400415&r2=400416&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhaseTest.java (original)
+++ maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForDevelopmentPhaseTest.java Sat May  6 21:54:05 2006
@@ -248,4 +248,20 @@
 
         assertTrue( compareFiles( config.getReactorProjects() ) );
     }
+
+    public void testRewriteBasicPomWithInheritedScm()
+        throws Exception
+    {
+        ReleaseConfiguration config = createConfigurationFromProjects( "basic-pom-inherited-scm" );
+
+        config.mapReleaseVersion( "groupId:artifactId", RELEASE_VERSION );
+        config.mapDevelopmentVersion( "groupId:artifactId", NEXT_VERSION );
+        config.mapReleaseVersion( "groupId:subproject1", ALTERNATIVE_RELEASE_VERSION );
+        config.mapDevelopmentVersion( "groupId:subproject1", ALTERNATIVE_NEXT_VERSION );
+        config.mapOriginalScmInfo( "groupId:artifactId", null );
+
+        phase.execute( config );
+
+        assertTrue( compareFiles( config.getReactorProjects() ) );
+    }
 }

Modified: maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhaseTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhaseTest.java?rev=400416&r1=400415&r2=400416&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhaseTest.java (original)
+++ maven/plugins/trunk/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/RewritePomsForReleasePhaseTest.java Sat May  6 21:54:05 2006
@@ -248,4 +248,15 @@
             }
         }
     }
+
+    public void testRewriteBasicPomWithInheritedScm()
+        throws Exception
+    {
+        ReleaseConfiguration config =
+            createConfigurationForPomWithParentAlternateNextVersion( "basic-pom-inherited-scm" );
+
+        phase.execute( config );
+
+        assertTrue( compareFiles( config.getReactorProjects() ) );
+    }
 }

Added: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom Sat May  6 21:54:05 2006
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed 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>external</groupId>
+  <artifactId>parent-artifactId</artifactId>
+  <version>1</version>
+  <description>POM was created from deploy:deploy-file</description>
+  <scm>
+    <connection>scm:svn:file://localhost/tmp/scm-repo/trunk</connection>
+    <developerConnection>scm:svn:file://localhost/tmp/scm-repo/trunk</developerConnection>
+    <url>file://localhost/tmp/scm-repo/trunk</url>
+  </scm>
+  <distributionManagement>
+    <status>deployed</status>
+  </distributionManagement>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.md5
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.md5?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.md5 (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.md5 Sat May  6 21:54:05 2006
@@ -0,0 +1 @@
+e285fcfc912497c288753c21a7f898d7 *parent-artifactId-1.pom

Added: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.sha1
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.sha1?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.sha1 (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/1/parent-artifactId-1.pom.sha1 Sat May  6 21:54:05 2006
@@ -0,0 +1 @@
+539c7123c8ae3d747b5afe39d4d2c0111d294f00 *parent-artifactId-1.pom

Added: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml Sat May  6 21:54:05 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed 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.
+  -->
+
+<metadata>
+  <groupId>external</groupId>
+  <artifactId>parent-artifactId</artifactId>
+  <version>1</version>
+  <versioning>
+    <versions>
+      <version>1</version>
+    </versions>
+    <lastUpdated>20060424060506</lastUpdated>
+  </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.md5
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.md5?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.md5 (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.md5 Sat May  6 21:54:05 2006
@@ -0,0 +1 @@
+20111e6f87a79d413d86a4e6e64b051c *maven-metadata.xml

Added: maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.sha1
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.sha1?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.sha1 (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/remote-repository/external/parent-artifactId/maven-metadata.xml.sha1 Sat May  6 21:54:05 2006
@@ -0,0 +1 @@
+89f3ca9bc811ddcfa9ae62f8d81249c647f37c48 *maven-metadata.xml

Added: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/expected-pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/expected-pom.xml?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/expected-pom.xml (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/expected-pom.xml Sat May  6 21:54:05 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed 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>
+  <parent>
+    <groupId>external</groupId>
+    <artifactId>parent-artifactId</artifactId>
+    <version>1</version>
+  </parent>
+
+  <groupId>groupId</groupId>
+  <artifactId>artifactId</artifactId>
+  <version>1.1-SNAPSHOT</version>
+
+  <prerequisites>
+    <maven>2.0.4</maven>
+  </prerequisites>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/expected-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/expected-pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/pom.xml?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/pom.xml (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/pom.xml Sat May  6 21:54:05 2006
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed 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>
+  <parent>
+    <groupId>external</groupId>
+    <artifactId>parent-artifactId</artifactId>
+    <version>1</version>
+  </parent>
+
+  <groupId>groupId</groupId>
+  <artifactId>artifactId</artifactId>
+  <version>1.0</version>
+
+  <prerequisites>
+    <maven>2.0.4</maven>
+  </prerequisites>
+
+  <scm>
+    <connection>scm:svn:file://localhost/tmp/scm-repo/tags/release-label</connection>
+    <developerConnection>scm:svn:file://localhost/tmp/scm-repo/tags/release-label</developerConnection>
+    <url>file://localhost/tmp/scm-repo/tags/release-label</url>
+  </scm>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-development/basic-pom-inherited-scm/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/expected-pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/expected-pom.xml?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/expected-pom.xml (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/expected-pom.xml Sat May  6 21:54:05 2006
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed 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>
+  <parent>
+    <groupId>external</groupId>
+    <artifactId>parent-artifactId</artifactId>
+    <version>1</version>
+  </parent>
+
+  <groupId>groupId</groupId>
+  <artifactId>artifactId</artifactId>
+  <version>1.0</version>
+
+  <prerequisites>
+    <maven>2.0.4</maven>
+  </prerequisites>
+
+  <scm>
+    <connection>scm:svn:file://localhost/tmp/scm-repo/tags/release-label</connection>
+    <developerConnection>scm:svn:file://localhost/tmp/scm-repo/tags/release-label</developerConnection>
+    <url>file://localhost/tmp/scm-repo/tags/release-label</url>
+  </scm>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/expected-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/expected-pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/pom.xml?rev=400416&view=auto
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/pom.xml (added)
+++ maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/pom.xml Sat May  6 21:54:05 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright 2005-2006 The Apache Software Foundation.
+  ~
+  ~ Licensed 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>
+  <parent>
+    <groupId>external</groupId>
+    <artifactId>parent-artifactId</artifactId>
+    <version>1</version>
+  </parent>
+
+  <groupId>groupId</groupId>
+  <artifactId>artifactId</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <prerequisites>
+    <maven>2.0.4</maven>
+  </prerequisites>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-release-plugin/src/test/resources/projects/rewrite-for-release/basic-pom-inherited-scm/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision