Nope, not possible the way you describe it.

However, you can control the version of all dependencies (incl. transitive)
through the use of dependencyManagement in the B hierarchy.
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

/Anders

On Mon, Jun 14, 2010 at 21:51, Michael O'Cleirigh <
michael.ocleir...@rivulet.ca> wrote:

> Hello,
>
> The case I am looking at is that I have two maven artifact hierarchies that
> are independent.
>
> Hierarchy A artifacts are core code that is shared between a bunch of
> different projects.
>
> Hierarchy B artifacts are for a single project and in some cases depend on
> artifacts from A.
>
> Now the A artifacts pull in the dependencies and define property values to
> represent the version of the artifact.
>
> The B projects don't care about the version but we need to make sure that
> the versions used in B match the versions used in A.
>
> In the A hierarchy I can define the ${something.version} and then in A
> modules it will be able to resolve it.
>
> My question is if there is a way to get the ${something.version} property
> from the A artifact from within the B hierarchy.
>
> Right now I have to create a matching ${something.version} in the B pom and
> manually keep them matched on the same version.  But I think there must be a
> command or module that will allow this kind of inter artifact property
> resolution.
>
> A concrete example would be that A sets a ${spring.version} and in B we
> want to include a different spring artifact but have the version be aligned
> with what is being included with the A artifacts.
>
> Thanks,
>
> Mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to