Chris' Tech Blog

March 20, 2010

mvn eclipse: “Request to merge when ‘filtering’ is not identical.”

Filed under: Eclipse, Maven — Chris Ey @ 11:16 pm

When filtering properties is turned on with maven and I regenerated the eclipse project with maven (mvn eclipse:eclipse), I got this problem after updating to a current mvn release:

org.apache.maven.lifecycle.LifecycleExecutionException: Request to merge when 'filtering' is not identical. Original=source src/main/java: output=null, include=[**/*.java], exclude=[], test=false, filtering=false, merging with=resource src/main/java: output=target/classes, include=[**], exclude=[**/*.java|config.properties|**/*.java], test=false, filtering=true

Well, looks like I’m not the only one with this problem! The best thread & solutions I found here:

http://forums.atlassian.com/thread.jspa?threadID=34952&tstart=30

In short, you want to use version 2.6 of the eclipse plugin, and a quick way to do that is execute mvn eclipse this way:

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse -DdownloadSources=true -DdownloadJavadocs=true

16 Comments »

  1. Thanks for the tip! I was pulling my hair out trying to figure out the include/exclude crap when all it required was a change in version of the eclipse plugin.

    Thanks again!

    Comment by Ganesh Krishnan — July 25, 2010 @ 6:12 am

  2. Thanks, this helped!

    Comment by Toby — August 17, 2010 @ 8:04 am

  3. Bingo! Thanks for your posting. Easy to find solution.

    Comment by Torsten — September 10, 2010 @ 5:18 am

  4. Thanks for the huge time saver Chris.

    Comment by Manos Batsis — September 19, 2010 @ 5:51 am

  5. Thanks for the tip! It helps a lot!

    Comment by Ryan — September 30, 2010 @ 7:13 pm

  6. Thanks! that really helped

    Comment by Diwakar — November 15, 2010 @ 1:44 am

  7. My teacher tryed for 2 horus today to get my to understand this, thank you! Emergency Lighting: http://www.lightinges.com

    Comment by Power Supply — December 16, 2010 @ 1:50 pm

  8. Indeed, thanks!

    Comment by Linus — March 10, 2011 @ 9:19 pm

  9. Thanks!!!

    Comment by Radu — March 14, 2011 @ 6:22 am

  10. Thanks a lot. This saved me a lot of time and frustration

    Comment by samoko — June 1, 2011 @ 11:35 am

  11. Thanks. it works.. :)

    Comment by mayor sipayung — June 23, 2011 @ 8:46 pm

  12. thanks

    Comment by virgil hong — July 16, 2011 @ 6:32 am

  13. [...] 출처 : http://www.inweb.de/chetan/_blog/2010/03/20/mvn-eclipse-request-to-merge-when-filtering-is-not-ident… [...]

    Pingback by [Maven] Request to merge when ‘filtering’ is not identical 해결하기 « kyungw00k — August 1, 2011 @ 7:38 pm

  14. Thanks ! It worked for me too.

    Comment by Sébastien — September 15, 2011 @ 5:19 am

  15. Thanks for this solutions.

    Comment by Abhilash Ranjan — September 26, 2011 @ 12:01 am

  16. THANKS!! That was a real help!

    Comment by Ankita Singh — October 12, 2011 @ 2:15 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress