[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:display-info (default-cli) @ <foo> 
---
[INFO] Maven Version: 3.0-beta-2
[INFO] JDK Version: 1.5.0_18 normalized as: 1.5.0-18
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.2
[INFO] ------------------------------------------------------------------------

-----Original Message-----
From: Jesse Farinacci [mailto:[email protected]]
Sent: Wednesday, August 18, 2010 8:00 PM
To: Maven Users List
Subject: Re: maven 3 and the enforcer plugin

Greetings,

On Wed, Aug 18, 2010 at 7:46 PM, Brett Randall <[email protected]> wrote:
> I don't know this plugin/rule well, but looking at your output, could
> it relate to the underscore versus hyphen in the detected versus
> normalized JDK version string?  Maybe try a hyphen in your version
> rule.
>

Try adding an execution of enforcer:display-info to see the normalized
version of the JDK which you should feed to the enforcement rule.
Here's an example from my system:

[INFO] --- maven-enforcer-plugin:1.0-beta-1:display-info
(display-info) @ isvt ---
[INFO] Maven Version: 3.0-beta-2
[INFO] JDK Version: 1.6.0_21 normalized as: 1.6.0-21
[INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.18

-Jesse

--
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


CONFIDENTIALITY NOTICE:  This e-mail and the information transmitted within 
including any attachments is only for the recipient(s) to which it is intended 
and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of; or taking of any action in 
reliance upon this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please send the e-mail 
back by replying to the sender and permanently delete the entire message and 
its attachments from all computers and network systems involved in its receipt.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to