Skip to content

[MSHARED-763] Include a dependency change detection. #38

Description

@jira-importer

Liwae Lamaa opened MSHARED-763 and commented

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 Robert Scholte, 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.


Issue Links:

  • MCOMPILER-474 Dependent modules are not recompiled if we run the "package" goal
    ("is fixed by")

  • MCOMPILER-278 Incremental build does not track inter-module dependencies.

  • MCOMPILER-368 package-info.java always triggers recompilation of module

Remote Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions