java.lang.StringIndexOutOfBoundsException:字符串索引超出范围错误

时间:2015-06-03 04:45:48

标签: java apache maven

我遇到了java.lang.StringIndexOutOfBoundsException: String index out of range错误。

  

〜/ apache-maven-3.3.3 / bin] $ mvn -version

     

/home//jdk1.7.0_75//bin/java -Xdebug -classpath   /home//apache-maven-3.3.3/boot/plexus-classworlds-2.5.2.jar   -Dclassworlds.conf = / home // apache-maven-3.3.3 / bin / m2.conf -Dmaven.home = / home // apache-maven-3.3.3 -Dmaven.multiModuleProjectDirectory = / home // apache-maven -3.3.3 / bin org.codehaus.plexus.classworlds.launcher.Launcher -version

     

java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1           at java.lang.String.substring(String.java:1911)           在org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:343)           在org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:246)           在org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:133)           在org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:131)           在org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)           在org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

我目前的设置:

Maven 3.3.3

Redhat 5.6

尝试过安装:

JDK 1.7和1.8

我甚至尝试过切换Java版本,但这没有帮助。

0 个答案:

没有答案