Hi,

Thanks!

I corrected typo and changed to the same type and now it works!

Have a greate weekend!

cheers,

//mikael 

-----Original Message-----
From: Jörg Schaible [mailto:[EMAIL PROTECTED] 
Sent: den 27 juni 2008 11:56
To: Maven Users List
Subject: RE: dependencyManagement and dependecies

Mikael Petterson wrote:
> Hi,
> 
> I am testing dependecy interitance.
> 
> I our master pom.xml we have defined:
> 
> <properties>
>               <app.version>0.0.0.1</wong.version>
> <properties>
> 
> <dependencyManagement>
>               <dependencies>
> 
>                       <dependency>
>                               <groupId>com.mycompany.app</groupId>
>                               <artifactId>admin</artifactId>
>                               <version>${app.version}</version>
>                       </dependency>
>               </dependencies>
> </dependencyManagement>
> 
> 
> In the child pom.xml we have the following reference:
> 
> <dependencies>
> 
>               <dependency>
>                       <groupId>com.mycompany.app</groupId>
>                       <artifactId>admin</artifactId>
>                       <!--  <version>${app.version}</version>-->
>                       <type>ejb-client</type>
>               </dependency>
> 
> </dependencies>
> 
> I get the following error when trying to build using the master 
> pom.xml
> 
> Validation Messages:
> 
>     [0]  'dependencies.dependency.version' is missing for 
> com.mycompany.app:admin
> 
> But according to documentation ( below) there is no need for
> 
> According to the documentation Maven: The Definitive Guide p. 149 --> 
> This is the way to do it unless I have not missunderstood the concepts 
> :-) Any hints on what is going wrong?

The entry inthe dependency management defines a verison for the ejb, but not 
for the ejb client. Those are two different artifacts.

- Jörg

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


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

Reply via email to