Separate package-info.java compilation to avoid spurious rebuilds
Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/324a36d5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/324a36d5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/324a36d5 Branch: refs/heads/apex-runner Commit: 324a36d53b1542199eb5fc6cfa1a78226bf9903f Parents: 3fd3951 Author: Kenneth Knowles <k...@google.com> Authored: Thu Oct 27 11:54:14 2016 -0700 Committer: Kenneth Knowles <k...@google.com> Committed: Thu Oct 27 14:55:46 2016 -0700 ---------------------------------------------------------------------- pom.xml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/324a36d5/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 94d7b4b..01de58e 100644 --- a/pom.xml +++ b/pom.xml @@ -831,6 +831,45 @@ <!-- Another temp override, to be set to true in due course. --> <showDeprecation>false</showDeprecation> </configuration> + <executions> + + <!-- + Exclude package-info.java from main compilation to work around + https://jira.codehaus.org/browse/MCOMPILER-205 + --> + <execution> + <id>default-compile</id> + <goals> + <goal>compile</goal> + </goals> + <phase>compile</phase> + <configuration> + <excludes> + <exclude>**/package-info.java</exclude> + </excludes> + </configuration> + </execution> + + <!-- + Compile just package-info.java to avoid + https://bugs.openjdk.java.net/browse/JDK-8022161 + --> + <execution> + <id>compile-package-info</id> + <goals> + <goal>compile</goal> + </goals> + <phase>compile</phase> + <configuration> + <compilerArgs> + <arg>-Xpkginfo:always</arg> + </compilerArgs> + <includes> + <include>**/package-info.java</include> + </includes> + </configuration> + </execution> + </executions> </plugin> <plugin>