Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pom] prefer central repo for releases; limit apache-snapshots to snapshots #4707

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

adoroszlai
Copy link
Contributor

Purpose

  • Avoid trying to download release artifacts from Apache snapshot repo.
  • Add central repo to ensure it's preferred to repository.apache.org when downloading release artifacts.

Tests

Uncommented the <repositories> section, and built locally.

$ mvn -DskipTests clean package
...
[INFO] ------------------< org.apache.paimon:paimon-parent >-------------------
[INFO] Building Paimon : 1.0-SNAPSHOT                                    [1/52]
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/com/diffplug/spotless/spotless-maven-plugin/2.13.0/spotless-maven-plugin-2.13.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/diffplug/spotless/spotless-maven-plugin/2.13.0/spotless-maven-plugin-2.13.0.pom (3.2 kB at 17 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/diffplug/spotless/spotless-maven-plugin/2.13.0/spotless-maven-plugin-2.13.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/com/diffplug/spotless/spotless-maven-plugin/2.13.0/spotless-maven-plugin-2.13.0.jar (65 kB at 204 kB/s)
...
[INFO] Reactor Summary for Paimon : 1.0-SNAPSHOT:
...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17:29 min

@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit 76a2f46 into apache:master Dec 17, 2024
11 of 12 checks passed
@adoroszlai adoroszlai deleted the snapshots-only branch December 17, 2024 06:25
@adoroszlai
Copy link
Contributor Author

Thanks @JingsongLi for reviewing and merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants