Skip to content

Fail with "duplicate dependency" since 4.0.0-rc3 #2532

@pan3793

Description

@pan3793

Affected version

4.0.0-rc3, 4.0.0-rc4

Bug description

I face the issue when trying to upgrade Maven 4 for Spark apache/spark#51230

Maven 4.0.0-rc-2 works, but it starts to fail since RC3 with

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.1.4:install (default-install) on project spark-tags_2.13: Execution default-install of goal org.apache.maven.plugins:maven-install-plugin:3.1.4:install failed: Duplicate dependency: Dependency {groupId=org.scalatest, artifactId=scalatest_2.13, version=3.2.19, type=jar} -> [Help 1]

Looks like the issue is related to maven-shade-plugin, I created a minimal project to reproduce it, mvn clean install works with 4.0.0-rc-2 but fails with rc-3 and the rc-4

https://github.com/pan3793/SPARK-51224

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions