I'm trying to include crowd rest client in my play project (scala) and added dependency in the build.sbt as below:
resolvers += "Atlassian Repository" at "https://m2proxy.atlassian.com/repository/public"
libraryDependencies ++= Seq(
jdbc,
..
..
"com.atlassian.crowd" % "crowd-integration-client-rest" % "2.7.2"
)
And depencies or build in failing with following error:
[root] $ dependencies
[info] Updating {file:/Users/ravi/code/work/src/mobile/app/}App-common...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://repo.typesafe.com/typesafe/releases/com/atlassian/crowd/crowd-integration-client-rest/2.7.2/crowd-integration-client-rest-2.7.2.jar...
[info] [SUCCESSFUL ] com.atlassian.crowd#crowd-integration-client-rest;2.7.2!crowd-integration-client-rest.jar (3957ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/com/atlassian/crowd/crowd-integration-client-common/2.7.2/crowd-integration-client-common-2.7.2.jar...
[info] [SUCCESSFUL ] com.atlassian.crowd#crowd-integration-client-common;2.7.2!crowd-integration-client-common.jar (2658ms)
[info] downloading http://repo.typesafe.com/typesafe/releases/com/atlassian/crowd/crowd-integration-api/2.7.2/crowd-integration-api-2.7.2.jar...
[info] [SUCCESSFUL ] com.atlassian.crowd#crowd-integration-api;2.7.2!crowd-integration-api.jar (2802ms)
[warn] [FAILED ] com.atlassian.security#atlassian-cookie-tools;3.2!atlassian-cookie-tools.atlassian-plugin: (0ms)
[warn] ==== local: tried
[warn] /mnt/production/play/play-latest/repository/local/com.atlassian.security/atlassian-cookie-tools/3.2/atlassian-plugins/atlassian-cookie-tools.atlassian-plugin
[warn] ==== Maven2 Local: tried
[warn] file:/Users/ravi/.m2/repository/com/atlassian/security/atlassian-cookie-tools/3.2/atlassian-cookie-tools-3.2.atlassian-plugin
[warn] ==== sonatype-oss-snapshots: tried
[warn] http://oss.sonatype.org/content/repositories/snapshots/com/atlassian/security/atlassian-cookie-tools/3.2/atlassian-cookie-tools-3.2.atlassian-plugin<br< a="">>[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/atlassian/security/atlassian-cookie-tools/3.2/atlassian-cookie-tools-3.2.atlassian-plugin<br< a="">>[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/atlassian/security/atlassian-cookie-tools/3.2/atlassian-cookie-tools-3.2.atlassian-plugin<br< a="">>[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/atlassian/security/atlassian-cookie-tools/3.2/atlassian-cookie-tools-3.2.atlassian-plugin<br< a="">>[info] downloading http://repo.typesafe.com/typesafe/releases/com/atlassian/crowd/embedded-crowd-api/2.7.2/embedded-crowd-api-2.7.2.jar...
[info] [SUCCESSFUL ] com.atlassian.crowd#embedded-crowd-api;2.7.2!embedded-crowd-api.jar (2533ms)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.atlassian.security#atlassian-cookie-tools;3.2!atlassian-cookie-tools.atlassian-plugin
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last Site-Search-common/*:update for the full output.
[error] (Site-Search-common/*:update) sbt.ResolveException: download failed: com.atlassian.security#atlassian-cookie-tools;3.2!atlassian-cookie-tools.atlassian-plugin
Cannot compute dependencies
---------------------------------------------------------------
I am not about to add the crowd clien dependency in my application. I need to do it to so that I can develop crowd based authentication.
Any help will be highly appreciated.
I tried different version of crowd like 2.6.6, 2.7.1 etc. but all them give same errors.
Regards,
Ravi
Community moderators have prevented the ability to post new answers.
This seems to be falling over because SBT thinks atlassian-cookie-tools has an artifact type of atlassian-plugin. That's correct, but what it doesn't realise (because maven-amps-plugin would tell Maven, and there's no sbt-amps-plugin) is that atlassian-plugin packaging is actually packaged as a jar.
Anyway, it looks like you can fix it by adding an explicit dependency on the jar form of atlassian-cookie-tools:
libraryDependencies ++= { // .. your other dependencies "com.atlassian.crowd" % "crowd-integration-client-rest" % "2.7.2", "com.atlassian.security" % "atlassian-cookie-tools" % "3.2" jar )
By the way, it may be prudent to use the official Atlassian maven repository instead of relying on the Typesafe mirror:
resolvers += "Atlassian Maven Repository" at "https://maven.atlassian.com/repository/public"
Thanks Caspar. I tried this and it worked. I had already added the Atlassian repository in the resolvers but sbt is downloading from Tyesafe repository and not from the Atlassian one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fair enough - glad it worked :)
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.