Index: xdocs/goals.xml =================================================================== --- xdocs/goals.xml (revision 180068) +++ xdocs/goals.xml (working copy) @@ -33,10 +33,18 @@ Checkout a project + scm:checkin + Check in a list files + + scm:update Update a project from SCM + scm:add + Add new files into SCM + + scm:tag Tag a project in the SCM Index: xdocs/scmurl.xml =================================================================== --- xdocs/scmurl.xml (revision 180068) +++ xdocs/scmurl.xml (working copy) @@ -64,7 +64,29 @@ scm:svn:http://svn.apache.org/svn/root/module scm:cvs:https://username@svn.apache.org/svn/root/module + + +

+ The full connection string for StarTeam is as follows: +

+ scm:starteam:username:password@hostName:endpoint/projectName/viewName/folderHierarchy +

+ maven.scm.username and maven.scm.password + are the prefer way to store authentication information. +

+

+ For example: +

+ +scm:starteam:username:password@hostname:23456/project/view/folder1/folder2 +scm:starteam:username@hostname:23456/project/view/folder +scm:starteam:hostname:23456/project/view/folder + +
+ + + Index: xdocs/properties.xml =================================================================== --- xdocs/properties.xml (revision 180068) +++ xdocs/properties.xml (working copy) @@ -118,7 +118,7 @@ Yes

- The username to pass to the SCM. Currently only Subversion is known to honour this. + The username to pass to the SCM. Currently only Subversion and Starteam are known to honour this. You can also add it to the URL, eg. http://user@svn.mycompany.com/repos.

@@ -128,12 +128,45 @@ Yes

- The password to give to the SCM. Currently only Subversion is known to honour this. + The password to give to the SCM. Currently only Subversion and Starteam are known to honour this. It is not recommended that you use this property, and instead use an alternative authentication technique such as an ssh agent or Subversion's password caching mechanism.

+ + + maven.scm.message + Yes + +

+ Add/Checkin comment. Default is blank. +

+ + + + + maven.scm.src.includes + Yes + +

+ Comma or space separated list of Ant path patterns for scm:checkin, scm:update, scm:add goals + Default is blank. +

+ + + + maven.scm.src.excludes + Yes + +

+ Comma or space separated list of Ant path patterns for scm:checkin, scm:update, scm:add goals + Default is blank. +

+ + + + Index: project.xml =================================================================== --- project.xml (revision 180068) +++ project.xml (working copy) @@ -22,7 +22,7 @@ ../plugin-parent/project.xml maven-scm-plugin Maven Source Control Management Plug-in - 1.5 + 1.5.1-SNAPSHOT A plugin for SCM tasks, currently CVS. SCM Plugin for Maven. http://maven.apache.org/reference/plugins/scm/ @@ -124,17 +124,22 @@ org.apache.maven.scm maven-scm-api - 1.0-alpha-1 + 1.0-alpha-2-SNAPSHOT org.apache.maven.scm maven-scm-provider-cvs - 1.0-alpha-1 + 1.0-alpha-2-SNAPSHOT org.apache.maven.scm maven-scm-provider-svn - 1.0-alpha-1 + 1.0-alpha-2-SNAPSHOT + + org.apache.maven.scm + maven-scm-provider-starteam + 1.0-alpha-2-SNAPSHOT + Index: src/main/org/apache/maven/plugins/scm/ScmBean.java =================================================================== --- src/main/org/apache/maven/plugins/scm/ScmBean.java (revision 180068) +++ src/main/org/apache/maven/plugins/scm/ScmBean.java (working copy) @@ -20,6 +20,7 @@ import org.apache.maven.scm.ScmFileSet; import org.apache.maven.scm.ScmResult; import org.apache.maven.scm.provider.svn.repository.SvnScmProviderRepository; +import org.apache.maven.scm.provider.starteam.repository.StarteamScmProviderRepository; import org.apache.maven.scm.command.checkout.CheckOutScmResult; import org.apache.maven.scm.command.tag.TagScmResult; import org.apache.maven.scm.command.update.UpdateScmResult; @@ -119,6 +120,21 @@ svnRepo.setTagBase( tagBase ); } } + + if ( repository.getProvider().equals( "starteam" ) ) + { + StarteamScmProviderRepository starteamRepo = (StarteamScmProviderRepository) repository.getProviderRepository(); + + if ( username != null && username.length() > 0 ) + { + starteamRepo.setUser( username ); + } + if ( password != null && password.length() > 0 ) + { + starteamRepo.setPassword( password ); + } + } + return repository; } Index: plugin.properties =================================================================== --- plugin.properties (revision 180068) +++ plugin.properties (working copy) @@ -41,6 +41,13 @@ # check whether CVS tagged first, and warn maven.scm.check.tagged=true +# settings for scm:checkin, scm:add +maven.scm.src.includes= +maven.scm.src.excludes= + +#specific to scm:checkin +maven.scm.message= + #=============== # CVS Properties #=============== Index: plugin.jelly =================================================================== --- plugin.jelly (revision 180068) +++ plugin.jelly (working copy) @@ -38,7 +38,7 @@ + + @@ -125,10 +131,21 @@ + Updating from SCM - - + + You must specify an SCM URL to connect to + + + + @@ -145,6 +162,60 @@ + + + Checkin files to SCM + + + You must specify an SCM URL to connect to + + + + + + + + + Add files to SCM + + + You must specify an SCM URL to connect to + + + + + + + + + Query for status + + + You must specify an SCM URL to connect to + + + + + +