Make display-info equivalent of maven --version
-----------------------------------------------
Key: MENFORCER-78
URL: http://jira.codehaus.org/browse/MENFORCER-78
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 --version.
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 computers.
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 contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira