maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Mouttet <christian.mout...@it2media.de>
Subject Re: SV: multi module projects
Date Fri, 17 Mar 2006 13:32:08 GMT
any other ideas?

Am Dienstag, 7. März 2006 17:19 schrieb Christian Mouttet:
> Jakob,
>
> that's very tricky but it doesn't make it much easier.
>
> Using this method every child module must set its own version number
> (pom.xml: project/version) instead of project/parent/version. It's about as
> broad as it's long. ;-)
>
> -chris
>
> Am Dienstag, 7. März 2006 15:55 schrieb Jakob Vad Nielsen:
> > Hi Christian,
> >
> > I do not know if there is a way to skip the version, but there is a
> > solution to your problem.
> >
> > Set the parent version to for example 1.0-SNAPSHOT. Then the sub modules
> > will always update the main project settings.
> >
> > /Jakob
> >
> > -----Opprinnelig melding-----
> > Fra: Christian Mouttet [mailto:christian.mouttet@it2media.de]
> > Sendt: 7. mars 2006 09:28
> > Til: users@maven.apache.org
> > Emne: multi module projects
> >
> > Hi,
> >
> > imagine following project structure:
> >
> > main-project
> > ! pom.xml (version x.y)
> > !
> > +- module-a
> > !    pom.xml (parent = main-project-x.y
> > !             default relativePath = ../pom.xml)
> > !
> > +- module-b
> >      pom.xml (parent is main-project-x.y
> >               default relativePath = ../pom.xml)
> >
> > I know that relative path is first used to find the parent pom.xml. If
> > it's
> > not found then it is searched in the repositories (local, central).
> >
> > Is there a way to avoid the version number if I surely know that the
> > parent
> > pom.xml lives in the relative path? I don't want manually change the
> > version
> > in all submodules if the parent version changes.
> >
> >
> > Regards
> >
> > -chris
>
> **********************************************************************
> Diese E-Mail wurde auf Viren ueberprueft.
> mailsweeper@it2media.de
> **********************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


Mime
View raw message