I want to use the plugin maven-resources-plugin to copy some files in a 
non-default location during the lifecycle phase "package". I'm using a 
company-wide pom.xml (which is included into the project's pom.xml using 
<parent>) to configure the plugin:

Parent POM:

...
      <build>
        <pluginManagement>
            <plugins>
              <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <configuration>
                                
<outputDirectory>target/mhave/packaging/${project.artifactId}-${project.version}</outputDirectory>
                                <resources>
                                    <resource>
                                        
<directory>src/main/packaging/</directory>
                                        <filtering>true</filtering>
                                    </resource>
                                </resources>
                            </configuration>
                            <goals>
                                <goal>resources</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
...

Now, what happens is that it copies the files from what I specified in 
${project.resources} rather than what I configured in the POM above 
(src/main/packaging). I simply can't get it to fetch the files from 
src/main/packaging.

Anybody any idea what's wrong with my config?

Thanks,
Chris

Reply via email to