You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Vincent Massol <vm...@pivolis.com> on 2005/10/06 11:20:05 UTC

[Design] Sharing common build files between modules

Hi,

I know this is not slated for Maven 2.0 but I'd like to start a discussion
about how to share common build files between modules.

Example of use cases:
- sharing a checkstyle.xml file
- sharing a LICENSE file
- sharing PMD, findbugs, etc config files
- etc

We don't want to use relative paths as each module should be able to be
built independently of the rest with only a connection to the local
repository.

The only solution I could think of would be to share those common build
files through the local repository.

So we would need to find an elegant (i.e. easy for the user) way to:
- package them in the local repository
- extract them out where they need to be used (in the modules)

This would probably need projects to add a new special "build" module to
their project structure which would contain common build stuff. 

BTW if we think more globally, this "build" module could also be the place
where you project would put custom plugins used to build the project. 

WDYT?

Thanks
-Vincent


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


Re: [Design] Sharing common build files between modules

Posted by Emmanuel Venisse <em...@venisse.net>.
sure. and we'll can versionned them

Emmanuel

Vincent Massol a écrit :
> 
>>-----Original Message-----
>>From: Emmanuel Venisse [mailto:emmanuel@venisse.net]
>>Sent: jeudi 6 octobre 2005 14:00
>>To: Maven Developers List
>>Subject: Re: [Design] Sharing common build files between modules
>>
>>It isn't necessary to put them in repository, but they need only to be
>>accessible by an url.
> 
> 
> Sure but the question is where would you store them... If you imply storing
> them on the web then I don't think that's good enough for several reasons:
> 
> 1/ The build files are too "far" from the build sources. I don't think it's
> a good idea to separate them.
> 
> 2/ They can only be accessed in online mode which is not good. You must be
> able to build your project in offline mode.
> 
> [snip]
> 
> Thanks
> -Vincent
> 
> 
>>Vincent Massol a écrit :
>>
>>>Hi,
>>>
>>>I know this is not slated for Maven 2.0 but I'd like to start a
>>
>>discussion
>>
>>>about how to share common build files between modules.
>>>
>>>Example of use cases:
>>>- sharing a checkstyle.xml file
>>>- sharing a LICENSE file
>>>- sharing PMD, findbugs, etc config files
>>>- etc
>>>
>>>We don't want to use relative paths as each module should be able to be
>>>built independently of the rest with only a connection to the local
>>>repository.
>>>
>>>The only solution I could think of would be to share those common build
>>>files through the local repository.
>>>
>>>So we would need to find an elegant (i.e. easy for the user) way to:
>>>- package them in the local repository
>>>- extract them out where they need to be used (in the modules)
>>>
>>>This would probably need projects to add a new special "build" module to
>>>their project structure which would contain common build stuff.
>>>
>>>BTW if we think more globally, this "build" module could also be the
>>
>>place
>>
>>>where you project would put custom plugins used to build the project.
>>>
>>>WDYT?
>>>
>>>Thanks
>>>-Vincent
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 
> 
> 


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


RE: [Design] Sharing common build files between modules

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Emmanuel Venisse [mailto:emmanuel@venisse.net]
> Sent: jeudi 6 octobre 2005 14:00
> To: Maven Developers List
> Subject: Re: [Design] Sharing common build files between modules
> 
> It isn't necessary to put them in repository, but they need only to be
> accessible by an url.

Sure but the question is where would you store them... If you imply storing
them on the web then I don't think that's good enough for several reasons:

1/ The build files are too "far" from the build sources. I don't think it's
a good idea to separate them.

2/ They can only be accessed in online mode which is not good. You must be
able to build your project in offline mode.

[snip]

Thanks
-Vincent

> Vincent Massol a écrit :
> > Hi,
> >
> > I know this is not slated for Maven 2.0 but I'd like to start a
> discussion
> > about how to share common build files between modules.
> >
> > Example of use cases:
> > - sharing a checkstyle.xml file
> > - sharing a LICENSE file
> > - sharing PMD, findbugs, etc config files
> > - etc
> >
> > We don't want to use relative paths as each module should be able to be
> > built independently of the rest with only a connection to the local
> > repository.
> >
> > The only solution I could think of would be to share those common build
> > files through the local repository.
> >
> > So we would need to find an elegant (i.e. easy for the user) way to:
> > - package them in the local repository
> > - extract them out where they need to be used (in the modules)
> >
> > This would probably need projects to add a new special "build" module to
> > their project structure which would contain common build stuff.
> >
> > BTW if we think more globally, this "build" module could also be the
> place
> > where you project would put custom plugins used to build the project.
> >
> > WDYT?
> >
> > Thanks
> > -Vincent
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org



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


Re: [Design] Sharing common build files between modules

Posted by Emmanuel Venisse <em...@venisse.net>.
It isn't necessary to put them in repository, but they need only to be accessible by an url.

In checkstyle plugin, user can use propertiesURL parameter instead of propertiesFile.

Emmanuel

Vincent Massol a écrit :
> Hi,
> 
> I know this is not slated for Maven 2.0 but I'd like to start a discussion
> about how to share common build files between modules.
> 
> Example of use cases:
> - sharing a checkstyle.xml file
> - sharing a LICENSE file
> - sharing PMD, findbugs, etc config files
> - etc
> 
> We don't want to use relative paths as each module should be able to be
> built independently of the rest with only a connection to the local
> repository.
> 
> The only solution I could think of would be to share those common build
> files through the local repository.
> 
> So we would need to find an elegant (i.e. easy for the user) way to:
> - package them in the local repository
> - extract them out where they need to be used (in the modules)
> 
> This would probably need projects to add a new special "build" module to
> their project structure which would contain common build stuff. 
> 
> BTW if we think more globally, this "build" module could also be the place
> where you project would put custom plugins used to build the project. 
> 
> WDYT?
> 
> Thanks
> -Vincent
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 
> 
> 


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