[
http://jira.codehaus.org/browse/MVERSIONS-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Will May updated MVERSIONS-144:
-------------------------------
Attachment:
Allow_certain_artifact_versions_to_be_excluded_from_consideration_with_test.patch
Found the JMock library which is also used by parts of the Surefire plugin.
Whilst it isn't as nice as Mockito, it does the job.
Attached is a version of the patch with a unit test.
> Allow excluding certain versions of artifacts
> ---------------------------------------------
>
> Key: MVERSIONS-144
> URL: http://jira.codehaus.org/browse/MVERSIONS-144
> Project: Maven 2.x Versions Plugin
> Issue Type: New Feature
> Reporter: Will May
> Priority: Minor
> Attachments:
> Allow_certain_artifact_versions_to_be_excluded_from_consideration.patch,
> Allow_certain_artifact_versions_to_be_excluded_from_consideration_with_test.patch
>
>
> As some popular projects have released versions with invalid version numbers
> such as asm (version number 20041228.180559), it would be useful to be able
> to ignore certain versions when checking for updates. This functionality
> could also be used to exclude a version which has a known vulnerability.
> This patch doesn't include any unit tests for the new functionality as it's
> only a quick go. I've tested it locally and it correctly ignored the various
> commons-configuration and asm invalid versions. To add a unit test, it would
> be easier to use something such as Mockito but that is Java 5+ only. Are
> there any plans to upgrade to Java 5? Or are there any Java 1.4 mocking
> frameworks?
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email