You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Mark R. Diggory" <md...@latte.harvard.edu> on 2004/02/18 02:22:25 UTC
Project Properties and "extends"
Is it possible to inherit the parent projects
"parent-project/project.properties"
when you "extend" the
"parent-project/project.xml"?
thanks
-Mark
--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Project Properties and "extends"
Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
I think we'll just hang tight and wait for some property file
inheritance as well. Until then we can make due with duplicating the
properties files.
-Mark
Sebastien Sahuc wrote:
> We are looking for the same feature. Here is what we did locally by
> patching maven code. Our project.properties for each project can include
> a master project.properties using the following line:
>
> ==== project.properties of the project ==
> @../master/master_project.properties
>
> =====
>
>
> === master_project.properties (in master folder, visible to all project
> ) ===
> # Bunch of properties shared by all subprojects that include this project
> [...]
> maven.jar.override=true
> [...]
>
> =====
>
>
> Patch is fairly trivial. Now I'd like to hear from the maven gurus if
> this is breaking any maven 'rules' or 'principles'. I'm of course in
> favor for the inheritance feature, but the hack will do in the meantime.
>
> Sebastien
>
>
>
>
>
>
>
> On Feb 17, 2004, at 5:22 PM, Mark R. Diggory wrote:
>
>> Is it possible to inherit the parent projects
>>
>> "parent-project/project.properties"
>>
>> when you "extend" the
>>
>> "parent-project/project.xml"?
>>
>> thanks
>> -Mark
>>
>> --
>> Mark Diggory
>> Software Developer
>> Harvard MIT Data Center
>> http://www.hmdc.harvard.edu
>>
>> ---------------------------------------------------------------------
>> 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
>
--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Project Properties and "extends"
Posted by Sebastien Sahuc <ss...@intalio.com>.
We are looking for the same feature. Here is what we did locally by
patching maven code. Our project.properties for each project can
include a master project.properties using the following line:
==== project.properties of the project ==
@../master/master_project.properties
=====
=== master_project.properties (in master folder, visible to all project
) ===
# Bunch of properties shared by all subprojects that include this
project
[...]
maven.jar.override=true
[...]
=====
Patch is fairly trivial. Now I'd like to hear from the maven gurus if
this is breaking any maven 'rules' or 'principles'. I'm of course in
favor for the inheritance feature, but the hack will do in the
meantime.
Sebastien
On Feb 17, 2004, at 5:22 PM, Mark R. Diggory wrote:
> Is it possible to inherit the parent projects
>
> "parent-project/project.properties"
>
> when you "extend" the
>
> "parent-project/project.xml"?
>
> thanks
> -Mark
>
> --
> Mark Diggory
> Software Developer
> Harvard MIT Data Center
> http://www.hmdc.harvard.edu
>
> ---------------------------------------------------------------------
> 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