Skip to content

Commit

Permalink
[MNG-6240] Duplicate components in plugin extension realm when plugin…
Browse files Browse the repository at this point in the history
… depends on maven-aether-resolver

Maven Core needs to export the maven-aether-provider artifact so that its components do not get added twice in plugin realm. This happens if the build uses an extension plugin depending on maven-aether-provider, before it was renamed to maven-resolver-provider
  • Loading branch information
Guillaume Boué committed Jun 14, 2017
1 parent 12d6471 commit a1fe421
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maven-core/src/main/resources/META-INF/maven/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 134,11 @@ under the License.
<exportedArtifact>org.sonatype.sisu:sisu-inject-plexus</exportedArtifact>
<exportedArtifact>org.eclipse.sisu:org.eclipse.sisu.plexus</exportedArtifact>
<exportedArtifact>org.apache.maven:maven-artifact</exportedArtifact>
<!--
| MNG-6240: Plugins might depend on maven-aether-provider <= 3.3.9 before the rename to maven-resolver-provider.
| Since backwards-compatibility was kept, Maven Core also provides this artifact.
-->
<exportedArtifact>org.apache.maven:maven-aether-provider</exportedArtifact>
<exportedArtifact>org.apache.maven:maven-resolver-provider</exportedArtifact>
<exportedArtifact>org.apache.maven:maven-artifact-manager</exportedArtifact>
<exportedArtifact>org.apache.maven:maven-compat</exportedArtifact>
Expand Down

0 comments on commit a1fe421

Please sign in to comment.