I have been using Maven Integration for Eclipse plugin for some time and I am very fond of it. It is awesome. I imagine there is no a single solution to the problem of bridging two java project meta-descriptors - maven's represented by pom.xml
and eclipse's represented by artifacts like .classpath
and .project
. The way it is implemented in this plugin is just awesome.
There was only one problem I have encountered while using m2eclipse plugin. After upgrade to 0.9.4
release, my eclipse-maven projects stopped working with ClassNotFound
exception when being run from eclipse as whether Applications or JUnit tests. It was caused by a change introduced in default eclipse output folders for maven projects. It use to be target-eclipse/classes
and is target/classes
now - just like standard maven output directory. There is a rationale behind this change.
In order to fix the problem just select a project and choose Maven > Update Project Configuration from context menu. I've spent some time trying to understand what is going on - probably some kind of warning should be shown in case of projects with legacy paths. I hope this entry could help someone having similar problem.
m2eclipse plugin is on a good way to become a project under eclipse umbrella, great.
you've just saved my day! thanks!
ReplyDeleteThanks and lot :)
ReplyDeleteA simple solution to a complex problem - thanks!
ReplyDeleteThis was driving me crazy. Good work ! :)
ReplyDeleteGreat, thanks for the tip!
ReplyDeleteYou are my hero !! Thanks a lot !!!
ReplyDeleteThanks a lot, I tested many other possible solutions but none worked.
ReplyDeletethanks .. yes you have saved my day too
ReplyDeleteThank you very much, this saved me a lot of time.
ReplyDeletethanks!!!!
ReplyDeleteThanks for this, I was looking solution all day... I have to write it down somewhere :D
ReplyDeletei cheked out this solution but still m getting the same problem.classnot found exception.plz help!!:-(
ReplyDelete