You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/05/16 06:49:34 UTC

[jira] Closed: (MAVEN-1542) Merge build elements in extended POM

     [ http://jira.codehaus.org/browse/MAVEN-1542?page=all ]
     
Brett Porter closed MAVEN-1542:
-------------------------------

    Resolution: Won't Fix

based on http://marc.theaimsgroup.com/?l=turbine-maven-user&m=110423829501521&w=2
won't fix

> Merge build elements in extended POM
> ------------------------------------
>
>          Key: MAVEN-1542
>          URL: http://jira.codehaus.org/browse/MAVEN-1542
>      Project: maven
>         Type: Improvement
>   Components: inheritance
>     Versions: 1.0.2
>     Reporter: Steven Caswell
>     Priority: Minor

>
>
> Resources and unit test include/exclude patterns in the build element are not inherited, which presents issues for subprojects that need to add to the existing parent project. Please change maven to allow these elements to be merged rather than replaced.
> For example, a parent project.xml might include the following:
>  <build>
>    <unitTest>
>      <resources>
>        <resource>
>          <directory>src/test/resources</directory>
>          <targetPath>resources</targetPath>
>          <includes>
>            <include>**/*.*</include>
>          </includes>
>        </resource>
>        <resource>
>          <directory>${basedir}/../resources</directory>
>          <includes>
>            <include>log4j-sample.properties</include>
>            <include>beanRefFactory.xml</include>
>            <include>aspectwerkz.xml</include>
>          </includes>
>        </resource>
>        <resource>
>          <directory>${basedir}/../resources/context</directory>
>          <targetPath>context</targetPath>
>          <includes>
>            <include>**/*.*</include>
>          </includes>
>        </resource>
>      </resources>
>    </unitTest>
>  </build>
> A subproject's project.xml might need to add an additional resources:
>  <build>
>    <unitTest>
>      <resources>
>        <resource>
>          <directory>../interface/target/test-classes</directory>
>          <targetPath></targetPath>
>          <includes>
>            <include>**/*.class</include>
>          </includes>
>        </resource>
>      </resources>
>    </unitTest>
>  </build>
> 1.0.2 replaces the parent project's unitTest resources with that defined in the subproject. This improvement requests that they be merged, so the equivalent would be as follows:
>  <build>
>    <unitTest>
>      <resources>
> <!-- resources from parent project -->
>        <resource>
>          <directory>src/test/resources</directory>
>          <targetPath>resources</targetPath>
>          <includes>
>            <include>**/*.*</include>
>          </includes>
>        </resource>
>        <resource>
>          <directory>${basedir}/../resources</directory>
>          <includes>
>            <include>log4j-sample.properties</include>
>            <include>beanRefFactory.xml</include>
>            <include>aspectwerkz.xml</include>
>          </includes>
>        </resource>
>        <resource>
>          <directory>${basedir}/../resources/context</directory>
>          <targetPath>context</targetPath>
>          <includes>
>            <include>**/*.*</include>
>          </includes>
>        </resource>
> <!-- resource from subproject -->
>        <resource>
>          <directory>../interface/target/test-classes</directory>
>          <targetPath></targetPath>
>          <includes>
>            <include>**/*.class</include>
>          </includes>
>        </resource>
>      </resources>
>    </unitTest>
>  </build>
> A bit of preliminary discussion from the user's mailing list:
> http://marc.theaimsgroup.com/?l=turbine-maven-user&m=110423829501521&w=2
> http://marc.theaimsgroup.com/?l=turbine-maven-dev&m=110428720508765&w=2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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