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
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
Thanks, this helped!
Comment by Toby — August 17, 2010 @ 8:04 am
Bingo! Thanks for your posting. Easy to find solution.
Comment by Torsten — September 10, 2010 @ 5:18 am
Thanks for the huge time saver Chris.
Comment by Manos Batsis — September 19, 2010 @ 5:51 am
Thanks for the tip! It helps a lot!
Comment by Ryan — September 30, 2010 @ 7:13 pm
Thanks! that really helped
Comment by Diwakar — November 15, 2010 @ 1:44 am
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
Indeed, thanks!
Comment by Linus — March 10, 2011 @ 9:19 pm
Thanks!!!
Comment by Radu — March 14, 2011 @ 6:22 am
Thanks a lot. This saved me a lot of time and frustration
Comment by samoko — June 1, 2011 @ 11:35 am
Thanks. it works..
Comment by mayor sipayung — June 23, 2011 @ 8:46 pm
thanks
Comment by virgil hong — July 16, 2011 @ 6:32 am
[...] 출처 : 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
Thanks ! It worked for me too.
Comment by Sébastien — September 15, 2011 @ 5:19 am
Thanks for this solutions.
Comment by Abhilash Ranjan — September 26, 2011 @ 12:01 am
THANKS!! That was a real help!
Comment by Ankita Singh — October 12, 2011 @ 2:15 am