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?

We are using maven 2.0.8

cheers,

//mike          

Reply via email to