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

incremental compilation broken for package-info classes

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.10.0
    • 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. ignore-package-info.patch
          1 kB
          Damjan Jovanovic
        2. only-recompile-changed.patch
          0.7 kB
          Damjan Jovanovic
        3. hello.tgz
          1 kB
          Osman İZBAT
        4. no-class-in-java-file.zip
          4 kB
          Vincent Latombe

        Issue Links

        Activity

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

          People

            gnodet Guillaume Nodet
            lfryc Lukas Fryc
            Votes:
            35 Vote for this issue
            Watchers:
            55 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                Slack

                  Issue deployment