diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-21 13:34:58 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-21 13:34:58 +0200 |
commit | 0e172361c5535032f320e9fa009fa427d8085c2a (patch) | |
tree | def8d84841f56643dc0a0fbc19ee2a2df09f89be /vespa-documentgen-plugin/pom.xml | |
parent | 5d1a34859f619cbe2b353b49388cfe0411cd47a3 (diff) |
enable more warnings
* and add -Werror flag, disallowing warnings
* bump maven-plugin-api version to avoid evil warning
* note: -Xlint:processing would warn about
org.apache.maven.plugins.annotations.* not being "claimed",
this is not a problem it seems.
Diffstat (limited to 'vespa-documentgen-plugin/pom.xml')
-rw-r--r-- | vespa-documentgen-plugin/pom.xml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/vespa-documentgen-plugin/pom.xml b/vespa-documentgen-plugin/pom.xml index 0c5b957c14b..de6404f2ea7 100644 --- a/vespa-documentgen-plugin/pom.xml +++ b/vespa-documentgen-plugin/pom.xml @@ -35,7 +35,7 @@ <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> - <version>3.1.1</version> + <version>3.5.0</version> <scope>provided</scope> </dependency> <dependency> @@ -68,6 +68,19 @@ <updateReleaseInfo>true</updateReleaseInfo> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-Xlint:all</arg> + <arg>-Xlint:-processing</arg> + <arg>-Werror</arg> + </compilerArgs> + </configuration> + </plugin> </plugins> </build> </project> |