[
https://jira.codehaus.org/browse/MASSEMBLY-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=345130#comment-345130
]
Kenney Westerhof commented on MASSEMBLY-696:
--------------------------------------------
Certainly, the SVN revision number is 'trunk'; it occurs since all earlier
versions since John added the code:
{quote}
1653fb20 :(John Dennis Casey 2011-02-23 22:05:06 +0000 509)
parts.addAll( Arrays.asList( value.split( sep ) ) );
{quote}
I'm working on minifying my project to get you a usecase for an integration
test. I think it's due to using {code}${java.home}/lib/tools.jar{code} as a
system dep somewhere. But the use of _any_ windows paths will trigger this bug.
However the code is simply wrong and shouldn't take a usecase to fix. Simply
run this code:
{code}
"foo".split( "\\" );
{code}
; see the Javadoc on Regular Expressions for more info ;-)
Thanks, merry easter!
> Internal Regexp Error with Windows Paths
> ----------------------------------------
>
> Key: MASSEMBLY-696
> URL: https://jira.codehaus.org/browse/MASSEMBLY-696
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.5
> Environment: Windows 7
> maven-assembly-plugin trunk@e785abb
> Reporter: Kenney Westerhof
> Attachments: MASSEMBLY-696.patch
>
>
> On windows the Assembly plugin shows this error:
> {code}
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-assembly-plugin:2.5-SNAPSHOT:single
> (default-cli) on project myproject: Execution default-cli of goal
> org.apache.maven.plugins:maven-assembly-plugin:2.5-SNAPSHOT:single failed:
> Unexpected internal error near index 1
> \
> ^
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
> ....
> Caused by: java.util.regex.PatternSyntaxException: Unexpected internal error
> near index 1
> \
> ^
> at java.util.regex.Pattern.error(Pattern.java:1924)
> at java.util.regex.Pattern.compile(Pattern.java:1671)
> at java.util.regex.Pattern.<init>(Pattern.java:1337)
> at java.util.regex.Pattern.compile(Pattern.java:1022)
> at java.lang.String.split(String.java:2313)
> at java.lang.String.split(String.java:2355)
> at
> org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils.fixRelativeRefs(AssemblyFormatUtils.java:509)
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)