You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Hao Chen (JIRA)" <ji...@codehaus.org> on 2005/09/23 21:01:11 UTC

[jira] Created: (MNG-1011) doesn't work

<defaultGoal> doesn't work
--------------------------

         Key: MNG-1011
         URL: http://jira.codehaus.org/browse/MNG-1011
     Project: Maven 2
        Type: Bug
    Versions: 2.0-beta-1    
 Reporter: Hao Chen


added the following to pom.xml:

  <build>
    <defaultGoal>install</defaultGoal>
  </build>

On command line, type: m2

Error: 
You must specify at least one goal. Try 'install'

usage: maven [options] [goal [goal2 [goal3] ...]]

...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1011) doesn't work

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1011?page=comments#action_47231 ] 

Brett Porter commented on MNG-1011:
-----------------------------------

you can have it if you want it :)

so agreed:
- YES to inheritence
- default goal at root is run across all (to allow for agg, etc), the individual default goals are NOT used for each project.

> <defaultGoal> doesn't work
> --------------------------
>
>          Key: MNG-1011
>          URL: http://jira.codehaus.org/browse/MNG-1011
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Hao Chen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-3

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> added the following to pom.xml:
>   <build>
>     <defaultGoal>install</defaultGoal>
>   </build>
> On command line, type: m2
> Error: 
> You must specify at least one goal. Try 'install'
> usage: maven [options] [goal [goal2 [goal3] ...]]
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1011) doesn't work

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1011?page=all ]
     
Brett Porter closed MNG-1011:
-----------------------------

    Resolution: Fixed

> <defaultGoal> doesn't work
> --------------------------
>
>          Key: MNG-1011
>          URL: http://jira.codehaus.org/browse/MNG-1011
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Hao Chen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-3

>
> Original Estimate: 30 minutes
>        Time Spent: 30 minutes
>         Remaining: 0 minutes
>
> added the following to pom.xml:
>   <build>
>     <defaultGoal>install</defaultGoal>
>   </build>
> On command line, type: m2
> Error: 
> You must specify at least one goal. Try 'install'
> usage: maven [options] [goal [goal2 [goal3] ...]]
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1011) doesn't work

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1011?page=all ]

Brett Porter updated MNG-1011:
------------------------------

             Assign To: Brett Porter
           Fix Version: 2.0-beta-2
    Remaining Estimate: 30 minutes
     Original Estimate: 1800

> <defaultGoal> doesn't work
> --------------------------
>
>          Key: MNG-1011
>          URL: http://jira.codehaus.org/browse/MNG-1011
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Hao Chen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-2

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> added the following to pom.xml:
>   <build>
>     <defaultGoal>install</defaultGoal>
>   </build>
> On command line, type: m2
> Error: 
> You must specify at least one goal. Try 'install'
> usage: maven [options] [goal [goal2 [goal3] ...]]
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1011) doesn't work

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1011?page=all ]

Brett Porter updated MNG-1011:
------------------------------

    Fix Version:     (was: 2.0-beta-2)
                 2.0-beta-3

I haven't rushed into this one. I'd like to consider:
- should the individual defaults of each project be run, or should the default at the root be applied to all?
- should the default be inherited?

> <defaultGoal> doesn't work
> --------------------------
>
>          Key: MNG-1011
>          URL: http://jira.codehaus.org/browse/MNG-1011
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Hao Chen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-3

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> added the following to pom.xml:
>   <build>
>     <defaultGoal>install</defaultGoal>
>   </build>
> On command line, type: m2
> Error: 
> You must specify at least one goal. Try 'install'
> usage: maven [options] [goal [goal2 [goal3] ...]]
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1011) doesn't work

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1011?page=comments#action_47194 ] 

John Casey commented on MNG-1011:
---------------------------------

- what if the default of one of the projects in the reactor is an aggregator? Should it only get the projects "under" this one, or the whole set that's currently in the reactor?

- I think I agree WRT inheritance.

> <defaultGoal> doesn't work
> --------------------------
>
>          Key: MNG-1011
>          URL: http://jira.codehaus.org/browse/MNG-1011
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Hao Chen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-3

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> added the following to pom.xml:
>   <build>
>     <defaultGoal>install</defaultGoal>
>   </build>
> On command line, type: m2
> Error: 
> You must specify at least one goal. Try 'install'
> usage: maven [options] [goal [goal2 [goal3] ...]]
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1011) doesn't work

Posted by "Hao Chen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1011?page=comments#action_47071 ] 

Hao Chen commented on MNG-1011:
-------------------------------

my opinion:
- To be consistent with goals explicitly run, it should run the goal for all modules by default.  There could be a property called "recursive" to control whether goals are applied recursively.
- Yes, the default should be inherited. If the child needs a different default, it can override (same amount of work as if there is no inheritance). But if the children need the same default goal as the parent, we don't need to specify for each child.

> <defaultGoal> doesn't work
> --------------------------
>
>          Key: MNG-1011
>          URL: http://jira.codehaus.org/browse/MNG-1011
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Hao Chen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-3

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> added the following to pom.xml:
>   <build>
>     <defaultGoal>install</defaultGoal>
>   </build>
> On command line, type: m2
> Error: 
> You must specify at least one goal. Try 'install'
> usage: maven [options] [goal [goal2 [goal3] ...]]
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-1011) doesn't work

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1011?page=all ]

Brett Porter updated MNG-1011:
------------------------------

    Fix Version:     (was: 2.0-beta-4)
                 2.0-beta-3

> <defaultGoal> doesn't work
> --------------------------
>
>          Key: MNG-1011
>          URL: http://jira.codehaus.org/browse/MNG-1011
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-beta-1
>     Reporter: Hao Chen
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-3

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> added the following to pom.xml:
>   <build>
>     <defaultGoal>install</defaultGoal>
>   </build>
> On command line, type: m2
> Error: 
> You must specify at least one goal. Try 'install'
> usage: maven [options] [goal [goal2 [goal3] ...]]
> ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org