[ 
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

        

Reply via email to