Class ScaffoldDraftMojo

All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo

@Mojo(name="scaffold-draft", projectRequired=false, aggregator=true) public class ScaffoldDraftMojo extends AbstractGoalMojo
Preview the changes ike:scaffold-publish would make.

Reads the scaffold manifest shipped by ike-build-standards, compares each entry to the current disk state and scaffold lockfile, and prints a per-entry summary:

  • [INSTALL] — file does not yet exist, will be created
  • [UPDATE] — file exists, will be refreshed
  • [SKIP] — file has been user-edited and will be left alone (a unified diff is included for tracked/tracked-block entries)
  • [OK] — file already matches the current template

The goal runs with projectRequired = false so it can preview user-scope changes (git hooks, ~/.m2/settings.xml) on a fresh machine. In a project it previews both scopes.

This goal never touches disk — it's safe to run anytime.

Usage:

# From inside a project (previews project + user scopes):
mvn ike:scaffold-draft -DscaffoldDir=/path/to/unpacked/scaffold

# Fresh-machine bootstrap (user scope only):
mvn ike:scaffold-draft -DscaffoldDir=/path/to/unpacked/scaffold
See Also:
  • Constructor Details

    • ScaffoldDraftMojo

      public ScaffoldDraftMojo()
      Creates this goal instance.
  • Method Details

    • runGoal

      protected GoalReportSpec runGoal() throws org.apache.maven.api.plugin.MojoException
      Specified by:
      runGoal in class AbstractGoalMojo
      Throws:
      org.apache.maven.api.plugin.MojoException