[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-dev] Project refreshes and rebuilds/autobuilds
|
This is the part that might be tricky. Like I said, there are two
interesting cases, when projects are closed or removed and when
individual projects are built explicitly with workspace autobuild off.
In both cases, some other projects may be affected and require
resolution and rebuild when autobuild is turned on.
One way to achieve this is to touch affected projects' pom.xml files
during resolution. This I believe will create pending resource change
events that'll trigger build of the corresponding projects when
autobuild is turned on.
Another possibility is to maintain "pending update" queue somewhere in
m2e and act on these updates when autobuild is turned on.
There are probably other ways to do this, I am not attached to
particular approach at the moment, as long as the final solution works
reliably and does not introduce any performance regressions.
If we can figure out how to make this work, however, I think we will be
able to remove ProjectRegistryRefreshJob and do all resolution as part
of project build or configuration update.
--
Regards,
Igor
On 2014-05-03, 9:38, Anton Tanasenko wrote:
When autobuild is on, ProjectRegistryRefreshJob doesn't actually react
to file changes at all (only to project open/close/delete, comments at
around line 156 also reflect that), refresh in this case happens as part
of MavenBuilder invocation.
If we make the same when autobuild is off, MavenBuilder (along with the
refresh) will be invoked as soon as autobuild gets turned on.
On Sat, May 3, 2014 at 2:28 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:
On 2014-05-03, 5:52, Anton Tanasenko wrote:
And what about your stance on project refreshes with autobuild
off? Can
it be some option, that allows projects to become out-of-date on pom
changes until autobuild is turned back on?
It really depends on how complicated the implementation will get. I like
the idea in general, but I think reconciliation of the out of sync state
when autobuild is turned on might be tricky. Haven't thought much about
it though, so maybe I am wrong and there isn't much to it.
--
Regards,
Igor
_________________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx <mailto:m2e-dev@xxxxxxxxxxx>
https://dev.eclipse.org/__mailman/listinfo/m2e-dev
<https://dev.eclipse.org/mailman/listinfo/m2e-dev>
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev