When I try to build an app against Confluence 8.5.0 I’m getting the following error:
Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in atlassian-public (https://packages.atlassian.com/mvn/maven-external/)
I was notified of your intention to move away from the old packages.atlassian.com/mvn/maven-external URL and that I should try packages.atlassian.com/mvn/maven-atlassian-all/
Unfortunately, that didn’t work:
Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>xmlrpc/xmlrpc/2.0 xmlrpc61.1 sbfix/xmlrpc-2.0 xmlrpc61.1 sbfix.jar</Key>
<RequestId>XJMZXCZ9ATXX370P</RequestId>
<HostId>Bit0/YZZPiZBSvKkNZMOgl2l60RP03JgGXy+qFkwLxaKDMagCt6JTPbK/66BHnxww3/eszyH8lA=</HostId>
</Error>
Could it be that you are being a bit proactive in removing packages from your public repos?
Good to chat to you again. There have been some recent changes to packages.atlassian.com and I’d like to check you’ve seen these updates. Can you confirm you’re following the information in both these documents
But I can’t tell what version of the AtlassianSDK it is. If it’s the latest version (9.1.1), this should work. I don’t think 9.0.2 is covered by the changes.
That workaround does fix the JNDI issue indeed. Not necessary pleased that it is required, but at least now we are one step further.
Unfortunately, now that the JNDI issue is resolved, we still have the xmlrpc dependency issue. @jrichards you said this would be fixed by using the latest SDK… but it isn’t
[ERROR] dependency: xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix (provided)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in maven-central (https://repo1.maven.org/maven2/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in atlassian-proxy (https://packages.atlassian.com/artifactory/maven-atlassian-all/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in terracotta (https://repo.terracotta.org/maven2/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in gradle-plugins (https://plugins.gradle.org/m2/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in mulesoft (https://maven.anypoint.mulesoft.com/api/v1/maven/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in aspose (https://releases.aspose.com/java/repo/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in clojars (https://clojars.org/repo/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in sonatype forge (https://repository.sonatype.org/content/repositories/forge/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in mulesoft-releases (https://repository.mulesoft.org/releases/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in mulesoft-public (https://repository.mulesoft.org/nexus/content/repositories/public/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in typesafe (https://repo.typesafe.com/typesafe/releases/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in jenkins-releases (https://repo.jenkins-ci.org/releases/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in atlassian (https://packages.atlassian.com/mvn/maven-atlassian-all/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in atlassian-3rdparty (https://packages.atlassian.com/maven-3rdparty/)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in jitpack.io (https://jitpack.io)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in repository.jboss.org-public (https://repository.jboss.org/nexus/content/groups/public)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in CollabSoft Maven Repository (https://repository.collabsoft.net/releases)
[ERROR] Could not find artifact xmlrpc:xmlrpc:jar:2.0+xmlrpc61.1+sbfix in central (https://repo.maven.apache.org/maven2)
Digging a little deeper, I’ve uploaded the specific file to our own Maven repository also running on S3. It seems that there is an issue with the file name:
But it would be great if Atlassian fixes this issue by either doing something with their S3 configuration or by adding some documentation on how to enable URL encoding in Maven for dependency resolution from remote repositories (CC: @jrichards)
While you are at it @jrichards, you may also want to fix the issue of
[WARNING] Could not validate integrity of download from https://packages.atlassian.com/artifactory/maven-atlassian-all/com/atlassian/platform/dependencies/platform-internal-api/maven-metadata.xml
org.eclipse.aether.transfer.ChecksumFailureException: Checksum validation failed, no checksums available
Basically, Atlassian should get her shit together with regard to dependency management, because this is becoming ridiculous.
They’ve fixed some of the checksum failures by now. At least, we’re able to download the jira-webapp with checksums again, still doesn’t work for another one:
08-Nov-2024 08:13:22 [ERROR] Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.17.1:integration-test (default-integration-test) on project backbone-issue-sync: Unable to find/resolve artifact. The following artifacts could not be resolved: org.apache.tomcat:apache-tomcat:zip:windows-x64:9.0.95-atlassian-hosted (absent): Could not transfer artifact org.apache.tomcat:apache-tomcat:zip:windows-x64:9.0.95-atlassian-hosted from/to atlassian-public (https://maven.atlassian.com/repository/public): Checksum validation failed, no checksums available -> [Help 1]
And also still not for yours. I’ll report yours also in our ECOHELP ticket.
I feel you… we are just trying to roll out a bugfix release for an app. The fix is like 2 lines, but I’m fighting against this infrastructure mess for hours now.
It would be so nice to have a consistent development environment again - documentation that actually matches reality, repositories that are not constantly shifted around etc. I understand the need for change, but maybe can we be less proactive with breaking stuff until the new stuff actually works?
After creating a support ticket, the issue has been fixed by Atlassian. Guess they had some misconfiguration or hickups in there infrastructure. Sadly support didn’t provide any information about what was actually wrong.
Because the actual fix from Atlassian took some time, we used following settings.xml as a workaround
I spoke with the team and the Windows installer isn’t being maintained any more. You can use the tarball to install the latest. You can also configure your local mvn to use the settings.xml as noted above, and then use just maven to do things like mvn run:jira etc.