carlspring / carlspring/relocation-maven-plugin
StringIndexOutOfBoundsException on win OS
- Dominant language
- Java
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I've got the following exception when trying your plugin on a win7 OS.
The problem is related to the replaceAll statement.
When using a win7 OS, field séparator is "\" and \ is an escaping.
Regards
Aldric
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:686)
at java.util.regex.Matcher.appendReplacement(Matcher.java:703)
at java.util.regex.Matcher.replaceAll(Matcher.java:813)
at java.lang.String.replaceAll(String.java:2189)
at org.carlspring.maven.relocation.AbstractRelocationMojo.getOriginalArtifactBasedir(AbstractRelocationMojo.java:132)
at org.carlspring.maven.relocation.RelocateSingleMojo.relocate(RelocateSingleMojo.java:47)
... 22 more
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.