[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-09-08 Thread Petr Kolesa (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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
artifactIdmaven-compiler-plugin/artifactId
configuration
forktrue/fork
executable${JAVA6_HOME}/bin/javac/executable
compilerVersion1.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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-08-09 Thread JIRA

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=231435#action_231435
 ] 

Conny Kreyßel commented on MRELEASE-523:


Any news on this issue?

We must rollback our internal company parent to 2.0-beta9 ...

 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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-04-21 Thread Rustam Abdullaev (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=218431#action_218431
 ] 

Rustam Abdullaev commented on MRELEASE-523:
---

yes, updating Cygwin solves the issue for me. Not sure about the other comment 
about an issue with CMD; CMD always worked fine for us on an XP. But yes, the 
real fix I guess would be to make StringUtils.getCommonPrefix() 
case-insensitive on case-insensitive systems.

 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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-04-20 Thread Steve Ulrich (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=218318#action_218318
 ] 

Steve Ulrich commented on MRELEASE-523:
---

Updating cygwin from 1.5.* to 1.7.* fixed the problem for me.

 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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-03-24 Thread Jeff Jensen (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=215240#action_215240
 ] 

Jeff Jensen commented on MRELEASE-523:
--

Me too.  Trying to release multi-module (parent with 2 modules and all 3 in 
sibling dirs)  w/ 2.0 on Win 7 using cmd.

 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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-03-22 Thread JIRA

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=214773#action_214773
 ] 

Ulrich Hofstötter commented on MRELEASE-523:


I use cmd

 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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-03-19 Thread Rustam Abdullaev (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=214468#action_214468
 ] 

Rustam Abdullaev commented on MRELEASE-523:
---

What shell do you use?
CMD forces the drive letter to uppercase so this issue should not appear.

|| Shell || working directory || result
| Cygwin bash | {{d:\workspace}} | no worky (see attached error).
| Windows CMD | {{D:\workspace}} | works fine.


 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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-03-02 Thread Frode Johnsen (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=212121#action_212121
 ] 

Frode Johnsen commented on MRELEASE-523:


Anyone working on this ? I also have the exact problem with this plugin.

 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




[jira] Commented: (MRELEASE-523) ReleaseUtil throws java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2010-02-16 Thread JIRA

[ 
http://jira.codehaus.org/browse/MRELEASE-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=210292#action_210292
 ] 

Ulrich Hofstötter commented on MRELEASE-523:


PS: i use jdk 1.6.0_17

 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