[
https://jira.codehaus.org/browse/MCASSANDRA-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295873#comment-295873
]
Andrew Swan commented on MCASSANDRA-15:
---------------------------------------
This bug doesn't just affect Windows users; we have a Hudson server running a
CI build upon each commit. If we have any spaces in the Hudson job name, for
example "Stealth Project JVM Core - Post-Commit", we get the same error. FYI,
here's the stack trace:
{code}[ERROR] Failed to execute goal
org.codehaus.mojo:cassandra-maven-plugin:1.0.0-1:start (default) on project
com.example: Illegal character in path at index 39:
file:/opt/hudson/workspace/jobs/Stealth Project JVM Core -
Post-Commit/workspace/com.example/target/cassandra/conf/log4j-server.properties
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.codehaus.mojo:cassandra-maven-plugin:1.0.0-1:start (default) on project
com.example: Illegal character in path at index 39:
file:/opt/hudson/workspace/jobs/Stealth Project JVM Core -
Post-Commit/workspace/com.example/target/cassandra/conf/log4j-server.properties
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Illegal character in
path at index 39: file:/opt/hudson/workspace/jobs/Stealth Project JVM Core -
Post-Commit/workspace/com.example/target/cassandra/conf/log4j-server.properties
at
org.codehaus.mojo.cassandra.StartCassandraMojo.execute(StartCassandraMojo.java:116)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.io.IOException: Illegal character in path at index 39:
file:/opt/hudson/workspace/jobs/Stealth Project JVM Core -
Post-Commit/workspace/com.example/target/cassandra/conf/log4j-server.properties
at
org.codehaus.mojo.cassandra.AbstractCassandraMojo.newServiceCommandLine(AbstractCassandraMojo.java:595)
at
org.codehaus.mojo.cassandra.AbstractCassandraMojo.newServiceCommandLine(AbstractCassandraMojo.java:566)
at
org.codehaus.mojo.cassandra.StartCassandraMojo.execute(StartCassandraMojo.java:82)
... 21 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 39:
file:/opt/hudson/workspace/jobs/Stealth Project JVM Core -
Post-Commit/workspace/com.example/target/cassandra/conf/log4j-server.properties
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URL.toURI(URL.java:918)
at
org.codehaus.mojo.cassandra.AbstractCassandraMojo.newServiceCommandLine(AbstractCassandraMojo.java:590)
... 23 more
{code}
I'll check out the source of this plugin to see if I can contribute a patch.
> Whitespace in path breaks execution
> -----------------------------------
>
> Key: MCASSANDRA-15
> URL: https://jira.codehaus.org/browse/MCASSANDRA-15
> Project: Mojo's Cassandra Maven Plugin
> Issue Type: Bug
> Affects Versions: 1.0.0-1
> Environment: Windows XP
> Reporter: Mikhail Mazursky
> Assignee: Stephen Connolly
> Priority: Minor
>
> Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:1.0.0-1:start
> (default) on project cassandra-integration-test: Illegal character in path at
> index 18: file:/C:/Documents and
> Settings/user/workspace/cassandra-integration-test/target/cassandra/conf/log4j-server.properties
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email