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

Can't find joda-time even if I found it existed in the maven repo? #9

Open
freewind opened this issue Dec 17, 2014 · 3 comments
Open
Labels

Comments

@freewind
Copy link
Contributor

Found in the log of ./sbt update:

[info] Resolving joda-time#joda-time;[2.2,) ...
[warn]  module not found: joda-time#joda-time;[2.2,)
[warn] ==== local: tried
[warn]   /Users/twer/.ivy2/local/joda-time/joda-time/[revision]/ivys/ivy.xml
[warn] ==== repox-maven: tried
[warn]   http://127.0.0.1:8078/joda-time/joda-time/[revision]/joda-time-[revision].pom
[warn] ==== repox-ivy: tried
[warn]   http://127.0.0.1:8078/joda-time/joda-time/[revision]/ivys/ivy.xml

...

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: joda-time#joda-time;[2.2,): not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]      joda-time:joda-time:[2.2,)
[warn]        +- com.amazonaws:aws-java-sdk-core:1.8.11
[warn]        +- com.amazonaws:aws-java-sdk:1.8.11

And I found in repox log:

11:31:41.524 DEBUG com.gtan.repox.Repox$
 Immediate head /joda-time/joda-time/.

11:31:41.529 DEBUG com.gtan.repox.Repox$
 Immediate file /joda-time/joda-time/

11:31:41.532 DEBUG com.gtan.repox.Repox$
 Immediate head /joda-time/joda-time/.

11:31:41.534 DEBUG com.gtan.repox.Repox$
 Immediate file /joda-time/joda-time/

And in repox storage:

➜  2.5  pwd
/Users/twer/.repox/storage/joda-time/joda-time/2.5
➜  2.5  ls
joda-time-2.5.jar      joda-time-2.5.pom
joda-time-2.5.jar.sha1 joda-time-2.5.pom.sha1

Not sure where is wrong.

@Centaur
Copy link
Owner

Centaur commented Dec 17, 2014

These urls are illegal (see the [revision] part) . Will study how other repo/proxy handle such a situation.

@Centaur
Copy link
Owner

Centaur commented Dec 20, 2014

Turns out this is an sbt issue. See sbt/sbt#752 . So I really cannot do anything until the sbt issue gets fixed. In the meantime, you can try to specify a concrete version for your dependency instead of a version range. If this dependency is transitive , try exclude it from its dependant first.
For now, Repox will return 404 for any request with a [revision] part in the uri.

@Centaur
Copy link
Owner

Centaur commented Dec 20, 2014

Another related issue sbt/sbt#1136

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

No branches or pull requests

2 participants