You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Piéroni Raphaël <ra...@gmail.com> on 2006/05/24 14:19:33 UTC

[m2] multi project build failure [repost]

Any one ?

2006/5/18, Piéroni Raphaël <ra...@gmail.com>:
>
> Hello,
>
> I have a strange failure of my buld in multi project (multi module in new
> parlance) :
>
> When i do :
> in the parent module : mvn -N install,
> then in each module mvn -install : it works fine.
>
> When i do :
> in the parent module : mvn install,
> it fails with such a failure :
> [INFO] version was null for rafale.wingsofglory:wings-of-glory-model
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException: version was null for
> rafale.wingsofglory:wings-of-glory-model
>
> my tree is like this :
> parent
> + model
> + utils (depends on model)
> + api (depends on utils and model)
> + core (depends on api utils and model)
>
> In the parent pom, i define dependencyManagment for each of these modules
> using version = [${project.version}]
> in each module, i define a the dependencies without a version number in
> order to retreive them from the parent.
>
> Can someone help me to fix this ?
>
> In advance Thanks
> Raphaël
>
>

Re: [m2] multi project build failure [repost]

Posted by Piéroni Raphaël <ra...@gmail.com>.
thanks, will try tonite

2006/5/24, javed mandary <ja...@gmail.com>:
>
> Looks like for artifact:
>
> <groupId>rafale.wingsofglory</groupId>
> <artifactId>wings-of-glory-model</artifactId>
>
> you need to set the version number , try using ${parent.project.version}
> in
> your sub-modules.
>
> hope that helps,
>        javed
>
> On 5/24/06, Piéroni Raphaël <ra...@gmail.com> wrote:
> >
> > Any one ?
> >
> > 2006/5/18, Piéroni Raphaël <ra...@gmail.com>:
> > >
> > > Hello,
> > >
> > > I have a strange failure of my buld in multi project (multi module in
> > new
> > > parlance) :
> > >
> > > When i do :
> > > in the parent module : mvn -N install,
> > > then in each module mvn -install : it works fine.
> > >
> > > When i do :
> > > in the parent module : mvn install,
> > > it fails with such a failure :
> > > [INFO] version was null for rafale.wingsofglory:wings-of-glory-model
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [DEBUG] Trace
> > > java.lang.NullPointerException: version was null for
> > > rafale.wingsofglory:wings-of-glory-model
> > >
> > > my tree is like this :
> > > parent
> > > + model
> > > + utils (depends on model)
> > > + api (depends on utils and model)
> > > + core (depends on api utils and model)
> > >
> > > In the parent pom, i define dependencyManagment for each of these
> > modules
> > > using version = [${project.version}]
> > > in each module, i define a the dependencies without a version number
> in
> > > order to retreive them from the parent.
> > >
> > > Can someone help me to fix this ?
> > >
> > > In advance Thanks
> > > Raphaël
> > >
> > >
> >
>
>

Re: [m2] multi project build failure [repost]

Posted by javed mandary <ja...@gmail.com>.
Looks like for artifact:

<groupId>rafale.wingsofglory</groupId>
<artifactId>wings-of-glory-model</artifactId>

you need to set the version number , try using ${parent.project.version} in
your sub-modules.

hope that helps,
       javed

On 5/24/06, Piéroni Raphaël <ra...@gmail.com> wrote:
>
> Any one ?
>
> 2006/5/18, Piéroni Raphaël <ra...@gmail.com>:
> >
> > Hello,
> >
> > I have a strange failure of my buld in multi project (multi module in
> new
> > parlance) :
> >
> > When i do :
> > in the parent module : mvn -N install,
> > then in each module mvn -install : it works fine.
> >
> > When i do :
> > in the parent module : mvn install,
> > it fails with such a failure :
> > [INFO] version was null for rafale.wingsofglory:wings-of-glory-model
> > [INFO]
> > ------------------------------------------------------------------------
> > [DEBUG] Trace
> > java.lang.NullPointerException: version was null for
> > rafale.wingsofglory:wings-of-glory-model
> >
> > my tree is like this :
> > parent
> > + model
> > + utils (depends on model)
> > + api (depends on utils and model)
> > + core (depends on api utils and model)
> >
> > In the parent pom, i define dependencyManagment for each of these
> modules
> > using version = [${project.version}]
> > in each module, i define a the dependencies without a version number in
> > order to retreive them from the parent.
> >
> > Can someone help me to fix this ?
> >
> > In advance Thanks
> > Raphaël
> >
> >
>