Class HealSnapshotMetadataMojo

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

@Mojo(name="heal-snapshot-metadata") public class HealSnapshotMetadataMojo extends Object implements org.apache.maven.api.plugin.Mojo
ike:heal-snapshot-metadata — before a snapshot deploy, repairs the version's maven-metadata.xml on the deploy target when its checksum sidecars no longer match it (IKE-Network/ike-issues#1160).

Nexus can leave that pair inconsistent after its background metadata rebuild (IKE-Network/ike-issues#1107), and every later deploy of the version then fails checksum validation. ike-parent binds this goal to before:deploy, so the repair happens ahead of maven-deploy-plugin and a plain install never reaches the network. See SnapshotMetadataHealer for exactly what is read and deleted.

The goal never fails the build. A repository it cannot read or repair is logged, and the deploy that follows reports the underlying problem.

  • Constructor Details

    • HealSnapshotMetadataMojo

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

    • execute

      public void execute()
      Specified by:
      execute in interface org.apache.maven.api.plugin.Mojo