Hi Olivier,

In your parent POM, use:

<dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.mycompany.app</groupId>
        <artifactId>my-subapp</artifactId>
        <version>${project.version}</version>
      </dependency>
    </dependencies>
</dependencyManagement>

${project.version} basically means getProject().getVersion(). This is the
version of your parent project. However, you can specify here the version
number that you want your modules to have.

Hope this helps.

Dawn



Olivier Catteau wrote:
> 
> Hi,
> I've got a multi-modules application. I'd like that the different modules
> have the same version so I have fixed the same version in every pom.xml.
> But when I use the release plugin, I need to enter the version of every
> modules. Is it possible to enter a single version for every modules ? or
> do
> I need to customize my own release plugin ?
> 
> Thanks.
> Olivier
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Release-plugin-%3A-same-version-of-modules-tf2614543s177.html#a7312017
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