[ http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234578#action_234578 ]
Petr Kolesa commented on MRELEASE-523: -------------------------------------- Same problem in cmd Win XP. We have a multinode project that is built with sun javac ver 1.5.0_14, however one sub project is built with javac 1.6.0_20. There is a corresponding release-plugin configuration in that sub project pom: <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <fork>true</fork> <executable>${JAVA6_HOME}/bin/javac</executable> <compilerVersion>1.6</compilerVersion> </configuration> </plugin> JAVA6_HOME is an environment variable with value something like 'c:\dev\tools\java6\'. If a drive letter is in lower case, release plugin DOES NOT throw above-mentioned OoBE exception. However if a drive letter is in upper case ('C:\dev\tools\java6\'), release:prepare fails. Hope this will help someone > ReleaseUtil throws "java.lang.StringIndexOutOfBoundsException: String index > out of range: -1" > --------------------------------------------------------------------------------------------- > > Key: MRELEASE-523 > URL: http://jira.codehaus.org/browse/MRELEASE-523 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Components: prepare > Affects Versions: 2.0 > Environment: Windows XP, Maven 2.2.1 > Reporter: Ulrich Hofstötter > Attachments: log.txt > > > Hello, > i have an issue using the maven release plugin 2.0, previous versions did not > have this issue. > In a multimodule project, release:prepare exits with the attached stack trace. > After a litte debugging, i found out that in ReleaseUtil, line 188 > String dir = FileUtils.normalize( p.getBasedir().getPath().replace( '\\', '/' > ) ); > returns "c:\..." for the parent module, but "C:\..." for the first submodule. > So in line 202 > basedir = StringUtils.getCommonPrefix( new String[]{dir, basedir} ); > results in an empty String, which leads to the exception in line 206. > I will try to compose a simple example as soon as possible. -- 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