You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Emmanuel24 <es...@xebia.fr> on 2009/09/25 17:27:37 UTC
Parent, Modules and version management
Hello,
I have a multimodules project (ProjectParent) with each module has a super
pom's parent .
See the figure:
http://www.nabble.com/file/p25614127/Screen03.jpg
(red : parent, blue : module)
My problem is very simple. I can't manage the version of my modules from my
multimodules project. I wish to have the same version in all modules and
define this version in the ProjectParent.
I look for this in a new plugin called versions (Codehaus), but I didn't
find what I need.
Has anybody a solution for this?
Thank you very much,
Emmanuel.
--
View this message in context: http://www.nabble.com/Parent%2C-Modules-and-version-management-tp25614127p25614127.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Parent, Modules and version management
Posted by Jeff MAURY <je...@gmail.com>.
In that case, you're stuck and the release plugin will do the job but don't
use properties to define versions.
I think a certain version of Maven allows to import a pom into another.
Regards
Jeff
On Sat, Sep 26, 2009 at 7:09 PM, Emmanuel24 <es...@xebia.fr> wrote:
>
> As I said, I define the version in ProjectParent and in this project, I
> defined my modules as the figure shows it.
> But my modules don't inherit from this project. That is the problem.
>
> Emmanuel.
>
>
>
> jeffmaury@jeffmaury.com wrote:
> >
> > In that case, I don't understand where the versions of your projects are
> > defined because if the parents are enterprise pom, you are not allowed to
> > modify them !!!
> >
> > Jeff
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Parent%2C-Modules-and-version-management-tp25614127p25627113.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
La mélancolie c’est communiste
Tout le monde y a droit de temps en temps
La mélancolie n’est pas capitaliste
C’est même gratuit pour les perdants
La mélancolie c’est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c’est pour les syndicalistes
Il faut juste sa carte de permanent
Miossec (2006)
http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal
Re: Parent, Modules and version management
Posted by Emmanuel24 <es...@xebia.fr>.
As I said, I define the version in ProjectParent and in this project, I
defined my modules as the figure shows it.
But my modules don't inherit from this project. That is the problem.
Emmanuel.
jeffmaury@jeffmaury.com wrote:
>
> In that case, I don't understand where the versions of your projects are
> defined because if the parents are enterprise pom, you are not allowed to
> modify them !!!
>
> Jeff
>
>
--
View this message in context: http://www.nabble.com/Parent%2C-Modules-and-version-management-tp25614127p25627113.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Parent, Modules and version management
Posted by Jeff MAURY <je...@gmail.com>.
In that case, I don't understand where the versions of your projects are
defined because if the parents are enterprise pom, you are not allowed to
modify them !!!
Jeff
On Sat, Sep 26, 2009 at 4:06 PM, Emmanuel24 <es...@xebia.fr> wrote:
>
> Hi Jeff,
>
> Thank you for your answer. The problem is that I can't change parent poms
> because it's enterprise poms. My poms inherit from them to respect
> enterprise archictecture choices.
>
> Emmanuel.
>
>
>
> Jeff MAURY wrote:
> >
> > From my experience with Maven, I discourage using properties for
> > defining pom version, Maven does handle it correctly on some cases,
> > even if the properties are defined on the parent pom
> >
> > I recommand using version herited from the parent and updating the
> > parent version with the version plugin
> > Jeff MAURY
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Parent%2C-Modules-and-version-management-tp25614127p25625561.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
La mélancolie c’est communiste
Tout le monde y a droit de temps en temps
La mélancolie n’est pas capitaliste
C’est même gratuit pour les perdants
La mélancolie c’est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c’est pour les syndicalistes
Il faut juste sa carte de permanent
Miossec (2006)
http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal
Re: Parent, Modules and version management
Posted by Emmanuel24 <es...@xebia.fr>.
Hi Jeff,
Thank you for your answer. The problem is that I can't change parent poms
because it's enterprise poms. My poms inherit from them to respect
enterprise archictecture choices.
Emmanuel.
Jeff MAURY wrote:
>
> From my experience with Maven, I discourage using properties for
> defining pom version, Maven does handle it correctly on some cases,
> even if the properties are defined on the parent pom
>
> I recommand using version herited from the parent and updating the
> parent version with the version plugin
> Jeff MAURY
>
>
--
View this message in context: http://www.nabble.com/Parent%2C-Modules-and-version-management-tp25614127p25625561.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Parent, Modules and version management
Posted by Jeff MAURY <je...@jeffmaury.com>.
>From my experience with Maven, I discourage using properties for
defining pom version, Maven does handle it correctly on some cases,
even if the properties are defined on the parent pom
I recommand using version herited from the parent and updating the
parent version with the version plugin
Jeff MAURY
On Friday, September 25, 2009, Emmanuel24 <es...@xebia.fr> wrote:
>
> Hello,
>
>
> I have a multimodules project (ProjectParent) with each module has a super
> pom's parent .
>
> See the figure:
>
>
> http://www.nabble.com/file/p25614127/Screen03.jpg
>
> (red : parent, blue : module)
>
>
> My problem is very simple. I can't manage the version of my modules from my
> multimodules project. I wish to have the same version in all modules and
> define this version in the ProjectParent.
>
>
> I look for this in a new plugin called versions (Codehaus), but I didn't
> find what I need.
>
>
>
> Has anybody a solution for this?
>
>
> Thank you very much,
>
> Emmanuel.
> --
> View this message in context: http://www.nabble.com/Parent%2C-Modules-and-version-management-tp25614127p25614127.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
--
La mélancolie c’est communiste
Tout le monde y a droit de temps en temps
La mélancolie n’est pas capitaliste
C’est même gratuit pour les perdants
La mélancolie c’est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c’est pour les syndicalistes
Il faut juste sa carte de permanent
Miossec (2006)
http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org