Fork me on GitHub

PomChecker CLI

Command line tool for checking POM compliance.

  • check-bom - Checks that a POM is a minimal BOM.

  • check-maven-central - Checks that the POM complies with the rules required for uploading to Maven Central.

$ pomchecker --help
Usage: pomchecker [-hV] [COMMAND]
pomchecker
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.
Commands:
  check-bom            Checks if a POM file is a minimal BOM file
  check-maven-central  Checks if a POM complies with the rules for uploading to
                         Maven Central
$ pomchecker check-bom --help
Usage: pomchecker check-bom [-diqw] --file=<pomFile>
Checks if a POM file is a minimal BOM file
  -d, --debug            Set log level to debug.
      --file=<pomFile>   The POM file to check
  -i, --info             Set log level to info.
  -q, --quiet            Log errors only.
  -w, --warn             Set log level to warn.
$ pomchecker check-maven-central --help
Usage: pomchecker check-maven-central [-diqw] [--no-release] [--no-strict]
                                      --file=<pomFile>
Checks if a POM complies with the rules for uploading to Maven Central
  -d, --debug            Set log level to debug.
      --file=<pomFile>   The POM file to check
  -i, --info             Set log level to info.
      --no-release       Checks if version is -SNAPSHOT
      --no-strict        Checks if <repositories> and <pluginRepositories> are
                           present
  -q, --quiet            Log errors only.
  -w, --warn             Set log level to warn.