Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-278

Incremental build does not track inter-module dependencies.

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      When useIncrementalCompilation=true the plugin actually assumes that this incremental compilation is supported by compiler itself (I state it because of all source files are always sent to compiler).
      But plugin provides an additional optimization - it can detect that there are no changes at all, so calling compiler can be skipped. It is especially critical for javac that does not support incremental build since 1.3.
      Unfortunately, plugin ignores claspath dependencies that are not directory, i.e. - jars, so when dependent jar is modified (in incompatible way) - our project is not re-compiled.

        Attachments

        1. maven-compiler-checksum.patch
          97 kB
          Michael Zav'yalov
        2. maven-compiler-plugin-3.1.patch
          27 kB
          Michael Zav'yalov
        3. sampleProject.zip
          4 kB
          Liwae Lamaa

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mzav Michael Zav'yalov
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: