Not as far as I know.  What dependencyManagement allows if you to
specify in a parent pom the dependencyManagement section like you
wrote.

Then in a child that specifies that POM as it's parent, you can create
the followin dependency:

<dependencies>
  <dependency>
    <groupId>commons-beanutils</groupId>
    <artifactId>commons-beanutils</artifactId>
 </dependency>
</dependencies>

Then the version wil be set to what is specified in
dependencyManagement (scope would also be set to what the parent
specifies).

-Stephen

On 1/6/06, Christian Schulte <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a question regarding the <dependencyManagement> section in the
> pom.xml files. When I have several dependencies and there are conflicts
> in the transitive dependencies (e.g. commons-beanutils-1.6.1 and
> commons-beanutils-1.7.0) I thought I could specifiy the version to use
> in the <dependencyManagement> section. Is that correct ? Say I put
>
> <dependencyManagement>
>    <dependency>
>      <groupId>commons-beanutils</groupId>
>      <artifactId>commons-beanutils</artifactId>
>      <version>1.7.0</version>
>    </dependency>
> </dependencyManagement>
>
> in my pom. This does not lead to maven using only that version no matter
> what version is specified in the referenced poms ?
>
> --
> Christian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to