banana-rdf / banana-rdf

Banana RDF
Other
295 stars 72 forks source link

sbt eclipse-error #245

Open Pe1er opened 9 years ago

Pe1er commented 9 years ago

Hi,

Im trying to build the project files for eclipse but I get the following error.

I would really appreciate your help,

Thanks Peter

[error] ntriples_common_jvm/:update) sbt.ResolveException: unresolved dependency: org.w3#banana-rdf_2.10;0.8.1-SNAPSHOT: not found [info] Updating {file:/home/peter/Documents/dis/banana-rdf-series-0.8.x/}ntriples_common_jvm... [info] Resolving org.w3#banana-rdf_2.10;0.8.1-SNAPSHOT ... [warn] module not found: org.w3#banana-rdf_2.10;0.8.1-SNAPSHOT [warn] ==== local: tried [warn] /home/peter/.ivy2/local/org.w3/banana-rdf_2.10/0.8.1-SNAPSHOT/ivys/ivy.xml [warn] ==== activator-launcher-local: tried [warn] /doesnotexist/repository/org.w3/banana-rdf_2.10/0.8.1-SNAPSHOT/ivys/ivy.xml [warn] ==== activator-local: tried [warn] /home/peter/Downloads/activator-1.3.2/repository/org.w3/banana-rdf_2.10/0.8.1-SNAPSHOT/ivys/ivy.xml [warn] ==== public: tried [warn] https://repo1.maven.org/maven2/org/w3/banana-rdf_2.10/0.8.1-SNAPSHOT/banana-rdf_2.10-0.8.1-SNAPSHOT.pom [warn] ==== typesafe-releases: tried [warn] http://repo.typesafe.com/typesafe/releases/org/w3/banana-rdf_2.10/0.8.1-SNAPSHOT/banana-rdf_2.10-0.8.1-SNAPSHOT.pom [warn] ==== typesafe-ivy-releasez: tried [warn] http://repo.typesafe.com/typesafe/ivy-releases/org.w3/banana-rdf_2.10/0.8.1-SNAPSHOT/ivys/ivy.xml [info] Resolving org.fusesource.jansi#jansi;1.4 ... [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.w3#banana-rdf_2.10;0.8.1-SNAPSHOT: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: Unresolved dependencies path: [warn] org.w3:banana-rdf_2.10:0.8.1-SNAPSHOT [warn] +- ntriples_common_jvm:ntriples_common_jvm_2.10:0.8.1-SNAPSHOT sbt.ResolveException: unresolved dependency: org.w3#banana-rdf_2.10;0.8.1-SNAPSHOT: not found at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:278) at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:175) at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:157) at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:151) at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:151) at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:128) at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:56) at sbt.IvySbt$$anon$4.call(Ivy.scala:64) at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93) at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78) at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97) at xsbt.boot.Using$.withResource(Using.scala:10) at xsbt.boot.Using$.apply(Using.scala:9) at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58) at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48) at xsbt.boot.Locks$.apply0(Locks.scala:31) at xsbt.boot.Locks$.apply(Locks.scala:28) at sbt.IvySbt.withDefaultLogger(Ivy.scala:64) at sbt.IvySbt.withIvy(Ivy.scala:123) at sbt.IvySbt.withIvy(Ivy.scala:120) at sbt.IvySbt$Module.withModule(Ivy.scala:151) at sbt.IvyActions$.updateEither(IvyActions.scala:157) at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1318) at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1315) at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$85.apply(Defaults.scala:1345) at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$85.apply(Defaults.scala:1343) at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35) at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1348) at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1342) at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45) at sbt.Classpaths$.cachedUpdate(Defaults.scala:1360) at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1300) at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1275) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) at sbt.std.Transform$$anon$4.work(System.scala:63) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) at sbt.Execute.work(Execute.scala:235) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159) at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) [error](ntriples_common_jvm/:update) sbt.ResolveException: unresolved dependency: org.w3#banana-rdf_2.10;0.8.1-SNAPSHOT: not found [error] Could not create Eclipse project files: [error] Error evaluating task 'scalacOptions': error [error] Error evaluating task 'externalDependencyClasspath': error [error] Error evaluating task 'scalacOptions': error [error] Error evaluating task 'externalDependencyClasspath': error [error] Error evaluating task 'scalacOptions': error [error] Error evaluating task 'externalDependencyClasspath': error [error] Error evaluating task 'scalacOptions': error [error] Error evaluating task 'externalDependencyClasspath': error [error] Error evaluating task 'scalacOptions': error [error] Error evaluating task 'externalDependencyClasspath': error [error] Error evaluating task 'scalacOptions': error [error] Error evaluating task 'externalDependencyClasspath': error peter@ubuntu:~/Documents/dis/banana-rdf-series-0.8.x$

ghost commented 9 years ago

@Pe1er Issue replicated.

As a workaround, to try and get you going asap, please can you try:

sbt ++2.11.5 eclipse

And let us know if that helps for the short term (There are still some warnings, but the project files were created and usable for me)

ghost commented 9 years ago

@betehess @bblfish For the benefit of eclipse users, I wonder if it's worth adding a "run sbt eclipse" as part of the release script?

betehess commented 9 years ago

I'd guess the problem is related to setting EclipseKeys.useProjectId := true (see http://www.scala-js.org/api/sbt-scalajs/0.6.1/#org.scalajs.sbtplugin.cross.CrossProject).

For the benefit of eclipse users, I wonder if it's worth adding a "run sbt eclipse" as part of the release script?

-1. Being able to release and being able to build the project in your favourite IDE are two different things. No need to add new dependencies and make everything more complex.

betehess commented 9 years ago

@InTheNow was proposing to check for sbt eclipse as part of the release checks.

but same "idea" can be used to test "example projects" after a release let me find the docs..... ok - the thing that does all this is the "scripted test framework" that is part of sbt itself here is a nice overview a nice example is the sbt-web release script note the runScripted part to implement all this just for eclipse may be OTT given our resources, but combined with, say, building an example project based on a local release, might be but the general idea is that you have a real project in a subdir, with its own build files - and that is where the eclipse dep goes. This also, as may be more obvious now, as why I was suggesting that the example projects should be "part of" the b-rdf project

Pe1er commented 9 years ago

sbt ++2.11.5 eclipse

Thanks, this one worked.