diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckPomPhaseTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckPomPhaseTest.java index 84e78d7d5..46ee81c7c 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckPomPhaseTest.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/CheckPomPhaseTest.java @@ -95,7 +95,7 @@ public void testGetUrlFromProjectDevConnection() { ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder(); builder.setScmSourceUrl( "scm:svn:https://localhost/tmp/repo" ); - + MavenProject project = createProject( "1.0-SNAPSHOT" ); phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), Collections.singletonList( project ) ); @@ -120,7 +120,7 @@ public void testGetInvalidUrl() throws Exception { ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder(); - builder.setScmSourceUrl( "scm:cvs:" ); + builder.setScmSourceUrl( "scm:svn:" ); MavenProject project = createProject( "1.0-SNAPSHOT" ); diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/InputVariablesPhaseTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/InputVariablesPhaseTest.java index 6476f04e5..6c215e0e2 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/InputVariablesPhaseTest.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/InputVariablesPhaseTest.java @@ -289,7 +289,7 @@ public void testPrompterException() // MRELEASE-110 @Test - public void testCvsTag() + public void testSvnTag() throws Exception { // prepare @@ -301,25 +301,25 @@ public void testCvsTag() ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder(); builder.setInteractive( false ); builder.addReleaseVersion( "groupId:artifactId", "1.0" ); - builder.setScmSourceUrl( "scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module" ); + builder.setScmSourceUrl( "scm:svn:svn://localhost/repo" ); // execute phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects ); // verify - assertEquals( "Check tag", "artifactId-1_0", ReleaseUtils.buildReleaseDescriptor( builder ).getScmReleaseLabel() ); + assertEquals( "Check tag", "artifactId-1.0", ReleaseUtils.buildReleaseDescriptor( builder ).getScmReleaseLabel() ); // prepare builder = new ReleaseDescriptorBuilder(); builder.setInteractive( false ); builder.addReleaseVersion( "groupId:artifactId", "1.0" ); - builder.setScmSourceUrl( "scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module" ); + builder.setScmSourceUrl( "scm:svn:svn://localhost/repo" ); // execute phase.simulate( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects ); // verify - assertEquals( "Check tag", "artifactId-1_0", ReleaseUtils.buildReleaseDescriptor( builder ).getScmReleaseLabel() ); + assertEquals( "Check tag", "artifactId-1.0", ReleaseUtils.buildReleaseDescriptor( builder ).getScmReleaseLabel() ); // never use prompter verifyNoMoreInteractions( mockPrompter ); diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForBranchPhaseTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForBranchPhaseTest.java index 49642affa..aee022c8b 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForBranchPhaseTest.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForBranchPhaseTest.java @@ -213,12 +213,12 @@ protected void unmapNextVersion( ReleaseDescriptorBuilder config, String project } @Test - public void testRewriteBasicPomWithCvs() + public void testRewriteBasicPomWithGit() throws Exception { - List reactorProjects = createReactorProjects( "basic-pom-with-cvs" ); - ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-cvs" ); + List reactorProjects = createReactorProjects( "basic-pom-with-git" ); + ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-git" ); mapNextVersion( builder, "groupId:artifactId" ); phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects ); @@ -270,11 +270,11 @@ public void testRewriteBasicPomWithTagBaseAndVaryingScmUrls() } @Test - public void testRewriteBasicPomWithCvsFromTag() + public void testRewriteBasicPomWithGitFromTag() throws Exception { - List reactorProjects = createReactorProjects( "basic-pom-with-cvs-from-tag" ); - ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-cvs-from-tag" ); + List reactorProjects = createReactorProjects( "basic-pom-with-git-from-tag" ); + ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-git-from-tag" ); mapNextVersion( builder, "groupId:artifactId" ); phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects ); diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForDevelopmentPhaseTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForDevelopmentPhaseTest.java index 953694ce0..476cf0427 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForDevelopmentPhaseTest.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForDevelopmentPhaseTest.java @@ -64,7 +64,7 @@ protected String getRoleHint() { return "rewrite-poms-for-development"; } - + @Override protected Path getWorkingDirectory( String workingDir ) { @@ -252,18 +252,18 @@ protected ReleaseDescriptorBuilder createConfigurationForWithParentNextVersion( } @Test - public void testRewriteBasicPomWithCvs() + public void testRewriteBasicPomWithGit() throws Exception { - List reactorProjects = createReactorProjects( "basic-pom-with-cvs" ); - ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-cvs" ); + List reactorProjects = createReactorProjects( "basic-pom-with-git" ); + ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-git" ); mapNextVersion( builder, "groupId:artifactId" ); Scm scm = new Scm(); - scm.setConnection( "${scm.base}:pserver:anoncvs@localhost:/tmp/scm-repo:module" ); - scm.setDeveloperConnection( "${scm.base}:ext:${username}@localhost:/tmp/scm-repo:module" ); - scm.setUrl( "${baseUrl}/module" ); + scm.setConnection( "${scm.base}:git://localhost/repo" ); + scm.setDeveloperConnection( "${scm.base}:git+ssh://${username}@localhost/tmp/repo" ); + scm.setUrl( "${baseUrl}/repo" ); builder.addOriginalScmInfo( "groupId:artifactId", scm ); phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects ); @@ -272,18 +272,18 @@ public void testRewriteBasicPomWithCvs() } @Test - public void testRewriteBasicPomWithCvsFromTag() + public void testRewriteBasicPomWithGitFromTag() throws Exception { - List reactorProjects = createReactorProjects( "basic-pom-with-cvs-from-tag" ); - ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-cvs-from-tag" ); + List reactorProjects = createReactorProjects( "basic-pom-with-git-from-tag" ); + ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-git-from-tag" ); mapNextVersion( builder, "groupId:artifactId" ); Scm scm = new Scm(); - scm.setConnection( "scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module" ); - scm.setDeveloperConnection( "scm:cvs:ext:${username}@localhost:/tmp/scm-repo:module" ); - scm.setUrl( "http://localhost/viewcvs.cgi/module" ); + scm.setConnection( "scm:git:git://localhost/repo" ); + scm.setDeveloperConnection( "scm:git:git+ssh://${username}@localhost/tmp/repo" ); + scm.setUrl( "http://localhost/viewgit.cgi/repo" ); scm.setTag( "original-label" ); builder.addOriginalScmInfo( "groupId:artifactId", scm ); diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForReleasePhaseTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForReleasePhaseTest.java index e25678e77..54fc13019 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForReleasePhaseTest.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/RewritePomsForReleasePhaseTest.java @@ -59,7 +59,7 @@ protected String getRoleHint() { return "rewrite-poms-for-release"; } - + @Override protected Path getWorkingDirectory( String workingDir ) { @@ -213,12 +213,12 @@ protected void unmapNextVersion( ReleaseDescriptorBuilder config, String project } @Test - public void testRewriteBasicPomWithCvs() + public void testRewriteBasicPomWithGit() throws Exception { - List reactorProjects = createReactorProjects( "basic-pom-with-cvs" ); - ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-cvs" ); + List reactorProjects = createReactorProjects( "basic-pom-with-git" ); + ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-git" ); mapNextVersion( builder, "groupId:artifactId" ); phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects ); @@ -270,11 +270,11 @@ public void testRewriteBasicPomWithTagBaseAndVaryingScmUrls() } @Test - public void testRewriteBasicPomWithCvsFromTag() + public void testRewriteBasicPomWithGitFromTag() throws Exception { - List reactorProjects = createReactorProjects( "basic-pom-with-cvs-from-tag" ); - ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-cvs-from-tag" ); + List reactorProjects = createReactorProjects( "basic-pom-with-git-from-tag" ); + ReleaseDescriptorBuilder builder = createDescriptorFromProjects( reactorProjects, "basic-pom-with-git-from-tag" ); mapNextVersion( builder, "groupId:artifactId" ); phase.execute( ReleaseUtils.buildReleaseDescriptor( builder ), new DefaultReleaseEnvironment(), reactorProjects ); diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/scm/DefaultScmRepositoryConfiguratorTest.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/scm/DefaultScmRepositoryConfiguratorTest.java index 985e6cf29..8dd50c800 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/scm/DefaultScmRepositoryConfiguratorTest.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/scm/DefaultScmRepositoryConfiguratorTest.java @@ -41,8 +41,6 @@ public class DefaultScmRepositoryConfiguratorTest { private ScmRepositoryConfigurator scmRepositoryConfigurator; - private static final int CVS_PORT = 2401; - @Override protected void setUp() throws Exception @@ -59,8 +57,8 @@ public void testGetConfiguredRepository() ScmRepository repository = scmRepositoryConfigurator.getConfiguredRepository( ReleaseUtils.buildReleaseDescriptor( builder ), null ); - assertEquals( "check provider", "cvs", repository.getProvider() ); - assertEquals( "check username", "anoncvs", repository.getProviderRepository().getUser() ); + assertEquals( "check provider", "svn", repository.getProvider() ); + assertNull( "check username", repository.getProviderRepository().getUser() ); assertNull( "check password", repository.getProviderRepository().getPassword() ); } @@ -93,7 +91,7 @@ public void testGetConfiguredRepositoryWithHost() { Settings settings = new Settings(); Server server = new Server(); - server.setId( "localhost:" + CVS_PORT ); + server.setId( "localhost" ); server.setUsername( "settings-username" ); server.setPassword( "settings-password" ); server.setPrivateKey( "settings-private-key" ); @@ -101,14 +99,14 @@ public void testGetConfiguredRepositoryWithHost() settings.addServer( server ); ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder(); - builder.setScmSourceUrl( "scm:cvs:pserver:anoncvs@localhost:/home/cvs:module" ); + builder.setScmSourceUrl( "scm:svn:http://localhost/repo" ); ScmRepository repository = scmRepositoryConfigurator.getConfiguredRepository( ReleaseUtils.buildReleaseDescriptor( builder ), settings ); ScmProviderRepositoryWithHost providerRepository = (ScmProviderRepositoryWithHost) repository.getProviderRepository(); assertEquals( "check host", "localhost", providerRepository.getHost() ); - assertEquals( "check port", CVS_PORT, providerRepository.getPort() ); + assertEquals( "check port", 0, providerRepository.getPort() ); assertEquals( "check username", "settings-username", providerRepository.getUser() ); assertEquals( "check password", "settings-password", providerRepository.getPassword() ); assertEquals( "check private key", "settings-private-key", providerRepository.getPrivateKey() ); @@ -179,7 +177,7 @@ public void testGetConfiguredRepositoryInvalidScmUrlParameters() throws NoSuchScmProviderException { ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder(); - builder.setScmSourceUrl( "scm:cvs:" ); + builder.setScmSourceUrl( "scm:svn:" ); try { @@ -201,13 +199,13 @@ public void testGetRepositoryProvider() ScmRepository repository = scmRepositoryConfigurator.getConfiguredRepository( ReleaseUtils.buildReleaseDescriptor( builder ), null ); ScmProvider provider = scmRepositoryConfigurator.getRepositoryProvider( repository ); - assertEquals( "Check SCM provider", "cvs", provider.getScmType() ); + assertEquals( "Check SCM provider", "svn", provider.getScmType() ); } private static ReleaseDescriptorBuilder createReleaseDescriptorBuilder() { ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder(); - builder.setScmSourceUrl( "scm:cvs:pserver:anoncvs@localhost:/home/cvs:module" ); + builder.setScmSourceUrl( "scm:svn:http://localhost/repo" ); return builder; } diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs-from-tag/expected-pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git-from-tag/expected-pom.xml similarity index 75% rename from maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs-from-tag/expected-pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git-from-tag/expected-pom.xml index 27435c207..de046e327 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs-from-tag/expected-pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git-from-tag/expected-pom.xml @@ -27,13 +27,13 @@ - ${scm.base}:pserver:anoncvs@localhost:/tmp/scm-repo:module - ${scm.base}:ext:${username}@localhost:/tmp/scm-repo:module - ${baseUrl}/module + ${scm.base}:git://localhost/repo + ${scm.base}:git+ssh://${username}@localhost/tmp/repo + ${baseUrl}/repo release-label - scm:cvs - http://localhost/viewcvs.cgi + scm:git + http://localhost/viewgit.cgi - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs-from-tag/pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git-from-tag/pom.xml similarity index 75% rename from maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs-from-tag/pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git-from-tag/pom.xml index 923f88e8f..4d64c05e4 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs-from-tag/pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git-from-tag/pom.xml @@ -27,13 +27,13 @@ - ${scm.base}:pserver:anoncvs@localhost:/tmp/scm-repo:module - ${scm.base}:ext:${username}@localhost:/tmp/scm-repo:module - ${baseUrl}/module + ${scm.base}:git://localhost/repo + ${scm.base}:git+ssh://${username}@localhost/tmp/repo + ${baseUrl}/repo original-tag - scm:cvs - http://localhost/viewcvs.cgi + scm:git + http://localhost/viewgit.cgi - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs/expected-pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git/expected-pom.xml similarity index 79% rename from maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs/expected-pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git/expected-pom.xml index 60479d980..74d21b063 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs/expected-pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git/expected-pom.xml @@ -27,9 +27,9 @@ - scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module - scm:cvs:ext:${username}@localhost:/tmp/scm-repo:module - http://localhost/viewcvs.cgi/module + scm:git:git://localhost/repo + scm:git:git+ssh://${username}@localhost/tmp/repo + http://localhost/viewgit.cgi/repo release-label - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs/pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git/pom.xml similarity index 78% rename from maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs/pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git/pom.xml index b4af394d3..d0a8b363a 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs/pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-git/pom.xml @@ -27,8 +27,8 @@ - scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module - scm:cvs:ext:${username}@localhost:/tmp/scm-repo:module - http://localhost/viewcvs.cgi/module + scm:git:git://localhost/repo + scm:git:git+ssh://${username}@localhost/tmp/repo + http://localhost/viewgit.cgi/repo - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs-from-tag/expected-pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git-from-tag/expected-pom.xml similarity index 79% rename from maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs-from-tag/expected-pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git-from-tag/expected-pom.xml index 52c1aa37b..847c5a665 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs-from-tag/expected-pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git-from-tag/expected-pom.xml @@ -27,9 +27,9 @@ - scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module - scm:cvs:ext:${username}@localhost:/tmp/scm-repo:module - http://localhost/viewcvs.cgi/module + scm:git:git://localhost/repo + scm:git:git+ssh://${username}@localhost/tmp/repo + http://localhost/viewgit.cgi/repo original-label - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs-from-tag/pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git-from-tag/pom.xml similarity index 78% rename from maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs-from-tag/pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git-from-tag/pom.xml index 2780f9c86..b534bb39d 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs-from-tag/pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git-from-tag/pom.xml @@ -27,9 +27,9 @@ - scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module - scm:cvs:ext:${username}@localhost:/tmp/scm-repo:module - http://localhost/viewcvs.cgi/module + scm:git:git://localhost/repo + scm:git:git+ssh://${username}@localhost/tmp/repo + http://localhost/viewgit.cgi/repo release-label - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs/expected-pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git/expected-pom.xml similarity index 74% rename from maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs/expected-pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git/expected-pom.xml index c68c10f90..504f7188b 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs/expected-pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git/expected-pom.xml @@ -27,12 +27,13 @@ - ${scm.base}:pserver:anoncvs@localhost:/tmp/scm-repo:module - ${scm.base}:ext:${username}@localhost:/tmp/scm-repo:module - ${baseUrl}/module + ${scm.base}:git://localhost/repo + ${scm.base}:git+ssh://${username}@localhost/tmp/repo + ${baseUrl}/repo + HEAD - scm:cvs - http://localhost/viewcvs.cgi + scm:git + http://localhost/viewgit.cgi - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs/pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git/pom.xml similarity index 74% rename from maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs/pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git/pom.xml index 63c09afb1..3c6ab069f 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-cvs/pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-development/basic-pom-with-git/pom.xml @@ -27,13 +27,13 @@ - ${scm.base}:pserver:anoncvs@localhost:/tmp/scm-repo:module - ${scm.base}:ext:${username}@localhost:/tmp/scm-repo:module - ${baseUrl}/module + ${scm.base}:git://localhost/repo + ${scm.base}:git+ssh://${username}@localhost/tmp/repo + ${baseUrl}/repo release-label - scm:cvs - http://localhost/viewcvs.cgi + scm:git + http://localhost/viewgit.cgi - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs-from-tag/expected-pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git-from-tag/expected-pom.xml similarity index 74% rename from maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs-from-tag/expected-pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git-from-tag/expected-pom.xml index 63c09afb1..3c6ab069f 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs-from-tag/expected-pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git-from-tag/expected-pom.xml @@ -27,13 +27,13 @@ - ${scm.base}:pserver:anoncvs@localhost:/tmp/scm-repo:module - ${scm.base}:ext:${username}@localhost:/tmp/scm-repo:module - ${baseUrl}/module + ${scm.base}:git://localhost/repo + ${scm.base}:git+ssh://${username}@localhost/tmp/repo + ${baseUrl}/repo release-label - scm:cvs - http://localhost/viewcvs.cgi + scm:git + http://localhost/viewgit.cgi - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs-from-tag/pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git-from-tag/pom.xml similarity index 75% rename from maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs-from-tag/pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git-from-tag/pom.xml index 923f88e8f..4d64c05e4 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs-from-tag/pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git-from-tag/pom.xml @@ -27,13 +27,13 @@ - ${scm.base}:pserver:anoncvs@localhost:/tmp/scm-repo:module - ${scm.base}:ext:${username}@localhost:/tmp/scm-repo:module - ${baseUrl}/module + ${scm.base}:git://localhost/repo + ${scm.base}:git+ssh://${username}@localhost/tmp/repo + ${baseUrl}/repo original-tag - scm:cvs - http://localhost/viewcvs.cgi + scm:git + http://localhost/viewgit.cgi - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs/expected-pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git/expected-pom.xml similarity index 78% rename from maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs/expected-pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git/expected-pom.xml index 2780f9c86..b534bb39d 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-cvs/expected-pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git/expected-pom.xml @@ -27,9 +27,9 @@ - scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module - scm:cvs:ext:${username}@localhost:/tmp/scm-repo:module - http://localhost/viewcvs.cgi/module + scm:git:git://localhost/repo + scm:git:git+ssh://${username}@localhost/tmp/repo + http://localhost/viewgit.cgi/repo release-label - \ No newline at end of file + diff --git a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs/pom.xml b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git/pom.xml similarity index 78% rename from maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs/pom.xml rename to maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git/pom.xml index b4af394d3..d0a8b363a 100644 --- a/maven-release-manager/src/test/resources/projects/rewrite-for-branch/basic-pom-with-cvs/pom.xml +++ b/maven-release-manager/src/test/resources/projects/rewrite-for-release/basic-pom-with-git/pom.xml @@ -27,8 +27,8 @@ - scm:cvs:pserver:anoncvs@localhost:/tmp/scm-repo:module - scm:cvs:ext:${username}@localhost:/tmp/scm-repo:module - http://localhost/viewcvs.cgi/module + scm:git:git://localhost/repo + scm:git:git+ssh://${username}@localhost/tmp/repo + http://localhost/viewgit.cgi/repo - \ No newline at end of file +