gnodet commented on code in PR #13312:
URL: https://github.com/apache/maven/pull/13312#discussion_r4161855156
##########
impl/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java:
##########
@@ -48,13 +49,28 @@ public List<Artifact> getArtifacts() {
return artifacts;
}
+ /**
+ * Resolver node captured when the realm was created. {@code null}
when the realm was cached
+ * before the node was recorded.
+ */
+ public DependencyNode getDependencyNode() {
+ return dependencyNode;
+ }
+
private final ClassRealm realm;
private final List<Artifact> artifacts;
+ private final DependencyNode dependencyNode;
+
Review Comment:
Fixed in 07bdecc744: added a 4-arg `put(Key, ClassRealm, List<Artifact>,
DependencyNode)` default to the interface and updated the default `get` to call
it, preserving the node. `DefaultPluginRealmCache` overrides the 4-arg `put` to
store the full record.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]