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

Incremental build does not track inter-module dependencies.

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.1
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gnodet Guillaume Nodet
            mzav Michael Zav'yalov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment