Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2166

Provide the help listing as default when no arguments are provided

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1, 2.0.2
    • Fix Version/s: 2.0.8
    • Component/s: Command Line
    • Labels:
      None
    • Environment:
      Any

      Description

      When just writing "mvn" with no arguments on the command line I get a message such as this:
      >mvn
      [INFO] Scanning for projects...
      [INFO] ----------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ----------------------------------------------------------------------------
      [INFO] You must specify at least one goal. Try 'install'
      [INFO] ----------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ----------------------------------------------------------------------------
      [INFO] Total time: < 1 second
      [INFO] Finished at: Wed Mar 22 09:15:04 CET 2006
      [INFO] Final Memory: 1M/2M
      [INFO] ----------------------------------------------------------------------------

      Many new users to maven or any other such tools are used to getting at least some basic info of what is expected. How about just displaying the listing that shows up when a user writes "mvn -h" as default when no arguments are privided? This is also a feature that most other similar products have. I also would suggest printing a URL for where they can get basic information for how to use maven.

        Attachments

        1. no-goal-help.patch
          2 kB
          Benjamin Bentmann

          Issue Links

            Activity

              People

              • Assignee:
                brianf Brian Fox
                Reporter:
                ranvik Andre Ranvik
              • Votes:
                5 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: