Class ScaffoldRevertMojo

java.lang.Object
network.ike.plugin.support.AbstractGoalMojo
network.ike.plugin.ScaffoldRevertMojo
All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo

@Mojo(name="scaffold-revert", projectRequired=false, aggregator=true) public class ScaffoldRevertMojo extends AbstractGoalMojo
Undo a previous ike:scaffold-publish.

Reads the scaffold manifest to learn the tier policy for every entry, then for each entry recorded in the appropriate lockfile:

  • tool-owned / tracked — delete the file if its on-disk hash still matches what was applied; otherwise leave it and report a skip.
  • tracked-block and model-managed — not yet implemented; the goal reports these as skipped so the user can clean them up manually.

Conservative by design — anything the user may have touched is left alone. The updated lockfiles (with reverted entries removed) are written back to disk.

Runs with projectRequired = false so it can clear user-scope state on a fresh machine.

Modelled after ModelAdapters + TierHandlers registries; uses ScaffoldReverter under the hood. Template resolution is not needed for revert (only manifest + lockfile + disk), but the manifest must still be available so scope and tier information are known per entry.

See Also:
  • Constructor Details

    • ScaffoldRevertMojo

      public ScaffoldRevertMojo()
      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