Skip to content

[WIP][SPARK-51224][BUILD] Test Maven 4 - #51230

Closed
pan3793 wants to merge 4 commits into
apache:masterfrom
pan3793:mvn4
Closed

pan3793 wants to merge 4 commits into
apache:masterfrom
pan3793:mvn4

Conversation

@pan3793

@pan3793 pan3793 commented Jun 20, 2025

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

@pan3793

pan3793 commented Jun 20, 2025

Copy link
Copy Markdown
Member Author

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]

@github-actions github-actions Bot added the INFRA label Jun 23, 2025
@gnodet

gnodet commented Jun 23, 2025

Copy link
Copy Markdown

Duplicate dependency: Dependency {groupId=org.scalatest, artifactId=scalatest_2.13, version=3.2.19, type=jar}

Duplicate dependency: Dependency {groupId=org.scalatest, artifactId=scalatest_2.13, version=3.2.19, type=jar}

Duplicate dependencies are now rejected.

@pan3793

pan3793 commented Jun 23, 2025

Copy link
Copy Markdown
Member Author

@gnodet I know the literal meaning of this error, but I can not find where the duplicate dependencies come from even with -X, also haven't seen warnings on Maven 3.9.10 and 4.0.0-rc2

Comment thread pom.xml Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

address

[ERROR]   The project org.apache.spark:spark-parent_2.13:pom:4.1.0-SNAPSHOT (/Users/chengpan/Projects/apache-spark/pom.xml) has 4 errors
[ERROR]     'profiles.profile[snapshots-and-staging].repositories.repository.[ASF Staging].url' contains an unsupported expression (only expressions starting with 'project.basedir' or 'project.rootDirectory' are supported). @ org.apache.spark:spark-parent_2.13:4.1.0-SNAPSHOT, file:///Users/chengpan/Projects/apache-spark/pom.xml, line 3520, column 11
[ERROR]     'profiles.profile[snapshots-and-staging].repositories.repository.[ASF Snapshots].url' contains an unsupported expression (only expressions starting with 'project.basedir' or 'project.rootDirectory' are supported). @ org.apache.spark:spark-parent_2.13:4.1.0-SNAPSHOT, file:///Users/chengpan/Projects/apache-spark/pom.xml, line 3524, column 11
[ERROR]     'profiles.profile[snapshots-and-staging].pluginRepositories.pluginRepository.[ASF Staging].url' contains an unsupported expression (only expressions starting with 'project.basedir' or 'project.rootDirectory' are supported). @ org.apache.spark:spark-parent_2.13:4.1.0-SNAPSHOT, file:///Users/chengpan/Projects/apache-spark/pom.xml, line 3503, column 11
[ERROR]     'profiles.profile[snapshots-and-staging].pluginRepositories.pluginRepository.[ASF Snapshots].url' contains an unsupported expression (only expressions starting with 'project.basedir' or 'project.rootDirectory' are supported). @ org.apache.spark:spark-parent_2.13:4.1.0-SNAPSHOT, file:///Users/chengpan/Projects/apache-spark/pom.xml, line 3507, column 11

@pan3793 pan3793 changed the title WIP Test Maven 4 [WIP][SPARK-51224][BUILD] Test Maven 4 Jun 24, 2025
@pan3793

pan3793 commented Jun 24, 2025 •

Copy link
Copy Markdown
Member Author

@gnodet looks like the issue is related to maven-shade-plugin, I created a minimal project to reproduce it, same as this PR, mvn clean install works with 4.0.0-rc-2 but fails with rc-3 and the voting rc-4

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

@pan3793

pan3793 commented Jul 2, 2025

Copy link
Copy Markdown
Member Author

The "Duplicate dependency" is a Maven bug and has been fixed by apache/maven#2554, wait for the next version.

@pan3793
pan3793 force-pushed the mvn4 branch 2 times, most recently from cafe439 to 1fdedd3 Compare July 3, 2025 03:53
@github-actions

Copy link
Copy Markdown

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions Bot added the Stale label Jun 1, 2026
@github-actions github-actions Bot closed this Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants