Hi,

I use Maven 2 and i have a root pom.xml with modules (ear, war, it)

I want to manage only one version per project, i.e the version module must
be the version of the project (the version declared in the root pom.xml)

I my pom.xml, i have
        <name>myproj-globals</name>
        <groupId>myproj</groupId>
        <version>1.0-SNAPSHOT</version>

and 
        <modules>
                <module>myproj_war</module>
                <module>myproj_ear</module>
                <module>myproj_it</module>
        </modules>

        <dependencyManagement> 
                <dependencies> 

                        <dependency> 
                                <groupId>myproj</groupId>
                                <artifactId>myproj_war</artifactId> 
                                <version>${project.version}</version> 
                                <type>war</type>
                        </dependency> 

                        <dependency> 
                                <groupId>myproj</groupId>
                                <artifactId>myproj_ear</artifactId> 
                                <version>${project.version}</version> 
                                <type>earr</type>
                        </dependency>

                        <dependency> 
                                <groupId>myproj</groupId>
                                <artifactId>myproj_it</artifactId> 
                                <version>${project.version}</version> 
                        </dependency>

               </dependencies>
        </dependencyManagement>

and in a module i have :

        <parent>
                <groupId>myproj</groupId>
                <artifactId>myproj-globals</artifactId>
                <version>1.0-SNAPSHOT</version>
        </parent>

I want to remove the parent version. I want it take the root pom.xml version
automatically.

Have you got an idea?

Thanks a lot.
Grégory BOISSINOT
-- 
View this message in context: 
http://www.nabble.com/Manage-project-version-with-modules-tf2679170s177.html#a7472379
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to