Class PostMutationSync
java.lang.Object
network.ike.plugin.ws.PostMutationSync
Refresh workspace state derived from POMs and on-disk siblings.
Called at the end of any goal whose effect can change which siblings
are present on disk or what their POMs declare.
Combines two independent derivations into one call:
IdeProfileSync— writes the-Pblock in.mvn/maven.configso IntelliJ activates the rightwith-*profiles for the current sibling set.YamlDepsSync— re-derives each subproject'sdepends-onedges from POM contents and rewritesworkspace.yamlwhen the graph has drifted.
Each step is idempotent — running this hook back-to-back produces no further changes. Failures in one step are logged at WARN and do not stop the other.
Triggered from: ws:add, ws:remove, ws:sync,
ws:pull, ws:commit, ws:scaffold-init,
ws:feature-finish-merge-publish,
ws:feature-finish-squash-publish,
ws:align-publish, ws:scaffold-publish
(which subsumes the retired ws:set-parent).
See IKE-Network/ike-issues#279.
-
Method Summary
-
Method Details
-
refresh
Run all post-mutation derivations against the workspace atworkspaceRoot.- Parameters:
workspaceRoot- the workspace root directorylog- plugin log for status messages
-