Re: [akka-user] Akka microkernal sbt plugin: Unresolved Dependencies

975 views
Skip to first unread message

√iktor Ҡlang

unread,
Oct 15, 2012, 8:18:55 PM10/15/12
to akka...@googlegroups.com
Hi brandon,

Seems like an issue with the pom validation, I've contacted our awesome repository guy to see what's up.

Cheers,


On Tue, Oct 16, 2012 at 2:07 AM, bhudgeons <bra...@atsoft.at> wrote:
Trying to follow the instructions here:


and using this in plugins.sbt:

resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"

addSbtPlugin("com.typesafe.akka" % "akka-sbt-plugin" % "2.0.3")

Leads to this:

[info] Resolving com.typesafe.akka#akka-sbt-plugin;2.0.3 ...

[warn] module not found: com.typesafe.akka#akka-sbt-plugin;2.0.3

[warn] ==== Typesafe Repo: tried

... 
 
 
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::          UNRESOLVED DEPENDENCIES         ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.akka#akka-sbt-plugin;2.0.3: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn] Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn] com.typesafe.akka:akka-sbt-plugin:2.0.3 (sbtVersion=0.11.3, scalaVersion=2.9.1)

It looks like there may be a problem with the build artifacts here:


Incidentally, I had to struggle a bit to get even this far.  I was using sbt version 12 at first, but the plugin is only available for sbt version 12 for akka 2.1-M2.  

Thanks for your help!

Brandon

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
 
 



--
Viktor Klang

Akka Tech Lead
Typesafe - The software stack for applications that scale

Twitter: @viktorklang

Peter Vlugter

unread,
Oct 17, 2012, 7:58:21 PM10/17/12
to akka...@googlegroups.com
Try using a different repository. The underlying akka repository:

"Akka Repo" at "http://repo.akka.io/releases"

or the proxy:

"Typesafe Akka Releases" at "http://repo.typesafe.com/akka-releases"

- Peter


On 18/10/2012, at 10:39 AM, Ankur Mathur <ankur...@gmail.com> wrote:

> Any manual workarounds for this sort of thing?
>
> On Tuesday, October 16, 2012 1:35:42 AM UTC-4, bhudgeons wrote:
> Perfect! Thank you!
>
> Brandon

Ankur Mathur

unread,
Oct 17, 2012, 10:43:13 PM10/17/12
to akka...@googlegroups.com
Akka Repo worked. Thanks!

√iktor Ҡlang

unread,
Oct 18, 2012, 8:53:36 AM10/18/12
to akka...@googlegroups.com
This should be fixed now. Thanks to Joshie!

Patrik Nordwall

unread,
Mar 24, 2013, 4:17:57 AM3/24/13
to akka...@googlegroups.com
This works fine for me, in project/plugin.sbt:
addSbtPlugin("com.typesafe.akka" % "akka-sbt-plugin" % "2.1.2")

Not needed:
resolvers += "Typesafe Akka Releases" at "http://repo.typesafe.com/akka-releases"


On Sun, Mar 24, 2013 at 6:37 AM, Gary Zhao <gary...@gmail.com> wrote:
I'm encountering the same issue. Neither works for me. What's wrong here? Thanks.

resolvers += "Typesafe Akka Releases" at "http://repo.typesafe.com/akka-releases"

addSbtPlugin("com.typesafe.akka" % "akka-sbt-plugin" % "2.0")

On Monday, October 22, 2012 12:57:54 PM UTC-7, bhudgeons wrote:
FYI -- after the EC2 outage today, the typesafe repo is back online, but the akka artifacts aren't there.

Using "Akka Repo" at "http://repo.akka.io/releases/" works.

Brandon

On Thursday, October 18, 2012 1:59:53 PM UTC-5, bhudgeons wrote:
Confirmed -- this is now working with the original resolver URL as specified in the docs, and the plugin works like a charm!

Thanks so much for the fast help!

Brandon Hudgeons
@bhudgeons
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.

To post to this group, send email to akka...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Patrik Nordwall

Typesafe The software stack for applications that scale

Twitter: @patriknw

Gary Zhao

unread,
Mar 24, 2013, 12:04:05 PM3/24/13
to akka...@googlegroups.com
Thanks Patrik. It worked.


You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/MJbmcIFgZ24/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

Patrik Nordwall

unread,
Apr 3, 2013, 10:47:50 AM4/3/13
to akka...@googlegroups.com



On Wed, Apr 3, 2013 at 4:18 PM, Andrei Varanovich <dotn...@gmail.com> wrote:
Hi Gary,
// all

can you please point me to the pom file, which is used in plugin resolution? 
I cannot find anything close to 2.1.2 version of the plugin.

 

