You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jens Bannmann (JIRA)" <ji...@apache.org> on 2018/11/03 18:57:00 UTC

[jira] [Commented] (MCOMPILER-205) maven-compiler-plugin: incremental compilation broken

    [ https://issues.apache.org/jira/browse/MCOMPILER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16674161#comment-16674161 ] 

Jens Bannmann commented on MCOMPILER-205:
-----------------------------------------

[~rfscholte], could you please clarify and expand on the following comment?
{quote}The reason is that the default java compiler is quite fast, likely much faster than analyzing per file what to do with it.
{quote}
It seems that despite that comment and my attempt at explaining everything in the SO answer [~Didier Loiseau] kindly linked, there is still confusion, as some added the following comment ("the developer" and "he" referring to [~rfscholte]):
{quote}I think you have misread the developers comment. I was scratching my head at first but I think what he meant was that the default incremental compilation provided by javac is fast. I very much doubt he meant that recompiling everything each time you make a change is preferable. You only need a project of >100 source-files to show that's nonsense.
{quote}

> maven-compiler-plugin: incremental compilation broken
> -----------------------------------------------------
>
>                 Key: MCOMPILER-205
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-205
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Lukas Fryc
>            Priority: Major
>         Attachments: hello.tgz, ignore-package-info.patch, no-class-in-java-file.zip, only-recompile-changed.patch
>
>
> When we do {{clean}} -> {{compile}} -> {{compile}}, all Java sources are re-compiled for second compilation steps:
> {code}
> [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
> ...
> {code}
> The source code of the affected project: https://github.com/richfaces/richfaces5/tree/077dcfc0a46d03d7ba9a7ac3e701a4adfb834c71



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)