cstamas commented on code in PR #1481:
URL: https://github.com/apache/maven/pull/1481#discussion_r1579180966
##########
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/LocalSnapshotMetadata.java:
##########
@@ -113,6 +113,11 @@ protected void merge(Metadata recessive) {
metadata =
metadata.withVersioning(metadata.getVersioning().withSnapshotVersions(versions.values()));
+ // just carry-on as-is
+ if (recessive.getPlugins() != null &&
!recessive.getPlugins().isEmpty()) {
+ metadata = metadata.withPlugins(new
ArrayList<>(recessive.getPlugins()));
Review Comment:
The `metadata` cannot contain plugins, see how it is created:
* in ctor
* only "related" stuff filled in (Versions)
* point is that "not my stuff" should be just carried over as is
--
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]