maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: <resources> are not aggregated from parent to child pom
Date Sat, 02 Oct 2010 14:41:15 GMT


On 10/2/2010 7:42 AM, Benjamin Bentmann wrote:
> Xavier D. wrote:
>
>> My pom structure is:  pom.xml has a parent:  parent-pom.xml.
>>
>> Both have a<resources>  section to include files.
>>
>> The (child) pom.xml is executed directly and has the effect of only copying
>> the child's resources.   Commenting out this resource section, results in
>> the parent's resources being copied.
>
> This is expected behavior, <resources> given in a child POM are not merged
> with <resources> in the parent but completely override those.

I'm curious as to why this design decision was taken, versus an approach which
allows merging, or perhaps some kind of user (pom - specified) choice.

I was "bitten" by this also.

-Marshall Schor

>
>
> Benjamin
>
> ---------------------------------------------------------------------
> 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