You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dominic Mitchell (JIRA)" <ji...@codehaus.org> on 2008/11/24 16:11:19 UTC
[jira] Commented: (MNG-3529) mvn -Da=" " throws an excepltion
[ http://jira.codehaus.org/browse/MNG-3529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=155241#action_155241 ]
Dominic Mitchell commented on MNG-3529:
---------------------------------------
I've just seen this as well:
{noformat}
% mvn release:prepare -DscmCommentPrefix='FOO-139 '
---------------------------------------------------
constituent[0]: file:/usr/local/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar
---------------------------------------------------
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.setLength(AbstractStringBuilder.java:143)
at java.lang.StringBuffer.setLength(StringBuffer.java:153)
at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java:824)
at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:777)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:103)
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:597)
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)
{noformat}
It's quite useful to have a trailing space in the scmCommentPrefix, as otherwise it gets joined up with the automatically generated commit message and looks rather ugly.
> mvn -Da=" " throws an excepltion
> --------------------------------
>
> Key: MNG-3529
> URL: http://jira.codehaus.org/browse/MNG-3529
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.0.8
> Reporter: Sean Bridges
> Priority: Trivial
> Fix For: 2.0.x
>
>
> Doing,
> mvn -Da=" "
> throws,
> ---------------------------------------------------
> 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)
> at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java:793)
> at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:746)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:100)
> 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:585)
> 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)
--
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