Replies: 7 comments 5 replies
-
Same here, with much smaller projects (5 - 15 modules). It seems to me it may be a race condition as problem is more frequent with larger projects or slower computer. A working workaround is to launch Menu > Project > Clean project on the problematic module. From my investigation, it is not related with manual mvn build (issue is triggered even when working exclusively in Eclipse). I don't find a way to trigger it consistently. I think I encounter this problem with eclipse < 2023-03, but it is really frequent and annoying since 2023-03. 2023-06 is still problematic. I don't know how to dig deeper in this issue. Glad to hear if anyone know if logs / configuration options can be tweaked to identify the problem. |
Beta Was this translation helpful? Give feedback.
-
Other things to share:
|
Beta Was this translation helpful? Give feedback.
-
/CC @to-fr I have now debugged the part a and the problem is with the new approach to skip updates of maven in target directories to fix possible infinite build recursion, because of this the following situation can occur:
This situation is quite hard to reproduce but might explain why it sometimes works and sometimes is missing some delta, that is in such cases where not a full build is performed and only generated items are changing inside an output folder! I could reproduce this by the following
Now one can place a file inside A similar problem can arise if one runs a build outside of m2eclipse or would change such a file manually (as we done here), but at least a change in the project watched directories should trigger the build. Interestingly, changing a java source file seem to trigger a full build in this case what copies the resources again immediately! |
Beta Was this translation helpful? Give feedback.
-
I have created https://issues.apache.org/jira/browse/MSHARED-1285 for now, but for sure this will take some time to become broadly adopted (if fixed!) so one probably need some more mitigations in the meantime. The problem is that these parts are quite deep into the m2e internals and involve some public API we can not easily change here without breaking things. |
Beta Was this translation helpful? Give feedback.
-
A quick feedback about disabling « Automatically update projects configuration ». It is not a reliable workaround for this issue. |
Beta Was this translation helpful? Give feedback.
-
@fmarot thanks for mentioning that running This is probably the most annoying bug in the last few months.... @laeubi I don't know if you have noticed - one of the two checks on your PR failed:
|
Beta Was this translation helpful? Give feedback.
-
@laeubi is there a custom build one could install to fix this issue while waiting for upstream to make the necessary releases? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a large multi-modules Maven project imported in Eclipse (100+ modules) and face a problem: sometimes, quite often but randomly, the resources disappear from target/classes. So I have to run manually mvn resources:resources (either on the command-line or in Eclipse). Then I can run my tests, or debug my app and sometimes if I re-run the tests/app then it fails because the resources have mysteriously been deleted. The .class are still compiled in each module's target/classes but resources are gone.
I faced this problem on 2023-03, upgraded m2e, upgraded to 2023-06 but the problem is still there and quite annoying.
Is it a config problem ? Any idea what in my poms or my config could cause the problem ?
I think this kind of problem has been seen and solved before but it is still there for me.
Regards
Beta Was this translation helpful? Give feedback.
All reactions