The Maven JDeprScan plugin is used to scan class files for uses of deprecated API elements.
To use the Maven JDeprScan Plugin you have to configure it as an extensions which means the configuration in your pom file has to look like this:
<project> [...] <build> [...] <plugins> [...] <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jdeprscan-plugin</artifactId> <version>3.0.0-alpha-1</version> <configuration> <!-- configuration elements goes here --> </configuration> </plugin> [...] </project>
The configuration element contains the configuration for the plugin like any other Maven plugin. The different elements which can be configured for this plugin can identified by the goals documentation.
Based on the foundation of the plugin it is required to have JDK 9 installed. This means either you have it configured via JAVA_HOME which means to run the whole Maven build with JDK 9 or via Toolchains.
How to configure Maven related to Toolchains can be read in the Toolchains documentation.