Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Explicitly use Atlassian repository #239

Closed
wants to merge 1 commit into from
Closed

Conversation

basil
Copy link
Member

@basil basil commented Dec 4, 2023

See jenkins-infra/helpdesk#3842. This plugin currently depends on JCenter for Atlassian libraries, but JFrog has asked us to stop caching JCenter dependencies. Based on this page, the dependencies we need are officially published at https://packages.atlassian.com/maven-external/ so fetch them from there directly. We choose maven-external rather than maven-public because the Crowd libraries are only available in maven-external, not maven-public.

To test this, I verified that I could run mvn clean verify -DskipTests '-P!consume-incrementals,!might-produce-incrementals' in a clean Docker container (without ~/.m2) and without the JCenter cache:

diff --git a/pom.xml b/pom.xml
index 925ab62..e1076d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,18 +73,40 @@
 
     <repositories>
         <repository>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
             <id>repo.jenkins-ci.org</id>
-            <url>https://repo.jenkins-ci.org/public/</url>
+            <url>https://repo.jenkins-ci.org/releases/</url>
         </repository>
         <repository>
-            <id>maven.jenkins-ci.org</id>
-            <url>https://repo.jenkins-ci.org/releases</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+            <id>orphans</id>
+            <url>https://repo.jenkins-ci.org/artifactory/orphans/</url>
+        </repository>
         </repository>
     </repositories>
     <pluginRepositories>
         <pluginRepository>
             <id>repo.jenkins-ci.org</id>
-            <url>https://repo.jenkins-ci.org/public/</url>
+            <url>https://repo.jenkins-ci.org/releases/</url>
         </pluginRepository>
     </pluginRepositories>

Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

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

Thanks very much!

@basil
Copy link
Member Author

basil commented Dec 5, 2023

The experiment that led to the filing of this PR was flawed: jenkins-infra/helpdesk#3842 (comment)

@basil basil closed this Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants