You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sherali Karimov (JIRA)" <ji...@codehaus.org> on 2008/04/19 16:05:55 UTC

[jira] Created: (MNG-3534) -q and -o used together cause a build failure

-q and -o used together cause a build failure
---------------------------------------------

                 Key: MNG-3534
                 URL: http://jira.codehaus.org/browse/MNG-3534
             Project: Maven 2
          Issue Type: Bug
          Components: Command Line
    Affects Versions: 2.0.9
            Reporter: Sherali Karimov
            Priority: Minor


These work just fine:
{code}mvn -o clean install{code}
{code}mvn -q clean install{code}

This one:
{code}mvn -qo clean install{code}
produces:
{code}[ERROR] BUILD FAILURE{code}

I tried it on a several projects with the same result.

-- 
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: (MNG-3534) -q and -o used together cause a build failure

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131402#action_131402 ] 

Benjamin Bentmann commented on MNG-3534:
----------------------------------------

I'm not sure whether the command line is supposed to recognize "-qo" as two arguments. In the meantime, you could use
{noformat}
mvn -q -o ...
{noformat}
i.e. specify each flag separately.

> -q and -o used together cause a build failure
> ---------------------------------------------
>
>                 Key: MNG-3534
>                 URL: http://jira.codehaus.org/browse/MNG-3534
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>            Reporter: Sherali Karimov
>            Priority: Minor
>
> These work just fine:
> {code}mvn -o clean install{code}
> {code}mvn -q clean install{code}
> This one:
> {code}mvn -qo clean install{code}
> produces:
> {code}[ERROR] BUILD FAILURE{code}
> I tried it on a several projects with the same result.

-- 
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] Closed: (MNG-3534) -q and -o used together cause a build failure

Posted by "Sherali Karimov (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sherali Karimov closed MNG-3534.
--------------------------------

    Resolution: Won't Fix

more info..

when I call
{code}mvn -oq clean install{code}

I get this result:
{code}
[INFO] 
NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'q': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sun Apr 20 00:10:43 EST 2008
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------
{code}


However, I just realised that this works:
{code}mvn -o -q clean install{code}

I can't reproduce this anymore, but I thought I saw -qo work in 2.0.8

> -q and -o used together cause a build failure
> ---------------------------------------------
>
>                 Key: MNG-3534
>                 URL: http://jira.codehaus.org/browse/MNG-3534
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>            Reporter: Sherali Karimov
>            Priority: Minor
>
> These work just fine:
> {code}mvn -o clean install{code}
> {code}mvn -q clean install{code}
> This one:
> {code}mvn -qo clean install{code}
> produces:
> {code}[ERROR] BUILD FAILURE{code}
> I tried it on a several projects with the same result.

-- 
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: (MNG-3534) -q and -o used together cause a build failure

Posted by "Sherali Karimov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131405#action_131405 ] 

Sherali Karimov commented on MNG-3534:
--------------------------------------

thanks, Benjamin, that's what I did. 
The reason for the issue is I was convinced that I saw this work before.

> -q and -o used together cause a build failure
> ---------------------------------------------
>
>                 Key: MNG-3534
>                 URL: http://jira.codehaus.org/browse/MNG-3534
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>            Reporter: Sherali Karimov
>            Priority: Minor
>
> These work just fine:
> {code}mvn -o clean install{code}
> {code}mvn -q clean install{code}
> This one:
> {code}mvn -qo clean install{code}
> produces:
> {code}[ERROR] BUILD FAILURE{code}
> I tried it on a several projects with the same result.

-- 
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