Gabriel Goïc created MECLIPSE-707:
-------------------------------------

             Summary: [regression] Resources are excluded if resource dir is 
declared twice
                 Key: MECLIPSE-707
                 URL: https://jira.codehaus.org/browse/MECLIPSE-707
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: Core : .project
    Affects Versions: 2.8
         Environment: Maven 2.0.9, JDK 1.5
            Reporter: Gabriel Goïc


While migrating from 2.5.1 to 2.8, I am facing this regression.
My POM declares twice the same resource directory, in order to first include 
some filtered files into the build, and then include some other files which do 
not have to be filtered:

{code:xml}
                <resources>
                        <resource>
                                <directory>src/main/resources</directory>
                                <filtering>true</filtering>
                                <includes>
                                        <include>**/*.xml</include>
                                        <include>**/*.properties</include>
                                </includes>
                                <excludes>
                                        <exclude>**/backup_db</exclude>
                                        <exclude>**/bea_domain</exclude>
                                        <exclude>**/create_db</exclude>
                                        <exclude>**/exploit</exclude>
                                        <exclude>**/launch</exclude>
                                        <exclude>**/mpd</exclude>
                                        <exclude>**/prod_data</exclude>
                                        <exclude>**/rec_data</exclude>
                                        <exclude>**/reference_data</exclude>
                                        
<exclude>**/hibernate.reveng.xml</exclude>
                                </excludes>
                        </resource>
                        <resource>
                                <directory>src/main/resources</directory>
                                <filtering>false</filtering>
                                <includes>
                                        <include>**/templates/**</include>
                                </includes>
                                <excludes>
                                        <exclude>**/hibernate/**</exclude>
                                </excludes>
                        </resource>
                </resources>
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to