Maven
  1. Maven
  2. MNG-4971

Display maven home in version info

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: Logging
    • Labels:
      None
    • Complexity:
      Intermediate
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      Display maven.home information when user run "mvn -version".

      Similar motivation as MNG-4944. User may have same version of maven for different project such as company/open source. Same as java.home, user may need go into maven.home to do some verification.

      The patch moved java.home one line up to group together with maven.home.

      With patch "mvn -version" will show:
      Apache Maven 3.0.1 (r1038046; 2010-11-23 10:58:32+0000)
      Maven home: /software/maven/3.0.1
      Java home: /usr/lib/jvm/java-6-openjdk/jre
      Java version: 1.6.0_20, vendor: Sun Microsystems Inc.
      Default locale: en_IE, platform encoding: UTF-8
      OS name: "linux", version: "2.6.32-25-generic", arch: "i386", family: "unix"

      Without patch "mvn -version" will show:
      Apache Maven 3.0.1 (r1038046; 2010-11-23 10:58:32+0000)
      Java version: 1.6.0_20, vendor: Sun Microsystems Inc.
      Java home: /usr/lib/jvm/java-6-openjdk/jre
      Default locale: en_IE, platform encoding: UTF-8
      OS name: "linux", version: "2.6.32-25-generic", arch: "i386", family: "unix"

        Activity

        Hide
        Benjamin Bentmann added a comment -

        Applied in r1059267 but opted to keep the order version, home, version, home.

        Show
        Benjamin Bentmann added a comment - Applied in r1059267 but opted to keep the order version, home, version, home.
        Hide
        Guo Du added a comment -

        Agree better to keep the order.

        Thanks very much!

        Show
        Guo Du added a comment - Agree better to keep the order. Thanks very much!

          People

          • Assignee:
            Benjamin Bentmann
            Reporter:
            Guo Du
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: