Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source downloads fail for grizzled-slf4j, junit, scalatest, logback #39

Merged
merged 2 commits into from
Mar 25, 2014

Conversation

martinb3
Copy link
Contributor

Hello!

The .pom files for scalastic 2.10-0.90.10 [1] appear to have 'classifier' sources, but I can't seem to get sbt to resolve them. I'm attaching a full reproducible example below:

Is 0.90.10 not compatible with scala 2.10.3 and sbt 0.13.1?

[1] http://repo1.maven.org/maven2/org/scalastic/scalastic_2.10/0.90.10/scalastic_2.10-0.90.10.pom

mart6985@mart6985-laptop:~/src/tmp/scalastic$ ls -la
total 20
drwxr-xr-x 4 mart6985 mart6985 4096 Mar  9 19:25 .
drwxr-xr-x 3 mart6985 mart6985 4096 Mar  9 19:25 ..
-rw-r--r-- 1 mart6985 mart6985   66 Mar  9 19:25 build.sbt
drwxr-xr-x 3 mart6985 mart6985 4096 Mar  9 19:25 project
drwxr-xr-x 4 mart6985 mart6985 4096 Mar  9 19:25 target
mart6985@mart6985-laptop:~/src/tmp/scalastic$ rm -rf project/ target/
mart6985@mart6985-laptop:~/src/tmp/scalastic$ ls -la
total 12
drwxr-xr-x 2 mart6985 mart6985 4096 Mar  9 19:25 .
drwxr-xr-x 3 mart6985 mart6985 4096 Mar  9 19:25 ..
-rw-r--r-- 1 mart6985 mart6985   66 Mar  9 19:25 build.sbt
mart6985@mart6985-laptop:~/src/tmp/scalastic$ cat build.sbt 
libraryDependencies += "org.scalastic" %% "scalastic" % "0.90.10"
mart6985@mart6985-laptop:~/src/tmp/scalastic$ sbt compile
[info] Set current project to scalastic (in build file:/home/mart6985/src/tmp/scalastic/)
[info] Updating {file:/home/mart6985/src/tmp/scalastic/}scalastic...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  [FAILED     ] org.elasticsearch#elasticsearch;0.90.10!elasticsearch.src:  (0ms)
[warn] ==== local: tried
[warn]   /home/mart6985/.ivy2/local/org.elasticsearch/elasticsearch/0.90.10/srcs/elasticsearch-sources.src
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/elasticsearch/elasticsearch/0.90.10/elasticsearch-0.90.10-sources.src
[warn]  [FAILED     ] org.clapper#grizzled-slf4j_2.10;1.0.1!grizzled-slf4j_2.10.src:  (0ms)
[warn] ==== local: tried
[warn]   /home/mart6985/.ivy2/local/org.clapper/grizzled-slf4j_2.10/1.0.1/srcs/grizzled-slf4j_2.10-sources.src
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/clapper/grizzled-slf4j_2.10/1.0.1/grizzled-slf4j_2.10-1.0.1-sources.src
[warn]  [FAILED     ] junit#junit;4.10!junit.src:  (0ms)
[warn] ==== local: tried
[warn]   /home/mart6985/.ivy2/local/junit/junit/4.10/srcs/junit-sources.src
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10-sources.src
[warn]  [FAILED     ] org.scalatest#scalatest_2.10;2.0!scalatest_2.10.src:  (0ms)
[warn] ==== local: tried
[warn]   /home/mart6985/.ivy2/local/org.scalatest/scalatest_2.10/2.0/srcs/scalatest_2.10-sources.src
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/scalatest/scalatest_2.10/2.0/scalatest_2.10-2.0-sources.src
[warn]  [NOT FOUND  ] ch.qos.logback#logback-classic;1.0.2!logback-classic.src (109ms)
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.0.2/logback-classic-1.0.2-sources.src
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.elasticsearch#elasticsearch;0.90.10!elasticsearch.src
[warn]  :: org.clapper#grizzled-slf4j_2.10;1.0.1!grizzled-slf4j_2.10.src
[warn]  :: junit#junit;4.10!junit.src
[warn]  :: org.scalatest#scalatest_2.10;2.0!scalatest_2.10.src
[warn]  :: ch.qos.logback#logback-classic;1.0.2!logback-classic.src
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: download failed: org.elasticsearch#elasticsearch;0.90.10!elasticsearch.src
download failed: org.clapper#grizzled-slf4j_2.10;1.0.1!grizzled-slf4j_2.10.src
download failed: junit#junit;4.10!junit.src
download failed: org.scalatest#scalatest_2.10;2.0!scalatest_2.10.src
download failed: ch.qos.logback#logback-classic;1.0.2!logback-classic.src
    at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:213)
    at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:122)
    at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:121)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
    at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:104)
    at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:51)
    at sbt.IvySbt$$anon$3.call(Ivy.scala:60)
    at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
    at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
    at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
    at xsbt.boot.Using$.withResource(Using.scala:11)
    at xsbt.boot.Using$.apply(Using.scala:10)
    at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
    at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
    at xsbt.boot.Locks$.apply0(Locks.scala:31)
    at xsbt.boot.Locks$.apply(Locks.scala:28)
    at sbt.IvySbt.withDefaultLogger(Ivy.scala:60)
    at sbt.IvySbt.withIvy(Ivy.scala:101)
    at sbt.IvySbt.withIvy(Ivy.scala:97)
    at sbt.IvySbt$Module.withModule(Ivy.scala:116)
    at sbt.IvyActions$.update(IvyActions.scala:121)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1161)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1159)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1182)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1180)
    at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1184)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1179)
    at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45)
    at sbt.Classpaths$.cachedUpdate(Defaults.scala:1187)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1152)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1130)
    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: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:744)
