maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maczka Michal <>
Subject RE: Need to load common goals from sub-projects maven.xml
Date Wed, 30 Jun 2004 13:08:22 GMT

> -----Original Message-----
> From: Matt Read []
> Sent: Wednesday, June 30, 2004 2:36 PM
> To: 'Maven Users List'
> Subject: RE: Need to load common goals from sub-projects maven.xml
> > From: Maczka Michal [] 
> > 
> > > From: Stefanutti, Mario []
> > > 
> > > Hi,
> > > 
> > > I looking for a way to set some common goals for each 
> > sub-project of a 
> > > multiproject environment.
> > > 
> > Simple soluton: create your own plugin. It is super simple 
> > (example can be found in Maven Wiki)
> > 
> > Michal
> > 
> I'm interested in this too. It appears the project's inherit 
> from the parent
> project's maven.xml. Even if one was to write a plugin to 
> encapsulate common
> tasks they would still need to be called in the same way in each
> sub-project. I assume inheritance of maven.xml is the 
> recommended way to do
> this?

No. Plugins are recommened way of doing this. 

In Maven 2 inheritence uses the id of the parent project instead of the
relative path to parent pom


Parent pom could be taken from local repository (and hence downloaded there
from remote repository)  
and most likly it might be also provided by reactor when reactor powered
build will be used for building both child and parent projects 

We still haven't decided if maven.xml will be also uploaded/downloaded
to/from the repository(ies) but at the moment for sake of simplicity 
we are rather willing to push all centralized goals to plugins. Plugins can
be decalred as any other dependenies in poms and automatically
fetched by maven. It means that for common scripts - you will need to create
one more project.  In reactor powered builds which will be  way
simpler than thay are now there should be really no differnce as plugin
project will be build in the same run of maven and made directly visible
to other projets.

But this is the future :)



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message