Brett, I think this is a little more complex. I use the regular resources section in my POM to copy my resources to target/classes. This works all fine.
But I also want to use the plugin to copy another set of resources during the lifecycle phase "package". During that phase, it should fetch the resources from a different source directory and copy them to a different target as well. The only way I see this possible is to use a maven-resource-plugin configuration with a custom resource configuration. And that's what is not working. Brett Porter <[EMAIL PROTECTED]> wrote: configuration error. The plugin configuration is not where the resources are meant to be given. I'll comment in the JIRA. - Brett On 1/10/06, [EMAIL PROTECTED] wrote: > I just found a bug related to this filed 2 days ago: > http://jira.codehaus.org/browse/MRESOURCES-8. > > Anybody can confirm this is a bug or is it simply a misconfiguration on my > end? > > [EMAIL PROTECTED] wrote: 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 > ) to configure the plugin: > > Parent POM: > > ... > > > > > > > > org.apache.maven.plugins > maven-resources-plugin > > > > package > > > > target/mhave/packaging/${project.artifactId}-${project.version} > > > src/main/packaging/ > true > > > > > resources > > > > > > > > > > ... > > 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 > > > > > >