You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "boraldo (JIRA)" <ji...@codehaus.org> on 2011/07/30 22:40:42 UTC

[jira] Commented: (MNG-5143) Ability to make artifact to use latest version of some artifact from those that are inherited from all dependencies

    [ https://jira.codehaus.org/browse/MNG-5143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274677#comment-274677 ] 

boraldo commented on MNG-5143:
------------------------------

Also it could be great if I could set this behavior by default for all artifacts somehow.

> Ability to make artifact to use latest version of some artifact from those that are inherited from all dependencies
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-5143
>                 URL: https://jira.codehaus.org/browse/MNG-5143
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: Dependencies
>            Reporter: boraldo
>
> Suppose I have the following artifacts. I will omit groups for simplicity.
> A:1
> A:2
> A:3
> B:1 depends on A:1
> B:2 depends on A:3
> C:1 depends on A:2
> D:1 depends on B:1, C:1
> D:2 depends on B:2, C:1
> I want D to use the latest version of A that is inherited from it's dependencies (not from repository).
> For D:1 it is A:2, for D:2 it is A:3.
> I want all this to be done automatically. The only thing I want to define is to use such behavior for A in D.
> There is an example dependencies list in D's pom that I want to have:
> <dependency>
>   <artifact>A</artifact>
>   <version>LATEST_FROM_DEPENDENCIES</version>
> </dependency>
> <dependency>
>   <artifact>B</artifact>
>   <version>1</version>
> </dependency>
> <dependency>
>   <artifact>C</artifact>
>   <version>1</version>
> </dependency>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira