Andy,
This sound like you have "Build automatically" turned off in Eclipse.
If so, the behavior you describing is consistent.
If I am not mistaken, we deliberately disabled building project before
launching Maven because usually it is already built by JDT. I don't
think mode when "build automatically" is disabled had been heavily
tested with m2eclipse.
Also note that m2eclipse does not propagate error markers from the
failed Maven builds. We don't want to duplicate functionality that is
already provided by JDT. With incremental autobuild disabled number of
other features in JDT may not work correctly, e.g. code completion and
search, because Java model would get out of synk.
regards,
Eugene
Andy Dingfelder wrote:
I am experiencing an issue where sometimes my builds work and sometimes they do
not.
One thing I am seeing is that if I introduce a compile error into my code, and then
launch my maven build, the build does fail, after about 15 seconds, but the
"problems" tab in eclipse does not list my error.
If I right click my project in the package explorer and select "build project" the
compile immediately shows up in the problem tab in < 1 second.
Of a bigger worry to me is that if I run the project, it does not do a build
first, so If I run my project and see it is working, and then I fire off my
install tool to package up my deployment area, and forget to fire off the build
manually first, the install is not the latest code as the build did not occur.
Is there any way to make "run" do a build first, but only if any source code has changed?
Of the biggest concern though, is that sometimes (but not always) if I do a build, the code in the generated jar does not seem to get updated.
I know this is not enough information to go on, I am just asking first if anyone has experienced anything like this before?
I will start digging more tomorrow to see if I can get to the cause.
Thoughts?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email