Class ExtensionsXmlReconciler
java.lang.Object
network.ike.plugin.ws.reconcile.ExtensionsXmlReconciler
- All Implemented Interfaces:
Reconciler
Keeps the managed
ike-workspace-extension entry in
.mvn/extensions.xml in lockstep with the
ike-workspace-extension.version property declared in
ike-parent (IKE-Network/ike-issues#460).
Maven 4 does not interpolate POM properties inside
.mvn/extensions.xml at extension-load time — the version
must be a literal string. So the literal is rewritten in place by
this reconciler whenever ws:scaffold-publish runs.
On a workspace that predates the managed-block convention (the
file is missing the sentinel markers and the extension entry),
the reconciler migrates it: it inserts the managed block before the
closing </extensions> tag, preserving any other entries
(e.g. wagon-ssh-external).
The extension version is read from ws-plugin.properties
(filtered at build time by Maven from the
ike-workspace-extension.version property in ike-parent).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(WorkspaceContext ctx) Apply reconciliation.detect(WorkspaceContext ctx) Inspect the workspace and report any drift this reconciler would correct.Human-readable name of the dimension this reconciler owns.The Maven property name (without the-Dprefix) that opts out of this reconciler's apply pass.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Reconciler
pinFlag
-
Constructor Details
-
ExtensionsXmlReconciler
public ExtensionsXmlReconciler()
-
-
Method Details
-
dimension
Description copied from interface:ReconcilerHuman-readable name of the dimension this reconciler owns. Used as the heading inscaffold-draftoutput.- Specified by:
dimensionin interfaceReconciler- Returns:
- the dimension label, e.g. "Denormalized YAML fields"
-
optOutFlag
Description copied from interface:ReconcilerThe Maven property name (without the-Dprefix) that opts out of this reconciler's apply pass. Setting the property to"false"skips this dimension on a givenscaffold-publishinvocation.- Specified by:
optOutFlagin interfaceReconciler- Returns:
- the opt-out flag name, e.g.
"updateFields"
-
detect
Description copied from interface:ReconcilerInspect the workspace and report any drift this reconciler would correct. Read-only — must not mutate the workspace.- Specified by:
detectin interfaceReconciler- Parameters:
ctx- the workspace context- Returns:
- drift report;
DriftReport.noDrift(String)if nothing to do
-
apply
Description copied from interface:ReconcilerApply reconciliation. Caller is responsible for checkingReconcilerOptions.isOptedOut(String)before invoking; implementations may also re-check defensively.- Specified by:
applyin interfaceReconciler- Parameters:
ctx- the workspace context
-