Details
Description
For now, <jdk></jdk> provides only one operator '!' which means negation, but it would be great if i can use '+' and ~ operator:
<jdk>1.5+</jdk> <!-- this will be activated when the current JDK version is 1.5 or above (e.g. 1.6) -->
<jdk>1.1 ~ 1.4</jdk> <!-- this will be activated when the current JDK version is between 1.1 and 1.4 -->
<jdk>~ 1.3</jdk> <!-- this will be activated when the current JDK version is 1.3 or below -->
<jdk>1.4 ~</jdk. <!-- the same with 1.5+ -->
Attachments
Issue Links
| This issue relates to: | ||||
| MNG-4512 | [regression] Profile activation based on JDK version range fails if current version is close to range boundary |
|
|
|
| MNG-4517 | Support Maven 2.0.x style jdk activation in Maven 2.2.x |
|
|
|
| This issue is related to: | ||||
| MNG-3957 | [regression] For artifact {stax:stax-api:null:jar}: The version cannot be empty. |
|
|
|
| MNG-1910 | Allow jdk 1.4+ as profile requirement |
|
|
|
I like this and am voting for it. This is useful for instances like javax.management being already available in JDK 1.5 so you'll want to put the dependency for it and its implementation when the JDK is "~ 1.5".