You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2022/02/04 09:51:00 UTC
[jira] [Commented] (MCOMPILER-368) package-info.java always triggers recompilation of module
[ https://issues.apache.org/jira/browse/MCOMPILER-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17486923#comment-17486923 ]
Guillaume Nodet commented on MCOMPILER-368:
-------------------------------------------
It's unrelated to MSHARED-763. The actual problem is that no file is generated by default for {{package-info.java}} files that only contain some javadoc and those are later detected as stale, as if the corresponding {{package-info.class}} would have been deleted.
We need to somehow record the fact that the compiler did not produce any output for some files.
> package-info.java always triggers recompilation of module
> ---------------------------------------------------------
>
> Key: MCOMPILER-368
> URL: https://issues.apache.org/jira/browse/MCOMPILER-368
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Affects Versions: 3.8.0
> Environment: Microsoft Windows [Version 10.0.17763.194]
> Maven 3.6.0
> maven-compiler-plugin 3.8.0
> Reporter: Gili
> Priority: Major
> Attachments: testcase.zip
>
>
> # Unzip testcase
> # Run: mvn install
> # Notice that maven-compiler-plugin always claims package-info.java is stale and forces recompilation of entire module
> When package-info.java is present in large modules build times suffer noticeably.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)