The Maven JDeprScan plugin is used to scan class files for uses of deprecated API elements.

Configuration of the Maven JDeprScan Plugin

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:

          <!-- configuration elements goes here -->

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.