Error when using SBT for OSCAR version 3

171 views
Skip to first unread message

YU

unread,
Nov 27, 2015, 6:42:16 AM11/27/15
to OscaR

Hi,


I have have tried to set up the new OSCAR library version 3 (version 2 worked fine), but I get error messages likes the one shown below, when running "run" command inside SBT:


[warn] [FAILED     ] oscar#oscar-cp_2.11;3.0.0!oscar-cp_2.11.jar: Downloaded file size doesn't match expected Content Length for http://artifactory.info.ucl.ac.be/artifactory/libs-release/oscar/oscar-cp_2.11/3.0.0/oscar-cp_2.11-3.0.0.jar. Please retry. (198ms)


Does anybody know what to do?


Best regards.



PS: Here is the full last part of errors:


[warn] ==== jcenter: tried

[warn]   https://jcenter.bintray.com/oscar/oscar-util_2.11/3.0.0/oscar-util_2.11-3.0.0.jar

[warn] ==== public: tried

[warn]   https://repo1.maven.org/maven2/oscar/oscar-util_2.11/3.0.0/oscar-util_2.11-3.0.0.jar

[warn] ==== Oscar Snapshots: tried

[warn]   http://artifactory.info.ucl.ac.be/artifactory/libs-release/oscar/oscar-util_2.11/3.0.0/oscar-util_2.11-3.0.0.jar

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn] ::              FAILED DOWNLOADS            ::

[warn] :: ^ see resolution messages for details  ^ ::

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn] :: oscar#oscar-cp_2.11;3.0.0!oscar-cp_2.11.jar

[warn] :: oscar#oscar-cp_2.11;3.0.0!oscar-cp_2.11.jar(src)

[warn] :: oscar#oscar-algo_2.11;3.0.0!oscar-algo_2.11.jar

[warn] :: oscar#oscar-util_2.11;3.0.0!oscar-util_2.11.jar

[warn] :: oscar#oscar-visual_2.11;3.0.0!oscar-visual_2.11.jar

[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[trace] Stack trace suppressed: run last *:update for the full output.

[error] (*:update) sbt.ResolveException: download failed: oscar#oscar-cp_2.11;3.0.0!oscar-cp_2.11.jar

[error] download failed: oscar#oscar-cp_2.11;3.0.0!oscar-cp_2.11.jar(src)

[error] download failed: oscar#oscar-algo_2.11;3.0.0!oscar-algo_2.11.jar

[error] download failed: oscar#oscar-util_2.11;3.0.0!oscar-util_2.11.jar

[error] download failed: oscar#oscar-visual_2.11;3.0.0!oscar-visual_2.11.jar

[error] Total time: 8 s, completed Nov 27, 2015 12:40:23 PM

Pierre Schaus

unread,
Nov 27, 2015, 7:08:40 AM11/27/15
to oscar...@googlegroups.com
Dear Miran

I assume you use this preconfigured project:
https://www.dropbox.com/home/oscar-install/oscar-3.0.0-scala2.11?preview=oscar-cp.zip
It seems that the problem is that sbt was not available to download the oscar libs.
I just tried a fresh install and it works fine from me.
Suggestions:
- try again a "clean/update" from your sbt to download the libs.
- Maybe the maven repo was temporarily down when you tried it or there was a problem with your internet connection.
- I see other persons had similar problems due to lock files in .ivy folder:
Cheers,

Pierre

--

---
You received this message because you are subscribed to the Google Groups "OscaR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oscar-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

YU

unread,
Nov 27, 2015, 9:38:50 AM11/27/15
to OscaR
Dear Pierre,

Thank you very much for the help and quick reply. 

I first tried the "clean/update" again now (I had tried it before I wrote the first time), and it worked now ;-). So probably it was not available, when I tried the first time.

I like this with sbt, very easy to get started :-).

Again, thanks for the help and have nice weekend!

Cheers,
Miran

jingjing chen

unread,
Mar 16, 2023, 12:43:12 AM3/16/23
to OscaR
hi,Pierre I cant visit this website " http://artifactory.info.ucl.ac.be/artifactory/libs-release/oscar/oscar-cp_2.11/3.0.0/oscar-cp_2.11-3.0.0.jar " due to a  500 Internal Privoxy Error, and when i complied my project with my sbt ,i got this :

[warn]   +- repetita:repetita_2.11:0.1-SNAPSHOT

sbt.ResolveException: unresolved dependency: oscar#oscar-cp_2.11;4.0.0-SNAPSHOT: not found

at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)

at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:191)

at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:168)

at    ...........

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:833)

[error] (*:update) sbt.ResolveException: unresolved dependency: oscar#oscar-cp_2.11;4.0.0-SNAPSHOT: not found

i dont know how to fix it, could you please give me some advise.

Reply all
Reply to author
Forward
0 new messages