maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <>
Subject [jira] Commented: (MNG-1415) quoted arguments are not being protected
Date Thu, 30 Mar 2006 14:06:46 GMT
    [ ] 

Brett Porter commented on MNG-1415:

been there, done that. It's not supported by all shells, IIRC.

Can you please file a bug with a specific thing that won't work, rather than the solution?
Likewise for the MavenCli. If you could include a patch that corrects that and passes the
integration test, I'd certainly include it - but right now I'd rather not risk making changes
to this. It appears to be working at least a little better than the last release if not perfectly
and there are no regressions AFAICT.

> quoted arguments are not being protected
> ----------------------------------------
>          Key: MNG-1415
>          URL:
>      Project: Maven 2
>         Type: Bug

>  Environment: Linux
>     Reporter: Matthew Pocock
>     Assignee: John Casey
>     Priority: Critical
>      Fix For: 2.0.3

> Arguments with whitespace protected by quotes are broken up into individual arguments
by maven. It's not happening inside the mvn script - I've echoed the generated command-line
to check that. This same exception is raised regardless of using...
> -x="y z"
> -x=\"y z\"
> -x='y z'
> "-x=y z"
> and several other combinations I can't remember.
> Here's an example failure:
> nmrp3@farnham:~/devel/fluxion/trunk/stack/sql-schema$ ~/m2_home/bin/mvn org.codehaus.mojo:maven-execute-plugin:0.1-SNAPSHOT:resources
-Dexecute.class=org.comparagrid.fluxion.sql.schema.OWLFromSchema -Dexecute.args="-baseURI=fish
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: '/home/nmrp3/.m2/plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: '/home/nmrp3/m2_home/conf/plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: org.comparagrid.fluxion:sql-schema:jar:0.1-SNAPSHOT
> [DEBUG] Skipping disabled repository central
> [DEBUG] Skipping disabled repository central
> [DEBUG] maven-execute-plugin: using locally installed snapshot
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-execute-plugin:maven-plugin:0.1-SNAPSHOT
> [DEBUG] maven-execute-plugin: using locally installed snapshot
> [INFO] ----------------------------------------------------------------------------
> [INFO] ----------------------------------------------------------------------------
> [INFO] Invalid task 'debug': you must specify a valid lifecycle phase, or a goal in the
format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.BuildFailureException: Invalid task 'debug': you must specify a valid
lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
>         at org.apache.maven.DefaultMaven.doExecute(
>         at org.apache.maven.DefaultMaven.execute(
>         at org.apache.maven.cli.MavenCli.main(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.codehaus.classworlds.Launcher.launchEnhanced(
>         at org.codehaus.classworlds.Launcher.launch(
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(
>         at org.codehaus.classworlds.Launcher.main(
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Nov 03 23:35:37 GMT 2005
> [INFO] Final Memory: 1M/3M
> [INFO] ----------------------------------------------------------------------------

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message