You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Salvador Diaz <sd...@m6.fr> on 2008/04/10 11:08:10 UTC

[maven-resources-plugin bug]: ignored configuration for custom execution, any workaround ?

Hi all,

I've bound the resources:resources goal to the package phase of my build 
and I wanted it to copy certain resources to a directory but it's 
ignoring my configuration:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>package</phase>
                        <goals>
                            <goal>resources</goal>
                        </goals>
                        <configuration>
                            
<outputDirectory>${project.build.directory}/conf</outputDirectory>
                            <resources>
                                <resource>

				<directory>src/main/resources</directory>
				<excludes>
					<exclude>**/*.xml</exclude>
					<exclude>application.properties</exclude>
				</excludes>

                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

The problem is that everything after the <outputDirectory> tag is being 
ignored and all of the src/main/resources directory is getting copied to 
${project.build.directory}/conf.

Has anybody else been confronted to this issue? Do you know of any 
workaround ? I think this is the url for this issue: 
http://jira.codehaus.org/browse/MRESOURCES-8 (or at least it's the 
closer issue I found on the tracker). Can somebody confirm that the 
issue is being worked on ?

Thanks


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