You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Cordes (Jira)" <ji...@apache.org> on 2019/11/04 12:09:00 UTC
[jira] [Commented] (MNG-6240) Duplicate components in plugin
extension realm when plugin depends on maven-aether-resolver
[ https://issues.apache.org/jira/browse/MNG-6240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16966602#comment-16966602 ]
Stefan Cordes commented on MNG-6240:
------------------------------------
Hi,
unfortunately with maven-3.6.2 I faced the wrong metadata:
created metadata.xml:
!maven-metadata.png!
But storage has [https://nexus.canda.com/repository/SnapshotsPurgedDaily/com/canda/mule4/dt0b35/dt0b35-mule-template-test-m4/2019.9.1-4-SNAPSHOT/dt0b35-mule-template-test-m4-2019.9.1-4-20191104.101314-4.pom]
in our nexus:
!Nexus-Storage.png!
as it was logged in the jenkins job:
!jenkins-log.png!
The word "20191104.101315-4" is not appearing anywhere in the maven output.
> Duplicate components in plugin extension realm when plugin depends on maven-aether-resolver
> -------------------------------------------------------------------------------------------
>
> Key: MNG-6240
> URL: https://issues.apache.org/jira/browse/MNG-6240
> Project: Maven
> Issue Type: Bug
> Components: Class Loading
> Affects Versions: 3.5.0
> Reporter: Guillaume Boué
> Assignee: Guillaume Boué
> Priority: Major
> Fix For: 3.5.2
>
> Attachments: Nexus-Storage.png, jenkins-log.png, maven-metadata.png
>
>
> When a plugin extension has a dependency on {{maven-aether-resolver}}, the components of this artifact are added into the plugin realm even though Maven Core already provides them. This is a regression introduced by the rename of this module to {{maven-resolver-provider}} in 3.5.0.
> This rename has kept all the classes of {{maven-aether-resolver}} for compatibility, therefore the old artifact name also needs to be exported by Maven Core in {{extension.xml}}.
> A visible side-effect of this is MDEPLOY-221, where the two {{MetadataGeneratorFactory}} components of {{maven-aether-provider}} (which are {{SnapshotMetadataGeneratorFactory}} and {{VersionsMetadataGeneratorFactory}}) are present twice as Guice bindings, and wrong metadata information is deployed as a consequence. This is due to the Flex Mojos plugin extension which depends on {{maven-aether-resolver}} used in the build.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)