[
https://issues.apache.org/jira/browse/AVRO-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778328#comment-17778328
]
Brian Cullen commented on AVRO-3889:
------------------------------------
To demonstrate what I think the fix looks like for the 1.11.x branch I have
made a pull request at [https://github.com/apache/avro/pull/2561]
The mojo has change in master so the fix will not exactly be the same but is
very similar. If this pull request is accepted for the 1.11.x branch I'd be
happy to make a similar one for master.
> Maven Plugin Always Recompiles IDL Files
> ----------------------------------------
>
> Key: AVRO-3889
> URL: https://issues.apache.org/jira/browse/AVRO-3889
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.12.0, 1.11.3, 1.11.4
> Reporter: Brian Cullen
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently both the TestIDLProtocolMojo (in version 1.11.x) and the IDLMojo in
> master fail to pass the source file into the compiler when calling the
> compile to destination method. This means that the IDL files are never
> registered as up to date and are always recompiled when the plugin is
> executed. The knock on effect of this is that the maven compiler plugin
> always thinks it needs to recompile the whole project which is not ideal.
> It does appear that this is a simple change to pass the source file into the
> method so that the up to date check can be preformed. I have made the change
> locally and to try it out. It appears to work but I don't know if I'm missing
> something that means this won't work in some cases.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)