Added dependencies and plugins for NullAway example
<artifactId>velocity-engine-core</artifactId>
<version>${velocity-engine-core.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.uber.nullaway</groupId>
+ <artifactId>nullaway</artifactId>
+ <version>0.3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-javac-errorprone</artifactId>
+ <version>2.8</version>
+ </dependency>
+ <!-- override plexus-compiler-javac-errorprone's dependency on
+ Error Prone with the latest version -->
+ <dependency>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>2.1.3</version>
+ </dependency>
</dependencies>
<repositories>
<version>${aspectjweaver.version}</version>
</dependency>
</dependencies>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.5</version>
+ <configuration>
+ <compilerId>javac-with-errorprone</compilerId>
+ <forceJavacCompilerUse>true</forceJavacCompilerUse>
+ <source>1.8</source>
+ <target>1.8</target>
+ <showWarnings>true</showWarnings>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>com.uber.nullaway</groupId>
+ <artifactId>nullaway</artifactId>
+ <version>0.3.0</version>
+ </path>
+ </annotationProcessorPaths>
+ <compilerArgs>
+ <!-- NullAway will warn by default, uncomment the next line to make the build fail -->
+ <!-- <arg>-Xep:NullAway:ERROR</arg> -->
+ <arg>-XepExcludedPaths:(.*)/test/.*|(.*)/streamex/.*</arg>
+ <arg>-XepOpt:NullAway:AnnotatedPackages=com.baeldung.nullaway</arg>
+ </compilerArgs>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-compiler-javac-errorprone</artifactId>
+ <version>2.8</version>
+ </dependency>
+ <!-- override plexus-compiler-javac-errorprone's dependency on
+ Error Prone with the latest version -->
+ <dependency>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>2.1.3</version>
+ </dependency>
+ </dependencies>
</plugin>
</plugins>
<resources>
