Unable to perform maven release in StarTeam

392 views Asked by At

I am unable to perform Maven release in Starteam and get the following error.

Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare (default-cli) on project TestPrj: An error is occurred in the tag process: Exception while executing SCM command. This provider doesn't support tagging subsets of a directory

The same command works in svn. Doesn't Starteam support tagging?

1

There are 1 answers

0
Joe On BEST ANSWER

This may be a bug in the StarTeam provider. Try version 2.1 of maven-release-plugin and see if that works.

This error is thrown when you tried to tag something specific, rather than the whole repository. From Maven SCM 1.4, in the 2.1 maven-release-plugin:

    if ( fileSet.getFiles().length != 0 )
    {
        throw new ScmException( "This provider doesn't support tagging subsets of a directory" );
    }

Later it was changed and the sense inverted:

     {
-        if ( fileSet.getFiles().length != 0 )
+        if ( fileSet.getFileList().isEmpty() )
         {

For the Subversion provider, this was fixed:

-        if ( fileSet.getFileList().isEmpty() )
+        if ( !fileSet.getFileList().isEmpty() )
         {

It hasn't been fixed for StarTeam; if rolling back to 2.1 works, consider opening an issue.