Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Version problems - does not compile #1

Open
akauppi opened this issue Jan 5, 2014 · 2 comments
Open

Version problems - does not compile #1

akauppi opened this issue Jan 5, 2014 · 2 comments

Comments

@akauppi
Copy link

akauppi commented Jan 5, 2014

Hi,

this looks like a suitable sample I'd like to have tried and studied from. However, I face the below build problems, which did not go away with the "normal" treatments I know of (i.e. tried to compile with Scala version 2.10.3, Spray 1.1.0, Akka 2.1.4.

Is there anything you can do about it? Would be appreciated. I'd just like 'sbt run' to launch the server. I'm on OS X, Homebrew sbt 0.13-something.

$ sbt compile
[info] Set current project to auth (in build file:/Users/asko/Sources/spray-auth-example/)
[info] Updating {file:/Users/asko/Sources/spray-auth-example/}spray-auth-example...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[error] Modules were resolved with conflicting cross-version suffixes in {file:/Users/asko/Sources/spray-auth-example/}spray-auth-example:
[error] org.parboiled:parboiled-scala _2.10.0-RC5, _2.10
java.lang.RuntimeException: Conflicting cross-version suffixes in: org.parboiled:parboiled-scala
at scala.sys.package$.error(package.scala:27)
at sbt.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:47)
at sbt.ConflictWarning$.apply(ConflictWarning.scala:30)
at sbt.Classpaths$$anonfun$61.apply(Defaults.scala:1044)
at sbt.Classpaths$$anonfun$61.apply(Defaults.scala:1044)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
error Conflicting cross-version suffixes in: org.parboiled:parboiled-scala
[error] Total time: 3 s, completed 5.1.2014 18:42:25

@vega113
Copy link

vega113 commented Mar 2, 2014

Have the same issue when trying to add spray-client dependency.

@muou0213
Copy link

I've solved this problem by adding an exclude to spary-json_2.10.
"io.spray" % "spray-json_2.10" % "1.2.3" exclude("org.parboiled", "parboiled-scala_2.10"),

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants