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

maven-compiler-plugin: incremental compilation broken

    Details

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

      Description

      When we do clean -> compile -> compile, all Java sources are re-compiled for second compilation steps:

      [framework]$ mvn clean
      ...
      [framework]$ mvn compile
      ...
      [INFO] --- maven-compiler-plugin:3.1:compile (precompile-sources-for-cdk) @ richfaces-framework ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 915 source files to /mnt/workspace/workspaces/richfaces/richfaces5/framework/target/classes
      ...
      [framework]$ mvn compile
      ...
      [INFO] --- maven-compiler-plugin:3.1:compile (precompile-sources-for-cdk) @ richfaces-framework ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 915 source files to /mnt/workspace/workspaces/richfaces/richfaces5/framework/target/classes
      ...
      

      The source code of the affected project: https://github.com/richfaces/richfaces5/tree/077dcfc0a46d03d7ba9a7ac3e701a4adfb834c71

        Attachments

        1. only-recompile-changed.patch
          0.7 kB
          Damjan Jovanovic
        2. no-class-in-java-file.zip
          4 kB
          Vincent Latombe
        3. ignore-package-info.patch
          1 kB
          Damjan Jovanovic
        4. hello.tgz
          1 kB
          Osman ─░ZBAT

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lfryc Lukas Fryc
              • Votes:
                27 Vote for this issue
                Watchers:
                40 Start watching this issue

                Dates

                • Created:
                  Updated: