Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Currently, maven incremental compilation does not detect dependency change.
Sample scenario:
- Project A depends on Project B.
- Project B is recompiled.
- Project A should detect this change and recompile. (which is not the case currently)
- If B recompilation includes changing an interface, we expect A to recompile and fail accordingly.
A fix was already performed on maven-compiler-plugin, but it was never merged.
https://issues.apache.org/jira/browse/MCOMPILER-278
After recent discussion with rfscholte, he decided that the fix should rather be in maven-shared-incremental. I have performed the implementation for the fix in maven-shared-incremental, and I will be forking the project for that.
PS: The change include minor change in the maven-compiler-plugin for it to take effect.
Attachments
Issue Links
- is fixed by
-
MCOMPILER-474 Dependent modules are not recompiled if we run the "package" goal
- Closed
- relates to
-
MCOMPILER-278 Incremental build does not track inter-module dependencies.
- Closed
-
MCOMPILER-368 package-info.java always triggers recompilation of module
- Closed
- links to