Attached is a patch which allows a user to exclude versions based on patterns in the rules.xml file; both global and per rule.
I've added Mockito to make it easier to write a unit test and I've updated the version of JUnit.

Example rules file
{{
<ruleset>
<ignore>.(?i)alpha.</ignore>
<ignore>.beta.</ignore>
<ignore>.rc.</ignore>
<rules>
<rule groupId="asm" artifactId="asm">
<ignore>20041228.180559</ignore>
</rule>
</rules>
</ruleset>
}}

Before:
{{
[INFO] The following dependencies in Dependency Management are using the newest version:
[INFO] commons-dbcp:commons-dbcp ........................................ 1.4
[INFO] commons-httpclient:commons-httpclient ............................ 3.1
[INFO] commons-lang:commons-lang ........................................ 2.6
[INFO]
[INFO] The following dependencies in Dependency Management have newer versions:
[INFO] asm:asm ....................................... 3.2 -> 20041228.180559
[INFO] com.google.guava:guava ............................... r09 -> 13.0-rc1
[INFO] javax.servlet:jsp-api ........................ 2.0 -> 2.0.public_draft
[INFO] javax.servlet:servlet-api ......................... 2.5 -> 3.0-alpha-1
[INFO] javax.validation:validation-api ............. 1.0.0.GA -> 1.1.0.Alpha1
[INFO] org.apache.ibatis:ibatis-sqlmap ............. 2.3.4.726 -> 3.0-beta-10
[INFO] org.mockito:mockito-all ........................... 1.8.5 -> 1.9.5-rc1
[INFO] org.samba.jcifs:jcifs ..................... 1.2.19 -> 1.3.14-kohsuke-1
}}
After:
{{
[INFO] The following dependencies in Dependency Management are using the newest version:
[INFO] commons-dbcp:commons-dbcp ........................................ 1.4
[INFO] commons-httpclient:commons-httpclient ............................ 3.1
[INFO] commons-lang:commons-lang ........................................ 2.6
[INFO] javax.servlet:servlet-api ........................................ 2.5
[INFO] javax.validation:validation-api ............................. 1.0.0.GA
[INFO] org.apache.ibatis:ibatis-sqlmap ............................ 2.3.4.726
[INFO] org.apache.xmlbeans:xmlbeans ................................... 2.4.0
[INFO]
[INFO] The following dependencies in Dependency Management have newer versions:
[INFO] asm:asm ................................................. 3.2 -> 3.3.1
[INFO] com.google.guava:guava ................................. r09 -> 12.0.1
[INFO] javax.servlet:jsp-api ........................ 2.0 -> 2.0.public_draft
[INFO] org.apache.httpcomponents:httpclient .................... 4.0 -> 4.2.1
[INFO] org.mockito:mockito-all ............................... 1.8.5 -> 1.9.0
[INFO] org.samba.jcifs:jcifs ..................... 1.2.19 -> 1.3.14-kohsuke-1
}}

Change By: Will May (19/Jul/12 4:05 PM)
Attachment: mversions-144.patch
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: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to