Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3529

mvn -Da=" " throws an excepltion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.8
    • 3.0-beta-1
    • Command Line
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              sgbridges Sean Bridges
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: