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]

Reply via email to