Specify, which Version in a common Range should be choosen (.e.g.: oldest, newest, ...). ----------------------------------------------------------------------------------------
Key: MNG-3248 URL: http://jira.codehaus.org/browse/MNG-3248 Project: Maven 2 Issue Type: New Feature Components: Dependencies Affects Versions: 2.0.7 Reporter: Christian Weber Priority: Minor I want to propose Feature according the Policy of Choosing a specific Version in a common Range. Assuming a Scenario as follows: AppA |- LibA | - LibC [1.4.0.7,1.4.0.15] |- LibB | - LibC [1.4.0.4,1.4.0.13] The common Range of the Version of LibC, that match both Requirements is [1.4.0.7,1.4.0.13]. With the standard Policy, the newest common Version is choosen, as far as i understand. So in the Scenario, LibC-1.4.0.13 is choosen. It would be also useful to be able to instruct Maven to always choose the oldest common Version, so that in the Scenario, LibC-1.4.0.7 would be choosen instead. Example: This Way it is much more suitable for testing, because i can reproduce a specific Build, no matter how many new Version were released in the Meantime. Let me explain, why i need this with Szenario 2: AppA |- LibA | - LibC [1.4.0.9,) |- LibB | - LibC [1.4.0.8,) Let's say, that i've tested my Programm AppA with LibC 1.4.0.8 2 Days ago and the Build was successfull. One Day ago a new Version of LibC was released, Version 1.5.0.0. If i now start the same Build Process, it will most problably fail. If Maven would would have always choosen the oldest common Version, the Build would have succeeded, assuming that i didn't change AppA. This would be the Scenario of Testing a specific Build and deploying it some Days later. -- 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