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