Environment:
sbt version : 1.2.8
jira-rest-java-client-core version : 5.1.0
Steps to reproduce:
1. Create a new sbt project.
2. Add jira-rest-java-client-core as a dependency
https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-core/5.1.0
3. Compile the project
Result:
The dependency fails to download with the following error:
[info] Updating ...
[warn] Detected merged artifact: [FAILED ] com.atlassian.sal#sal-api;3.0.7!sal-api.atlassian-plugin: (0ms).
[warn] ==== local: tried
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/atlassian/sal/sal-api/3.0.7/sal-api-3.0.7.atlassian-plugin
[warn] ==== local-preloaded-ivy: tried
[warn] /Users/sanjeev.pande/.sbt/preloaded/com.atlassian.sal/sal-api/3.0.7/atlassian-plugins/sal-api.atlassian-plugin
[warn] ==== local-preloaded: tried
[warn] file:////Users/sanjeev.pande/.sbt/preloaded/com/atlassian/sal/sal-api/3.0.7/sal-api-3.0.7.atlassian-plugin
[warn] ==== Jira repository: tried
[warn] https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/sal/sal-api/3.0.7/sal-api-3.0.7.atlassian-plugin
[warn] ==== Atlassian's Maven Public Repository: tried
[warn] https://maven.atlassian.com/repository/public/com/atlassian/sal/sal-api/3.0.7/sal-api-3.0.7.atlassian-plugin
[warn] ==== Atlassian's Maven Public Repository1: tried
[warn] https://maven.atlassian.com/content/groups/public/com/atlassian/sal/sal-api/3.0.7/sal-api-3.0.7.atlassian-plugin
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.atlassian.sal#sal-api;3.0.7!sal-api.atlassian-plugin
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] sbt.librarymanagement.ResolveException: download failed: com.atlassian.sal#sal-api;3.0.7!sal-api.atlassian-plugin
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:332)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:208)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:239)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:238)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:193)
[error] at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:45)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:93)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:106)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:106)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:89)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:120)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2561)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)
[error] at sbt.std.Transform$$anon$4.work(System.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:278)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (update) sbt.librarymanagement.ResolveException: download failed: com.atlassian.sal#sal-api;3.0.7!sal-api.atlassian-plugin
I managed to fix it by adding notTransitive() attribute in the build.sbt
"com.atlassian.jira" % "jira-rest-java-client-core" % "5.1.0" notTransitive(),
and by adding the transitive dependencies manually.
By manually I mean; the jars that were failing to download, I either added them separately with the correct version in the build.sbt or I downloaded them by creating a spring-boot project and kept it in the lib folder or inhouse repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just added the jars that were listed in the error log. Other dependencies were downloaded by itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still have the same issue for
jira-rest-java-client-core version : 5.2.0
on
sbt version : 1.5.2
In addition
"com.atlassian.platform" % "platform" % "3.1.7"
is listed as a dependency but not available anymore.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I solved the problem adding
resolvers += "Atlassian Public" at "https://maven.atlassian.com/repository/public/"
to the build.sbt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.