Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1542

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1542
    Summary: Merge build elements in extended POM
       Type: Improvement

     Status: Unassigned
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             inheritance
   Versions:
             1.0.2

   Assignee: 
   Reporter: Steven Caswell

    Created: Wed, 29 Dec 2004 7:20 AM
    Updated: Wed, 29 Dec 2004 7:20 AM

Description:
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



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to