Monday, September 7, 2009

maven-eclipse-plugin problem

Just short maven tip. Maybe someone will find it useful.
Few days ago I faced following problem when trying to generate eclipse project using mvn eclipse:eclipse:

Resource directory's path matches an existing source directory. Resources will be merged with the source directory src/main/resources ... Request to merge when ‘filtering’ is not identical.

The solution is to use version 2.6 of the maven-eclipse-plugin (version 2.7 will not work) so add the version tag explicitly to the pom or call maven:

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse

1 comments:

syllepsa said...

As far as I know you can change directory layout in pom setting explicitly source or resources directory.

Post a Comment