You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2013/09/11 15:25:23 UTC

alias for dependencies

Hi guys,

i don't think we can but it would be great to be able to alias
dependencies. For instance:

in a dependencyManagement i could define:

<dependency>
 <artifactId>...</>
 <groupId>...</>
 <version>...</>
 <alias>foo</alias>
</dependency>

then later in children poms use:

<dependency> <!--  an attribute would be better here -->
    <alias>foo</alias>
</dependency>

It would allow:
1) to get smaller dependencies (less verbosity)
2) (this one is much more important) dynamic dependencies

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*