Maven SCM
  1. Maven SCM
  2. SCM-452

scm url not being parsed correctly for release:perform only

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: maven-scm-provider-cvs
    • Labels:
      None
    • Environment:

      Description

      mvn release:perform -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname
      works, except it won't really do what we need without a lot of manual intervention, because this command:
      mvn release:prepare -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname
      yields this error:

      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] The scm url is invalid.
        - The connection string contains too few tokens.
      [INFO] ------------------------------------------------------------------------
      

      -e doesn't reveal a long enough stack trace to show anything. It would be helpful if this error could say what url it's parsing
      the scm section of the pom is this:

      	<scm>
      		<connection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</connection>
      		<developerConnection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</developerConnection>
      		<url>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot:projectname</url>
      	</scm>
      

      We don't intend to put the user name in the pom (shared resource) which is part of why I'm trying to override it.

      and the servers section of settings.xml is like so:

      	<server>
      	  <id>cvs-server.mycompany.com</id>
      	  <filePermissions>664</filePermissions>
      	  <directoryPermissions>775</directoryPermissions>
      	  <username>username</username>
      	  <privateKey>/home/username/.ssh/id_rsa_of_this_setup</privateKey>
          </server>
      

      but in any case I'm not sure it's even reading the scm section of the pom correctly. After downloading the plugin sources, one of the few unresolved items was the Xpp3Reader which might have told me the answer. This is not up to my experience of a high bar set by working with this plugin in a subversion environment, but maybe it's an unfair comparison.

      Any attention greatly appreciated

      --Ben Clark

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12962771 ] Default workflow, editable Closed status [ 12999025 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:08:37 UTC 2015 [ 1428282517778 ]
        Mark Thomas made changes -
        Workflow jira [ 12725461 ] Default workflow, editable Closed status [ 12757621 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:22:36 UTC 2015 [ 1428236556206 ]
        Robert Scholte made changes -
        Description {{mvn release:perform -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname}}
        works, except it won't really do what we need without a lot of manual intervention, because this command:
        {{mvn release:prepare -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname }}
        yields this error:
        {noformat}
        [ERROR] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] The scm url is invalid.
          - The connection string contains too few tokens.
        [INFO] ------------------------------------------------------------------------
        {noformat}

        {{-e}} doesn't reveal a long enough stack trace to show anything. It would be helpful if this error could say what url it's parsing
        the scm section of the pom is this:
        {code:xml}
        <scm>
        <connection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</connection>
        <developerConnection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</developerConnection>
        <url>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot:projectname</url>
        </scm>
        {code}
        We don't intend to put the user name in the pom (shared resource) which is part of why I'm trying to override it.

        and the servers section of {{settings.xml}} is like so:
        {code:xml}
        <server>
        <id>cvs-server.mycompany.com</id>
        <filePermissions>664</filePermissions>
        <directoryPermissions>775</directoryPermissions>
        <username>username</username>
        <privateKey>/home/username/.ssh/id_rsa_of_this_setup</privateKey>
            </server>
        {code}

        but in any case I'm not sure it's even reading the scm section of the pom correctly. After downloading the plugin sources, one of the few unresolved items was the {{Xpp3Reader}} which might have told me the answer. This is not up to my experience of a high bar set by working with this plugin in a subversion environment, but maybe it's an unfair comparison.

        Any attention greatly appreciated

        --Ben Clark
        {{mvn release:perform -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname}}
        works, except it won't really do what we need without a lot of manual intervention, because this command:
        {{mvn release:prepare -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname}}
        yields this error:
        {noformat}
        [ERROR] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] The scm url is invalid.
          - The connection string contains too few tokens.
        [INFO] ------------------------------------------------------------------------
        {noformat}

        {{-e}} doesn't reveal a long enough stack trace to show anything. It would be helpful if this error could say what url it's parsing
        the scm section of the pom is this:
        {code:xml}
        <scm>
        <connection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</connection>
        <developerConnection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</developerConnection>
        <url>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot:projectname</url>
        </scm>
        {code}
        We don't intend to put the user name in the pom (shared resource) which is part of why I'm trying to override it.

        and the servers section of {{settings.xml}} is like so:
        {code:xml}
        <server>
        <id>cvs-server.mycompany.com</id>
        <filePermissions>664</filePermissions>
        <directoryPermissions>775</directoryPermissions>
        <username>username</username>
        <privateKey>/home/username/.ssh/id_rsa_of_this_setup</privateKey>
            </server>
        {code}

        but in any case I'm not sure it's even reading the scm section of the pom correctly. After downloading the plugin sources, one of the few unresolved items was the {{Xpp3Reader}} which might have told me the answer. This is not up to my experience of a high bar set by working with this plugin in a subversion environment, but maybe it's an unfair comparison.

        Any attention greatly appreciated

        --Ben Clark
        Robert Scholte made changes -
        Field Original Value New Value
        Description mvn release:perform -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname
        works, except it won't really do what we need without a lot of manual intervention, because this command:
        mvn release:prepare -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname
        yields this error:
        [ERROR] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] The scm url is invalid.
          - The connection string contains too few tokens.
        [INFO] ------------------------------------------------------------------------

        -e doesn't reveal a long enough stack trace to show anything. It would be helpful if this error could say what url it's parsing
        the scm section of the pom is this:
        <scm>
        <connection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</connection>
        <developerConnection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</developerConnection>
        <url>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot:projectname</url>
        </scm>

        We don't intend to put the user name in the pom (shared resource) which is part of why I'm trying to override it.

        and the servers section of settings.xml is like so:
        <server>
        <id>cvs-server.mycompany.com</id>
        <filePermissions>664</filePermissions>
        <directoryPermissions>775</directoryPermissions>
        <username>username</username>
        <privateKey>/home/username/.ssh/id_rsa_of_this_setup</privateKey>
            </server>


        but in any case I'm not sure it's even reading the scm section of the pom correctly. After downloading the plugin sources, one of the few unresolved items was the Xpp3Reader which might have told me the answer. This is not up to my experience of a high bar set by working with this plugin in a subversion environment, but maybe it's an unfair comparison.

        Any attention greatly appreciated

        --Ben Clark
        {{mvn release:perform -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname}}
        works, except it won't really do what we need without a lot of manual intervention, because this command:
        {{mvn release:prepare -DconnectionUrl=scm:cvs:ext:username@cvs-server.mycompany.com:/cvsroot:projectname }}
        yields this error:
        {noformat}
        [ERROR] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] The scm url is invalid.
          - The connection string contains too few tokens.
        [INFO] ------------------------------------------------------------------------
        {noformat}

        {{-e}} doesn't reveal a long enough stack trace to show anything. It would be helpful if this error could say what url it's parsing
        the scm section of the pom is this:
        {code:xml}
        <scm>
        <connection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</connection>
        <developerConnection>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot</developerConnection>
        <url>scm:cvs:ext:cvs-server.mycompany.com:/cvsroot:projectname</url>
        </scm>
        {code}
        We don't intend to put the user name in the pom (shared resource) which is part of why I'm trying to override it.

        and the servers section of {{settings.xml}} is like so:
        {code:xml}
        <server>
        <id>cvs-server.mycompany.com</id>
        <filePermissions>664</filePermissions>
        <directoryPermissions>775</directoryPermissions>
        <username>username</username>
        <privateKey>/home/username/.ssh/id_rsa_of_this_setup</privateKey>
            </server>
        {code}

        but in any case I'm not sure it's even reading the scm section of the pom correctly. After downloading the plugin sources, one of the few unresolved items was the {{Xpp3Reader}} which might have told me the answer. This is not up to my experience of a high bar set by working with this plugin in a subversion environment, but maybe it's an unfair comparison.

        Any attention greatly appreciated

        --Ben Clark
        Ben Clark created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Ben Clark
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development