Add versions.skip parameter to skip plugin execution by jorgheymans · Pull Request #1328 · mojohaus/versions (original) (raw)

@jorgheymans

Introduces a new parameter 'versions.skip' that allows users to skip the execution of the versions plugin. When set to true, the plugin logs "Skipping execution" and exits immediately.

The skip check is implemented in AbstractVersionsUpdaterMojo and all mojos that override execute(), ensuring it works correctly across all plugin goals.

Usage: mvn versions:set -DnewVersion=1.0.0 -Dversions.skip=true

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Add comprehensive tests for versions.skip parameter

Tests verify that the skip parameter works correctly across different types of mojos:

Each test verifies:

  1. The log contains "Skipping execution"
  2. The mojo doesn't perform its normal operations when skip=true

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Add IT's

remove