GoogleCloudPlatform / artifact-registry-maven-tools

Apache License 2.0
22 stars 23 forks source link

Slowness in connecting public maven repo #78

Open yolocs opened 1 year ago

yolocs commented 1 year ago

We have a publicly readable AR maven repo.

In a project's pom.xml, we added the maven wagon so we can publish the maven packages (requires authentication) to AR. Meanwhile, the same pom.xml also depends on a maven package in the same maven repo from another project. When we run unit test, we skipped gcloud authentication because the maven repo is publicly readable. But we realized that it extends the unit test duration by 3~5x. Could you take a look?

p.s. We temporarily mitigated the issue by adding gcloud authentication before the unit test and the test duration came back to normal.