2018-02-20 18:00:47 -05:00
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<artifactId>checker-plugin</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<name>checker-plugin</name>
|
|
|
|
<url>http://maven.apache.org</url>
|
2018-04-26 08:37:47 -04:00
|
|
|
|
|
|
|
<parent>
|
2018-04-14 04:00:05 -04:00
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<artifactId>parent-modules</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
2018-04-26 08:37:47 -04:00
|
|
|
|
2018-02-20 18:00:47 -05:00
|
|
|
<dependencies>
|
|
|
|
<!-- Annotations from the Checker Framework: nullness, interning, locking, ... -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.checkerframework</groupId>
|
|
|
|
<artifactId>checker-qual</artifactId>
|
2018-04-26 02:50:35 -04:00
|
|
|
<version>${checker-qual.version}</version>
|
2018-02-20 18:00:47 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.checkerframework</groupId>
|
|
|
|
<artifactId>checker</artifactId>
|
2018-04-26 02:50:35 -04:00
|
|
|
<version>${checker.version}</version>
|
2018-02-20 18:00:47 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.checkerframework</groupId>
|
|
|
|
<artifactId>jdk8</artifactId>
|
2018-04-26 02:50:35 -04:00
|
|
|
<version>${jdk8.version}</version>
|
2018-02-20 18:00:47 -05:00
|
|
|
</dependency>
|
|
|
|
<!-- The Type Annotations compiler. Uncomment if using annotations in comments. -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.checkerframework</groupId>
|
|
|
|
<artifactId>compiler</artifactId>
|
2018-04-26 02:50:35 -04:00
|
|
|
<version>${checkerframework.compiler.version}</version>
|
2018-02-20 18:00:47 -05:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2018-04-26 02:50:35 -04:00
|
|
|
<version>${maven-compiler-plugin.version}</version>
|
2018-02-20 18:00:47 -05:00
|
|
|
<configuration>
|
2018-07-12 03:04:54 -04:00
|
|
|
<source>${java.version}</source>
|
|
|
|
<target>${java.version}</target>
|
2018-02-20 18:00:47 -05:00
|
|
|
<!-- Uncomment the following line to use the type annotations compiler. -->
|
|
|
|
<!-- <fork>true</fork> -->
|
|
|
|
<compilerArguments>
|
|
|
|
<Xmaxerrs>10000</Xmaxerrs>
|
|
|
|
<Xmaxwarns>10000</Xmaxwarns>
|
|
|
|
</compilerArguments>
|
|
|
|
<annotationProcessors>
|
|
|
|
<!-- Add all the checkers you want to enable here -->
|
|
|
|
<annotationProcessor>org.checkerframework.checker.nullness.NullnessChecker</annotationProcessor>
|
|
|
|
<annotationProcessor>org.checkerframework.checker.interning.InterningChecker</annotationProcessor>
|
|
|
|
<annotationProcessor>org.checkerframework.checker.fenum.FenumChecker</annotationProcessor>
|
|
|
|
<annotationProcessor>org.checkerframework.checker.formatter.FormatterChecker</annotationProcessor>
|
|
|
|
<annotationProcessor>org.checkerframework.checker.regex.RegexChecker</annotationProcessor>
|
|
|
|
</annotationProcessors>
|
|
|
|
<compilerArgs>
|
|
|
|
<arg>-AprintErrorStack</arg>
|
|
|
|
|
|
|
|
<!-- location of the annotated JDK, which comes from a Maven dependency -->
|
|
|
|
<arg>-Xbootclasspath/p:${annotatedJdk}</arg>
|
|
|
|
<!--
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Uncomment the following line to use the type annotations compiler. -->
|
|
|
|
<!--
|
|
|
|
<arg>-J-Xbootclasspath/p:${typeAnnotationsJavac}</arg>
|
|
|
|
-->
|
|
|
|
<!-- Uncomment the following line to turn type-checking warnings into errors. -->
|
|
|
|
<arg>-Awarns</arg>
|
|
|
|
</compilerArgs>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2018-04-26 08:37:47 -04:00
|
|
|
|
|
|
|
<properties>
|
2018-04-26 02:50:35 -04:00
|
|
|
<!-- These properties will be set by the Maven Dependency plugin -->
|
|
|
|
<annotatedJdk>${org.checkerframework:jdk8:jar}</annotatedJdk>
|
|
|
|
<!-- Uncomment to use the Type Annotations compiler. -->
|
|
|
|
<!--
|
|
|
|
<typeAnnotationsJavac>${org.checkerframework:compiler:jar}</typeAnnotationsJavac>
|
|
|
|
-->
|
2018-04-26 08:37:47 -04:00
|
|
|
<checker-qual.version>2.3.1</checker-qual.version>
|
|
|
|
<checker.version>2.3.1</checker.version>
|
|
|
|
<jdk8.version>2.3.1</jdk8.version>
|
|
|
|
<checkerframework.compiler.version>2.3.1</checkerframework.compiler.version>
|
2018-04-26 02:50:35 -04:00
|
|
|
</properties>
|
2018-02-20 18:00:47 -05:00
|
|
|
|
|
|
|
</project>
|