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

Robert Scholte commented on MCOMPILER-368:
------------------------------------------

In other words you're asking to always analyze the {{package-info.java}} before 
compiling? I'm not sure it that's the right approach and would probably 
introduce a new parameter to control this. 
Actually, {{javac}} already has a way to control this: 

bq. -Xpkginfo:{always,legacy,nonempty} Specify handling of package-info 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
(v7.6.3#76005)

Reply via email to