Skip to content

Commit a197ada

Browse files
committed
[MRELEASE-1100] Upgrade Maven SCM to 2.0.0-M2
This closes #143
1 parent 3163f27 commit a197ada

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

maven-release-manager/src/test/java/org/apache/maven/shared/release/stubs/ScmManagerStub.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
* under the License.
2020
*/
2121

22-
import javax.inject.Named;
2322
import javax.inject.Singleton;
2423

2524
import java.util.HashMap;
@@ -34,7 +33,6 @@
3433
* Override the makeRepository methods to honour the URL passed in.
3534
*/
3635
@Singleton
37-
@Named( "default" )
3836
@Priority( 100 )
3937
public class ScmManagerStub
4038
extends org.apache.maven.scm.manager.ScmManagerStub

maven-release-plugin/src/it/setup/maven-scm-provider-stub/src/main/java/org/apache/maven/scm/provider/stub/StubCheckInCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
/**
4040
* A dummy check-in command.
41-
*
41+
*
4242
* @author Benjamin Bentmann
4343
*/
4444
class StubCheckInCommand
@@ -58,7 +58,7 @@ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet
5858
File workingCopyRoot = stubRepo.getWorkingCopyRoot( fileSet );
5959
File repoRoot = stubRepo.getRoot();
6060

61-
getLogger().info( "Committing: " + workingCopyRoot + " > " + repoRoot );
61+
logger.info( "Committing: " + workingCopyRoot + " > " + repoRoot );
6262

6363
List paths = stubRepo.getPaths( workingCopyRoot, fileSet );
6464

@@ -68,7 +68,7 @@ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet
6868
File srcFile = new File( workingCopyRoot, path );
6969
File dstFile = new File( repoRoot, path );
7070

71-
getLogger().info( " " + path );
71+
logger.info( " " + path );
7272

7373
if ( dstFile.isDirectory() )
7474
{

maven-release-plugin/src/it/setup/maven-scm-provider-stub/src/main/java/org/apache/maven/scm/provider/stub/StubCheckOutCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
/**
4444
* A dummy check-out command.
45-
*
45+
*
4646
* @author Benjamin Bentmann
4747
*/
4848
class StubCheckOutCommand
@@ -75,7 +75,7 @@ else if ( version instanceof ScmBranch )
7575
revRoot = stubRepo.getRoot();
7676
}
7777

78-
getLogger().info( "Checking out: " + revRoot + " > " + workingCopyRoot );
78+
logger.info( "Checking out: " + revRoot + " > " + workingCopyRoot );
7979

8080
if ( workingCopyRoot.isFile() )
8181
{
@@ -100,7 +100,7 @@ else if ( version instanceof ScmBranch )
100100
File srcFile = new File( revRoot, path );
101101
File dstFile = new File( workingCopyRoot, path );
102102

103-
getLogger().info( " " + path );
103+
logger.info( " " + path );
104104

105105
if ( srcFile.isDirectory() )
106106
{

maven-release-plugin/src/it/setup/maven-scm-provider-stub/src/main/java/org/apache/maven/scm/provider/stub/StubScmProvider.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
/**
4040
* A stub SCM provider used for the Maven Release Plugin when doing integration testing.
41-
*
41+
*
4242
* @author Benjamin Bentmann
4343
*/
4444
@Singleton
@@ -62,8 +62,6 @@ protected ScmResult executeCommand( Command command, ScmProviderRepository repos
6262
CommandParameters parameters )
6363
throws ScmException
6464
{
65-
command.setLogger( getLogger() );
66-
6765
return command.execute( repository, fileSet, parameters );
6866
}
6967

maven-release-plugin/src/it/setup/maven-scm-provider-stub/src/main/java/org/apache/maven/scm/provider/stub/StubTagCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
/**
4141
* A dummy tag command.
42-
*
42+
*
4343
* @author Benjamin Bentmann
4444
*/
4545
class StubTagCommand
@@ -61,7 +61,7 @@ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet
6161
String tagName = parameters.getString( CommandParameter.TAG_NAME );
6262
File tagRoot = new File( stubRepo.getTagBase(), tagName );
6363

64-
getLogger().info( "Tagging: " + repoRoot + " > " + tagRoot );
64+
logger.info( "Tagging: " + repoRoot + " > " + tagRoot );
6565

6666
if ( tagRoot.exists() )
6767
{
@@ -80,7 +80,7 @@ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet
8080
File srcFile = new File( repoRoot, path );
8181
File dstFile = new File( tagRoot, path );
8282

83-
getLogger().info( " " + path );
83+
logger.info( " " + path );
8484

8585
if ( srcFile.isDirectory() )
8686
{

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
</contributors>
9191

9292
<properties>
93-
<scmVersion>1.13.0</scmVersion>
93+
<scmVersion>2.0.0-M2</scmVersion>
9494
<javaVersion>8</javaVersion>
9595
<mavenVersion>3.2.5</mavenVersion>
9696
<resolverVersion>1.0.0.v20140518</resolverVersion>

0 commit comments

Comments
 (0)