maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <>
Subject [jira] (MENFORCER-78) Make display-info equivalent of maven --version
Date Tue, 04 Jun 2013 20:27:03 GMT


Robert Scholte commented on MENFORCER-78:

Another solution is: add {{-V}} (capital Victor) to the Maven command. This way the output
will start with the version info and will continue with the rest of the phases/goals
> Make display-info equivalent of maven --version
> -----------------------------------------------
>                 Key: MENFORCER-78
>                 URL:
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.0-beta-1
>         Environment: Maven 2.1.0
>            Reporter: Ha Ryon
> I would like to have as much info in enforcer:display-info as you get when you type mvn
> What I get with mvn --version :
> $ mvn --version
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_05
> Java home: c:\java\j2ses\jdk1.6.0_05\jre
> Default locale: fr_FR, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> What I get with mvn enforcer:display-info :
> [INFO] [enforcer:display-info]
> [INFO] Maven Version: 2.1.0
> [INFO] JDK Version: 1.6.0_05 normalized as: 1.6.0-5
> [INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
> I use enforcer:display-info attached to "validate" phase. I wished to have "platform
information" (especially jre, locale and encoding) inside logs of my CI builds and on developers
> I know that in theory I should never have to rely on platform encoding or platform locale,
but I can't control all projects that go throught the CI platform, and having such information
often help debug why "hey it works on my station !".
> :)

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

View raw message