[error] (*:update) sbt.ResolveException: download failed: org.elasticsearch#elasticsearch;0.90.10!elasticsearch.src
[error] download failed: org.clapper#grizzled-slf4j_2.10;1.0.1!grizzled-slf4j_2.10.src
[error] download failed: junit#junit;4.10!junit.src
[error] download failed: org.scalatest#scalatest_2.10;2.0!scalatest_2.10.src
[error] download failed: ch.qos.logback#logback-classic;1.0.2!logback-classic.src
[error] Total time: 5 s, completed Mar 9, 2014 7:25:51 PM

@amullins
Copy link

Yup. Same issue, here. I found seemingly related issue in sbt issue tracker
"withSources() expecting a .src file instead of a .jar file?" sbt/sbt#728

Looks like sources were added to sbt build in this commit: e4f3022

I just added notTransitive to the scalastic dependency to resolve this (added elasticsearch and other deps manually).

@bsadeh
Copy link
Owner

bsadeh commented Mar 12, 2014

Sorry guys, I'm out of the country traveling for two months.
If you sent a pull request with the fix, I'll merge it.

Benny

On Mar 12, 2014, at 12:51 AM, Andrew Mullins notifications@github.com
wrote:

Yup. Same issue, here. I found seemingly related issue in sbt issue tracker
"withSources() expecting a .src file instead of a .jar file?"
sbt/sbt#728sbt/sbt#728

Looks like sources were added to sbt build in this commit:
e4f3022e4f3022

Reply to this email directly or view it on
GitHubhttps://github.com//issues/39#issuecomment-37356304
.

@amn41
Copy link

amn41 commented Mar 24, 2014

Hi guys,

Just ran into this as well having cloned benny's repo. Should I switch to martinb3's untill you are back from vacation, Benny?

Thanks,
A

@bsadeh
Copy link
Owner

bsadeh commented Mar 24, 2014

guys, if any of you can fix it and send me a pull request, I'd be happy to
merge (can do it via email).
otherwise, you are looking at the end of May to be the earliest I can
attend to it.

best,
Benny

On Mon, Mar 24, 2014 at 9:20 AM, amn41 notifications@github.com wrote:

Hi guys,

Just ran into this as well having cloned benny's repo. Should I switch to
martinb3's untill you are back from vacation, Benny?

Thanks,
A

Reply to this email directly or view it on GitHubhttps://github.com//pull/39#issuecomment-38417281
.

@martinb3
Copy link
Contributor Author

Hey Benny,

I think I sent one a few weeks ago.

Thanks,

Martin
On Mar 24, 2014 5:34 AM, "Benny Sadeh" notifications@github.com wrote:

guys, if any of you can fix it and send me a pull request, I'd be happy to
merge (can do it via email).
otherwise, you are looking at the end of May to be the earliest I can
attend to it.

best,
Benny

On Mon, Mar 24, 2014 at 9:20 AM, amn41 notifications@github.com wrote:

Hi guys,

Just ran into this as well having cloned benny's repo. Should I switch to
martinb3's untill you are back from vacation, Benny?

Thanks,
A

Reply to this email directly or view it on GitHub<
https://github.com/bsadeh/scalastic/pull/39#issuecomment-38417281>
.

Reply to this email directly or view it on GitHubhttps://github.com//pull/39#issuecomment-38425128
.

bsadeh added a commit that referenced this pull request Mar 25, 2014
Source downloads fail for grizzled-slf4j, junit, scalatest, logback
@bsadeh bsadeh merged commit 2a716bd into bsadeh:master Mar 25, 2014
@bsadeh
Copy link
Owner

bsadeh commented Mar 25, 2014

ok, got it. done. thanks!
merging via iphone, neat ;-)

On Mon, Mar 24, 2014 at 1:05 PM, Martin Smith notifications@github.comwrote:

Hey Benny,

I think I sent one a few weeks ago.

Thanks,

Martin

On Mar 24, 2014 5:34 AM, "Benny Sadeh" notifications@github.com wrote:

guys, if any of you can fix it and send me a pull request, I'd be happy
to
merge (can do it via email).
otherwise, you are looking at the end of May to be the earliest I can
attend to it.

best,
Benny

On Mon, Mar 24, 2014 at 9:20 AM, amn41 notifications@github.com wrote:

Hi guys,

Just ran into this as well having cloned benny's repo. Should I switch
to
martinb3's untill you are back from vacation, Benny?

Thanks,
A

Reply to this email directly or view it on GitHub<
https://github.com/bsadeh/scalastic/pull/39#issuecomment-38417281>
.

Reply to this email directly or view it on GitHub<
https://github.com/bsadeh/scalastic/pull/39#issuecomment-38425128>

.

Reply to this email directly or view it on GitHubhttps://github.com//pull/39#issuecomment-38432105
.

@amn41
Copy link

amn41 commented Mar 25, 2014

really cool, guys. I'm keen to start using it!
using:
libraryDependencies += "org.scalastic" %% "scalastic" % "0.90.10"
is obviously not going to give me the new version 0.90.10.1
How can I get sbt to resolve this version? Thanks for the help

A

@martinb3
Copy link
Contributor Author

See https://code.google.com/p/simple-build-tool/wiki/Publishing. I think you're going to check out the new version, use 'play publish-local' and then reference the local mvn repo in your other project, until the new version is pushed out to Maven central.

Good luck!

@yatskevich
Copy link
Collaborator

Just published 0.90.10.1 to Maven Central, so it'll be available in several hours.

@amn41
Copy link

amn41 commented Mar 27, 2014

Thanks for the support everyone - got it up and running with the local publish.

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

Successfully merging this pull request may close these issues.

5 participants