Neither I can find it build with sbt 0.13 for scala 2.10.1

any pointers?

thanks,
Andrei

Patrik Nordwall

unread,
Apr 3, 2013, 11:06:36 AM4/3/13
to akka...@googlegroups.com
Thanks for sharing!
/Patrik


On Wed, Apr 3, 2013 at 5:05 PM, Andrei Varanovich <dotn...@gmail.com> wrote:
thanks,

just in case here is what I use as a workaround for sbt 0.13

libraryDependencies += sbtPluginExtra(
    m = "com.typesafe.akka" % "akka-sbt-plugin" % "2.1.2", // Plugin module name and version
    sbtV = "0.12",    // SBT version
    scalaV = "2.9.2"    // Scala version compiled the plugin
)

Giovanni Botta

unread,
Nov 20, 2013, 11:55:49 AM11/20/13
to akka...@googlegroups.com
That didn't work for me (why are you adding a plugin to the project dependencies?). I have SBT 0.13 installed, using akka 2.3-M1 amd scala 2.10.3. I tried all the workarounds and suggestions I could find but I can't get the akka plugin to work. Is there a definitive vanilla solution?
Thanks!

Giovanni


On Wednesday, April 3, 2013 11:05:02 AM UTC-4, Andrei Varanovich wrote:
thanks,

just in case here is what I use as a workaround for sbt 0.13

libraryDependencies += sbtPluginExtra(
    m = "com.typesafe.akka" % "akka-sbt-plugin" % "2.1.2", // Plugin module name and version
    sbtV = "0.12",    // SBT version
    scalaV = "2.9.2"    // Scala version compiled the plugin
)

On Wednesday, April 3, 2013 4:47:50 PM UTC+2, Patrik Nordwall wrote:

Giovanni Botta

unread,
Nov 20, 2013, 12:39:14 PM11/20/13
to akka...@googlegroups.com
Actually I figured that part out. Now the plugin appears to be loading, i.e., I don't get an error. However, I can't run the dist command as it says "Not a valid command". I tried copying the example Build.scala as on the docs but that didn't work and now it doesn't even compile:

not found: object Keys
...

and other similar. I am new to sbt so I am pretty clueless at this point.
Any pointers?
Thanks

Giovanni

Patrik Nordwall

unread,
Nov 22, 2013, 6:04:17 AM11/22/13
to akka...@googlegroups.com
Keys should come from
import sbt.Keys._

I couldn't get it to work either, but I see a different error.

I changed sbt.version=0.13.1-RC2 in build.properties
Changed plugins.sbt to

import sbt._

import Defaults._

libraryDependencies += sbtPluginExtra(
    m = "com.typesafe.akka" % "akka-sbt-plugin" % "2.2.3", // Plugin module name and version
    sbtV = "0.12",    // SBT version
    scalaV = "2.9.2"    // Scala version compiled the plugin
)


Then it fails at startup with 
java.lang.NoClassDefFoundError: scala/reflect/Manifest$
at akka.sbt.AkkaKernelPlugin$.<init>(AkkaKernelPlugin.scala:27)
at akka.sbt.AkkaKernelPlugin$.<clinit>(AkkaKernelPlugin.scala)

Probably wrong scala version for something.






For more options, visit https://groups.google.com/groups/opt_out.



--

Patrik Nordwall
Typesafe Reactive apps on the JVM
Twitter: @patriknw

Roland Kuhn

unread,
Nov 22, 2013, 6:14:46 AM11/22/13
to akka-user
sbt 0.13 uses Scala 2.10, I think. Also, I don’t think you can load 0.12 plugins inside 0.13, can you?



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


Patrik Nordwall

unread,
Nov 22, 2013, 6:21:04 AM11/22/13
to akka...@googlegroups.com
Giovanni, perhaps you can use sbt-native-packager instead. It should provide the same dist capabilities, but is more powerful and up to date.

We have a ticket to investigate if sbt-native-packager can completely replace akka-sbt-plugin, so we are interested to hear how it works out for you.

/Patrik

Giovanni Botta

unread,
Nov 22, 2013, 10:03:09 AM11/22/13
to akka...@googlegroups.com
Quick update: I am not sure what changed but it works now.
Thanks!

Patrik Nordwall

unread,
Nov 22, 2013, 10:16:09 AM11/22/13
to akka...@googlegroups.com
On Fri, Nov 22, 2013 at 4:03 PM, Giovanni Botta <amoj...@gmail.com> wrote:
Quick update: I am not sure what changed but it works now.

That is great. Can you share what you are using?
Reply all
Reply to author
Forward
0 new messages