Atlassian SDK Could not collect dependencies for project

I am using Atlassian SDK 9.1.1 to build plugin and it is showing these errors:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.931 s
[INFO] Finished at: 2024-11-12T13:58:48+11:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project my-addon: Could not collect dependencies for project com.my:addon:atlassian-plugin:3.0.29
[ERROR] Failed to read artifact descriptor for jta:jta:jar:1.0.1
[ERROR]         Caused by: The following artifacts could not be resolved: jta:jta:pom:1.0.1 (present, but unavailable): Could not transfer artifact jta:jta:pom:1.0.1 from/to typesafe (https://repo.typesafe.com/typesafe/releases/): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[ERROR] Failed to read artifact descriptor for com.octo.captcha:jcaptcha:jar:2.0-alpha-1
[ERROR]         Caused by: The following artifacts could not be resolved: com.octo.captcha:jcaptcha:pom:2.0-alpha-1 (present, but unavailable): Could not transfer artifact com.octo.captcha:jcaptcha:pom:2.0-alpha-1 from/to typesafe (https://repo.typesafe.com/typesafe/releases/): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[ERROR] Failed to read artifact descriptor for com.octo.captcha:jcaptcha-api:jar:2.0-alpha-1
[ERROR]         Caused by: The following artifacts could not be resolved: com.octo.captcha:jcaptcha-api:pom:2.0-alpha-1 (present, but unavailable): Could not transfer artifact com.octo.captcha:jcaptcha-api:pom:2.0-alpha-1 from/to typesafe (https://repo.typesafe.com/typesafe/releases/): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[ERROR] Failed to read artifact descriptor for jndi:jndi:jar:1.2.1
[ERROR]         Caused by: The following artifacts could not be resolved: jndi:jndi:pom:1.2.1 (present, but unavailable): Could not transfer artifact jndi:jndi:pom:1.2.1 from/to typesafe (https://repo.typesafe.com/typesafe/releases/): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I see this similar post but not exactly the same error and the workaround didn’t work.

Is this a known issue and has it been fixed?

Thanks

1 Like

Unfortunately, we have noticed similarities since Monday (2024-11-18).
Could not transfer artifact com.octo.captcha:jcaptcha:pom:2.0-alpha-1

1 Like

Hey @yhua and @FabienPenchenat ,

Please note that those dependencies are restricted and need to be manually downloaded as per instructions here:
https://developer.atlassian.com/server/jira/platform/building-jira-from-source/#third-party-libraries

Regarding jcaptcha, the missing pom file has been updated, that should help with the dependency resolution.

1 Like