Skip to content

Commit

Permalink
Don't fail on formatting issues with -Dverification.warn (#37)
Browse files Browse the repository at this point in the history
The `fmt-maven-plugin` doesn't have a "warn only" mode, so when
`-Dverification.warn` is active we'll completely skip the plugin instead.
  • Loading branch information
Stephan202 committed Nov 23, 2018
1 parent 44239a9 commit 2f0617a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,31 @@
</pluginManagement>
</build>
</profile>
<profile>
<!-- A counterpart to the `disallow-warnings` profile which
explicitly "tones down" plugins enabled by the `build-checks`
profile. Necessary for dealing with plugins that default to failing
the build upon encountering a violation. -->
<id>avoid-errors</id>
<activation>
<property>
<name>verification.warn</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<!-- This profile is auto-activated when performing a release. -->
<id>release</id>
Expand Down

0 comments on commit 2f0617a

Please sign in to comment.