[ https://issues.apache.org/jira/browse/MRESOURCES-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arek Kita updated MRESOURCES-215: --------------------------------- Attachment: result-console.txt debug-log.txt I've attached debug-log.txt when executing resources plugin with maven {{-X}} flag. The second file is the output of {{find}} utility from console which shows the missing files. > Not all resources are copied > ---------------------------- > > Key: MRESOURCES-215 > URL: https://issues.apache.org/jira/browse/MRESOURCES-215 > Project: Maven Resources Plugin > Issue Type: Bug > Affects Versions: 2.7 > Environment: $ mvn -version > Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; > 2015-11-10T17:41:47+01:00) > Maven home: /usr/local/Cellar/maven/3.3.9/libexec > Java version: 1.8.0_73, vendor: Oracle Corporation > Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "mac os x", version: "10.11.4", arch: "x86_64", family: "mac" > Reporter: Arek Kita > Attachments: debug-log.txt, result-console.txt > > > It seems that when I define resources to copy in the following way: > {code:xml} > <build> > <resources> > <resource> > > <directory>${basedir}/src/main/content/jcr_root</directory> > <excludes> > <exclude>**/*.vlt/**</exclude> > <exclude>**/*.vlt</exclude> > <exclude>**/*.DS_Store</exclude> > </excludes> > </resource> > {code} > some files for some directories aren't copied (i.e. {{.content.xml}}) files. > I tried removing {{excludes}} section but it doesn't help. > The only thing which solves the problem is removal of the above section in > favour of the plugin configuration: > {code:xml} > <plugin> > <artifactId>maven-resources-plugin</artifactId> > <executions> > <execution> > <id>copy-jcr-content</id> > <phase>generate-resources</phase> > <goals> > <goal>copy-resources</goal> > </goals> > <configuration> > > <outputDirectory>${project.build.directory}/classes</outputDirectory> > <overwrite>true</overwrite> > <resources> > <resource> > > <directory>${basedir}/src/main/content/jcr_root</directory> > <excludes> > > <exclude>**/*.vlt/**</exclude> > > <exclude>**/*.vlt</exclude> > > <exclude>**/*.DS_Store</exclude> > </excludes> > </resource> > </resources> > </configuration> > </execution> > </executions> > </plugin> > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)