[ 
https://jira.codehaus.org/browse/MECLIPSE-707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=286013#comment-286013
 ] 

Gabriel Goïc commented on MECLIPSE-707:
---------------------------------------

Error log:

[INFO] Resource directory's path matches an existing source directory. 
Resources will be merged with the source directory src/main/resources
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Request to merge when 'filtering' is not identical. Original=resource 
src/main/resources: output=target/classes, include=[**/*.xml|**/*.propert
ies], 
exclude=[**/backup_db|**/bea_domain|**/create_db|**/exploit|**/launch|**/mpd|**/prod_data|**/rec_data|**/reference_data|**/hib
ernate.reveng.xml|**/*.java], test=false, filtering=true, merging with=resource 
src/main/resources: output=target/classes, include=[**/templates/**],
exclude=[**/hibernate/**|**/*.java], test=false, filtering=false
                
> [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