[ 
http://jira.codehaus.org/browse/MNG-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163525#action_163525
 ] 

Joerg Schaible commented on MNG-1957:
-------------------------------------

Guys, please take into account that you probably do not get what you try to 
reach.  Especially Edwin's use case will not work. By declaring different 
dependencies in profiles that are automatically activated based on the used JDK 
you all implicitly assume that this is also the target JDK. This assumption is 
false! Have a look at the error reports in MNG-3957 caused by such profiles in 
spring-core-ws and XStream. Both POMs declare different deps depending on the 
JDK. If a client now declares a different target JDK than the one he uses to 
run Maven, he gets the wrong transitive dependencies.

> <jdk></jdk> clause in the activation section has to provide more complex 
> expressions.
> -------------------------------------------------------------------------------------
>
>                 Key: MNG-1957
>                 URL: http://jira.codehaus.org/browse/MNG-1957
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: POM
>    Affects Versions: 2.0, 2.0.1
>            Reporter: Trustin Lee
>             Fix For: 2.0.11, 2.1.0-M2
>
>         Attachments: MNG-1957-maven-project.patch
>
>
> 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+ -->

-- 
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

        

Reply via email to