You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mykel Alvis (JIRA)" <ji...@codehaus.org> on 2009/04/07 22:45:16 UTC

[jira] Created: (MRELEASE-436) Spaces in scmCommitPrefix cause errors in attempting to release

Spaces in scmCommitPrefix cause errors in attempting to release
---------------------------------------------------------------

                 Key: MRELEASE-436
                 URL: http://jira.codehaus.org/browse/MRELEASE-436
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: perform, prepare
    Affects Versions: 2.0-beta-9
         Environment: Maven 2.0.9 JDK 1.5
            Reporter: Mykel Alvis


$ mvn -B -DscmCommentPrefix="CM-524 "  release:prepare
---------------------------------------------------
constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
---------------------------------------------------
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
        at java.lang.StringBuffer.setLength(StringBuffer.java:154)
{rest removed}

The space scmCommentPrefix seems to cause this, since
  mvn -B -DscmCommentPrefix="CM-524_"  release:prepare
works correctly.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-436) Spaces in scmCommitPrefix cause errors in attempting to release

Posted by "Mykel Alvis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=185386#action_185386 ] 

Mykel Alvis commented on MRELEASE-436:
--------------------------------------

That's all I have.  Sorry, but I can't seem to produce anything more meaningful than the one posted.

> Spaces in scmCommitPrefix cause errors in attempting to release
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-436
>                 URL: http://jira.codehaus.org/browse/MRELEASE-436
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 2.0-beta-9
>         Environment: Maven 2.0.9 JDK 1.5
>            Reporter: Mykel Alvis
>
> $ mvn -B -DscmCommentPrefix="CM-524 "  release:prepare
> ---------------------------------------------------
> constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
> ---------------------------------------------------
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
>         at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> {rest removed}
> The space scmCommentPrefix seems to cause this, since
>   mvn -B -DscmCommentPrefix="CM-524_"  release:prepare
> works correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-436) Spaces in scmCommitPrefix cause errors in attempting to release

Posted by "Mykel Alvis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172455#action_172455 ] 

Mykel Alvis commented on MRELEASE-436:
--------------------------------------

Heinrich thinks, and I agree to the strong possibility, that this is a dupe of MNG-2190

> Spaces in scmCommitPrefix cause errors in attempting to release
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-436
>                 URL: http://jira.codehaus.org/browse/MRELEASE-436
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 2.0-beta-9
>         Environment: Maven 2.0.9 JDK 1.5
>            Reporter: Mykel Alvis
>
> $ mvn -B -DscmCommentPrefix="CM-524 "  release:prepare
> ---------------------------------------------------
> constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
> ---------------------------------------------------
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
>         at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> {rest removed}
> The space scmCommentPrefix seems to cause this, since
>   mvn -B -DscmCommentPrefix="CM-524_"  release:prepare
> works correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-436) Spaces in scmCommitPrefix cause errors in attempting to release

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=221953#action_221953 ] 

Benson Margulies commented on MRELEASE-436:
-------------------------------------------

I don't see how this can be a dup of that. That is closed as not-reproducible. I can repro this on command with maven 2.1.0 and release 2.0 at an time, just by simply trying to embed a space in the prefix.

> Spaces in scmCommitPrefix cause errors in attempting to release
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-436
>                 URL: http://jira.codehaus.org/browse/MRELEASE-436
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 2.0-beta-9
>         Environment: Maven 2.0.9 JDK 1.5
>            Reporter: Mykel Alvis
>            Assignee: Olivier Lamy
>
> $ mvn -B -DscmCommentPrefix="CM-524 "  release:prepare
> ---------------------------------------------------
> constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
> ---------------------------------------------------
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
>         at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> {rest removed}
> The space scmCommentPrefix seems to cause this, since
>   mvn -B -DscmCommentPrefix="CM-524_"  release:prepare
> works correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-436) Spaces in scmCommitPrefix cause errors in attempting to release

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=185192#action_185192 ] 

Olivier Lamy commented on MRELEASE-436:
---------------------------------------

Can we have the full stack trace ?
The attached one doesn't help enough to understand where is the issue.
IMHO I agree it's duplicate with MNG-2190.
Simple sample :
{code}
bash-3.00$ mvn validate -Ddde="foo.ba "
---------------------------------------------------
constituent[0]: file:/local/tomcat/shared/apache-maven-2.1.0/lib/maven-2.1.0-uber.jar
---------------------------------------------------
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.StringBuffer.setLength(StringBuffer.java:238)
        at org.apache.maven.cli.CLIManager.cleanArgs(CLIManager.java:271)
        at org.apache.maven.cli.CLIManager.parse(CLIManager.java:224)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:116)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
{code}


> Spaces in scmCommitPrefix cause errors in attempting to release
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-436
>                 URL: http://jira.codehaus.org/browse/MRELEASE-436
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 2.0-beta-9
>         Environment: Maven 2.0.9 JDK 1.5
>            Reporter: Mykel Alvis
>
> $ mvn -B -DscmCommentPrefix="CM-524 "  release:prepare
> ---------------------------------------------------
> constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
> ---------------------------------------------------
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
>         at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> {rest removed}
> The space scmCommentPrefix seems to cause this, since
>   mvn -B -DscmCommentPrefix="CM-524_"  release:prepare
> works correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRELEASE-436) Spaces in scmCommitPrefix cause errors in attempting to release

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MRELEASE-436.
---------------------------------

      Assignee: Olivier Lamy
    Resolution: Duplicate

due to core issue MNG-2190

> Spaces in scmCommitPrefix cause errors in attempting to release
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-436
>                 URL: http://jira.codehaus.org/browse/MRELEASE-436
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 2.0-beta-9
>         Environment: Maven 2.0.9 JDK 1.5
>            Reporter: Mykel Alvis
>            Assignee: Olivier Lamy
>
> $ mvn -B -DscmCommentPrefix="CM-524 "  release:prepare
> ---------------------------------------------------
> constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
> ---------------------------------------------------
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
>         at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> {rest removed}
> The space scmCommentPrefix seems to cause this, since
>   mvn -B -DscmCommentPrefix="CM-524_"  release:prepare
> works correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-436) Spaces in scmCommitPrefix cause errors in attempting to release

Posted by "Shibu Gope (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=173124#action_173124 ] 

Shibu Gope commented on MRELEASE-436:
-------------------------------------

I believe it fails for other characters also.  This parameter -DscmCommentPrefix=[add:SCM-16] works for us with 2.0-beta-8 but not anymore with 2.0-beta-9

> Spaces in scmCommitPrefix cause errors in attempting to release
> ---------------------------------------------------------------
>
>                 Key: MRELEASE-436
>                 URL: http://jira.codehaus.org/browse/MRELEASE-436
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform, prepare
>    Affects Versions: 2.0-beta-9
>         Environment: Maven 2.0.9 JDK 1.5
>            Reporter: Mykel Alvis
>
> $ mvn -B -DscmCommentPrefix="CM-524 "  release:prepare
> ---------------------------------------------------
> constituent[0]: file:/opt/maven/lib/maven-2.0.9-uber.jar
> ---------------------------------------------------
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:146)
>         at java.lang.StringBuffer.setLength(StringBuffer.java:154)
> {rest removed}
> The space scmCommentPrefix seems to cause this, since
>   mvn -B -DscmCommentPrefix="CM-524_"  release:prepare
> works correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira