• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Maven | Forbidden API Checker
  1. Forbidden API Plugin (3.4)
  2. The goal help
  3. Example

  1. Forbidden API Plugin (3.4)
    Allows to parse Java byte code to find invocations of method/class/field signatures and fail build.
    Maven repository: https://mvnrepository.com/artifact/de.thetaphi/forbiddenapis/3.4
    Home Page: https://github.com/policeman-tools/forbidden-apis

    Plugin coordinates:
    • Group Id: de.thetaphi
    • Artifact Id: forbiddenapis

    Goal Prefix: forbiddenapis

    The forbiddenapis plugin has the following goals:
    • help: Display help information on forbiddenapis.

    • check: Check if no project generated class files (compile scope) contain calls to forbidden APIs from the project classpath and a list of API signatures (either inline or as pointer to files or bundled signatures).

    • testCheck: Check if no project generated class files (test scope) contain calls to forbidden APIs from the project classpath and a list of API signatures (either inline or as pointer to files or bundled signatures).
  2. The goal help
    The goal help gives general information about the forbiddenapis plugin and lists its goals.
    The parameter detail gives detailed information about the parameters of the goals of the forbiddenapis plugin.

    You can also use the goal describe of the help plugin to get information about the forbiddenapis plugin and lists its goals:

    The parameter goal gives information about a goal of the forbiddenapis plugin:
  3. Example
    Maven Usage: https://github.com/policeman-tools/forbidden-apis/wiki/MavenUsage
    Signatures Files: https://github.com/policeman-tools/forbidden-apis/tree/main/src/main/resources/de/thetaphi/forbiddenapis/signatures
    Bundled Signatures: https://github.com/policeman-tools/forbidden-apis/wiki/BundledSignatures

    Adjust your pom file with the following:
© 2025  mtitek