Skip to content

Instantly share code, notes, and snippets.

@ohforest
Forked from sarxos/pom.xml
Created December 16, 2021 10:37
Show Gist options
  • Select an option

  • Save ohforest/7c653fe885d1e2d5c43c3529d0075731 to your computer and use it in GitHub Desktop.

Select an option

Save ohforest/7c653fe885d1e2d5c43c3529d0075731 to your computer and use it in GitHub Desktop.
CheckerFramework with Lombok and Maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.plan.bofime</groupId>
<artifactId>swim-common-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>swim-akka-testkit</artifactId>
<name>SWIM Akka Test Kit</name>
<dependencies>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
<version>2.6.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker</artifactId>
<version>2.6.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessors>
<!-- this is important, add lombok processor to the processors list -->
<annotationProcessor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</annotationProcessor>
<annotationProcessor>org.checkerframework.checker.nullness.NullnessChecker</annotationProcessor>
</annotationProcessors>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment