playframework - Play cannot resolve org.alfresco:alfresco-web-service-client dependency -
i new play framework , have application need access alfresco. build.scala
file
object applicationbuild extends build { val appname = "librarian" val appversion = "1.0-snapshot" val appdependencies = seq( javacore, javajdbc, javaebean, "org.alfresco" % "alfresco-web-service-client" % "4.2.c" ) val main = play.project(appname, appversion, appdependencies).settings( lessentrypoints <<= basedirectory(_ / "app" / "assets" / "stylesheets" ** "main.less"), resolvers += "alfresco repository" @ "http://maven.alfresco.com/nexus/content/groups/public" ) }
when run play compile
not resolve alfresco dependency , gives following error.
[info] loading project definition d:\projects\play\librarian\project [info] set current project librarian (in build file:/d:/projects/play/librarian/) [info] updating {file:/d:/projects/play/librarian/}librarian... [warn] module not found: org.alfresco#alfresco-web-service-client;4.2.c [warn] ==== local: tried [warn] d:\java\play-2.1.1\repository\local\org.alfresco\alfresco-web-service-client\4.2.c\ivys\ivy.xml [warn] ==== typesafe releases repository: tried [warn] http://repo.typesafe.com/typesafe/releases/org/alfresco/alfresco-web-service-client/4.2.c/alfresco-web-service-client-4.2.c.pom [warn] ==== typesafe snapshots repository: tried [warn] http://repo.typesafe.com/typesafe/snapshots/org/alfresco/alfresco-web-service-client/4.2.c/alfresco-web-service-client-4.2.c.pom [warn] ==== alfresco repository: tried [warn] http://maven.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-web-service-client/4.2.c/alfresco-web-service-client-4.2.c.pom [warn] ==== public: tried [warn] http://repo1.maven.org/maven2/org/alfresco/alfresco-web-service-client/4.2.c/alfresco-web-service-client-4.2.c.pom [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: unresolved dependencies :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.alfresco#alfresco-web-service-client;4.2.c: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: sbt.resolveexception: unresolved dependency: org.alfresco#alfresco-web-service-client;4.2.c: not found @ sbt.ivyactions$.sbt$ivyactions$$resolve(ivyactions.scala:214) @ sbt.ivyactions$$anonfun$update$1.apply(ivyactions.scala:122) @ sbt.ivyactions$$anonfun$update$1.apply(ivyactions.scala:121) @ sbt.ivysbt$module$$anonfun$withmodule$1.apply(ivy.scala:114) @ sbt.ivysbt$module$$anonfun$withmodule$1.apply(ivy.scala:114) @ sbt.ivysbt$$anonfun$withivy$1.apply(ivy.scala:102) @ sbt.ivysbt.liftedtree1$1(ivy.scala:49) @ sbt.ivysbt.action$1(ivy.scala:49) @ sbt.ivysbt$$anon$3.call(ivy.scala:58) @ xsbt.boot.locks$globallock.withchannel$1(locks.scala:75) @ xsbt.boot.locks$globallock.withchannelretries$1(locks.scala:58) @ xsbt.boot.locks$globallock$$anonfun$withfilelock$1.apply(locks.scala:79) @ xsbt.boot.using$.withresource(using.scala:11) @ xsbt.boot.using$.apply(using.scala:10) @ xsbt.boot.locks$globallock.liftedtree1$1(locks.scala:51) @ xsbt.boot.locks$globallock.withlock(locks.scala:51) @ xsbt.boot.locks$.apply0(locks.scala:30) @ xsbt.boot.locks$.apply(locks.scala:27) @ sbt.ivysbt.withdefaultlogger(ivy.scala:58) @ sbt.ivysbt.withivy(ivy.scala:99) @ sbt.ivysbt.withivy(ivy.scala:95) @ sbt.ivysbt$module.withmodule(ivy.scala:114) @ sbt.ivyactions$.update(ivyactions.scala:121) @ sbt.classpaths$$anonfun$work$1$1.apply(defaults.scala:951) @ sbt.classpaths$$anonfun$work$1$1.apply(defaults.scala:949) @ sbt.classpaths$$anonfun$dowork$1$1$$anonfun$54.apply(defaults.scala:972) @ sbt.classpaths$$anonfun$dowork$1$1$$anonfun$54.apply(defaults.scala:970) @ sbt.tracked$$anonfun$lastoutput$1.apply(tracked.scala:35) @ sbt.classpaths$$anonfun$dowork$1$1.apply(defaults.scala:974) @ sbt.classpaths$$anonfun$dowork$1$1.apply(defaults.scala:969) @ sbt.tracked$$anonfun$inputchanged$1.apply(tracked.scala:45) @ sbt.classpaths$.cachedupdate(defaults.scala:977) @ sbt.classpaths$$anonfun$45.apply(defaults.scala:856) @ sbt.classpaths$$anonfun$45.apply(defaults.scala:853) @ sbt.scoped$$anonfun$hf10$1.apply(structure.scala:586) @ sbt.scoped$$anonfun$hf10$1.apply(structure.scala:586) @ scala.function1$$anonfun$compose$1.apply(function1.scala:49) @ sbt.scoped$reduced$$anonfun$combine$1$$anonfun$apply$12.apply(structure.scala:311) @ sbt.scoped$reduced$$anonfun$combine$1$$anonfun$apply$12.apply(structure.scala:311) @ sbt.$tilde$greater$$anonfun$$u2219$1.apply(typefunctions.scala:41) @ sbt.std.transform$$anon$5.work(system.scala:71) @ sbt.execute$$anonfun$submit$1$$anonfun$apply$1.apply(execute.scala:232) @ sbt.execute$$anonfun$submit$1$$anonfun$apply$1.apply(execute.scala:232) @ sbt.errorhandling$.wideconvert(errorhandling.scala:18) @ sbt.execute.work(execute.scala:238) @ sbt.execute$$anonfun$submit$1.apply(execute.scala:232) @ sbt.execute$$anonfun$submit$1.apply(execute.scala:232) @ sbt.concurrentrestrictions$$anon$4$$anonfun$1.apply(concurrentrestrictions.scala:160) @ sbt.completionservice$$anon$2.call(completionservice.scala:30) @ java.util.concurrent.futuretask$sync.innerrun(unknown source) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.executors$runnableadapter.call(unknown source) @ java.util.concurrent.futuretask$sync.innerrun(unknown source) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) [error] (*:update) sbt.resolveexception: unresolved dependency: org.alfresco#alfresco-web-service-client;4.2.c: not found [error] total time: 9 s, completed may 2, 2013 6:00:30 pm
the output shows correct repository tried reason cannot find dependency. accessing below url browser works fine:
https://maven.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-web-service-client/4.2.c/alfresco-web-service-client-4.2.c.pom
please advise.
i'm suspecting reason alfresco nexus repository has moved new location (http://artifacts.alfresco.com), had similar problem (using maven) wagon provider not follow redirect issued server when pointing old location @ http://maven.alfresco.com
you should try https://artifacts.alfresco.com/nexus/content/groups/public repository (given comments).
Comments
Post a Comment