Skip to content

Commit

Permalink
Fix ErrorProne related build error
Browse files Browse the repository at this point in the history
Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project exec: Fatal error compiling: The default --should-stop=ifError policy (INIT) is not supported by Error Prone, pass --should-stop=ifError=FLOW instead -> [Help 1]

<arg>--should-stop=ifError=FLOW</arg>

does the trick, as per
https://errorprone.info/docs/installation#maven

see google/error-prone#4705
  • Loading branch information
vorburger committed Jan 4, 2025
1 parent b904ca0 commit f4f4518
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<arg>-Werror</arg>
<arg>-Xlint:all,-options</arg>
<arg>-XDcompilePolicy=simple</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-Xplugin:ErrorProne -XepAllDisabledChecksAsWarnings
-Xep:BooleanParameter:OFF -Xep:AndroidJdkLibsChecker:OFF
-Xep:Java7ApiChecker:OFF -Xep:Varifier:OFF</arg>
Expand Down

0 comments on commit f4f4518

Please sign in to comment.