Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8847

Modules containing package-info.java are always recompiled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.2, 1.4.1, 1.5.0
    • Fix Version/s: 1.4.3, 1.5.0
    • Component/s: Build System
    • Labels:
      None

      Description

      All modules that contain a package-info.java file (that do not contain annotations which applies to all instances in Flink) will always be recompiled by the maven-compiler-plugin.

      To detect modified files the compiler compares timestamps of the source and .class file. In the case of package-info.java no .class file is created if it doesn't contain annotations, which the compiler interprets as a missing .class file.

      We can add -Xpkginfo:always to the compiler configuration to force the generation of these files to prevent this from happening.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chesnay Chesnay Schepler
                Reporter:
                chesnay Chesnay Schepler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: