I think that what he was trying to achieve is to not repeat the same version in all the pom's but this is totally impossible because of the way Maven works.

Guillaume

Le 11/12/2011 18:24, Benson Margulies a écrit :
You do this by inheriting the version through the parent element. You
have to repeat the version once in each pom: as the plain version in
the top pom, and then in the parent element of the others.

Controlling the version through a parameter is not a good idea.

The versions plugin can help you with this, as will the release plugin.


On Sun, Dec 11, 2011 at 11:16 AM, Prashant Neginahal
<prashu.n...@gmail.com>  wrote:
HI All,

We have project structure like below for an app,

app-project-a
app-multi-module-bc
--app-project-b
--app-project-c
app-project-d
....

We would like to have same version for all projects in app. I was
thinking about having a property APP_VERSION in all parent POM and use
this<version>  in all projects. But, how does this maven release
plug-in works in this approach?

Many Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to