Using ivy to get jruby-complete-1.6.6, get: unresolved dependency: org.jruby.extras#bytelist;1.0.8:

I’m trying to add an ivy dependency for jruby-complete, and I’m
getting this error:

Impossible to resolve dependencies of
com.restphone#;[email protected]
unresolved dependency: org.jruby.extras#bytelist;1.0.8: not found

I don’t know much about how maven works, but I thought it was
interesting that the POM at
http://repository.codehaus.org/org/jruby/jruby-complete/1.6.6/jruby-complete-1.6.6.pom
had this:

org.jruby.joni joni ${jar.scope} org.jruby.extras jnr-netdb ${jar.scope} org.jruby.ext.posix jnr-posix ${jar.scope} org.jruby.extras bytelist ${jar.scope} ....

The comment made me think that there should be something in the jar
for bytelist.

Some of the other org.jruby.extras entries had more files that looked
like they matched the package. For example:

james@James-Moores-iMac:/tmp/jrf$ find . -name “constantin
./com/kenai/constantine
./META-INF/maven/org.jruby.extras/constantine
james@James-Moores-iMac:/tmp/jrf$ find . -name “joni
./META-INF/maven/org.jruby.joni
./META-INF/maven/org.jruby.joni/joni
./org/joni

But some didn’t (like bytelist and jnr-netdb).

Should there be something in the jar for bytelist?


James M.
[email protected]
http://blog.restphone.com/

if I look at a maven project with only one dependency: jruby-complete
then at the complete dependency graph

$ mvn dependency:tree -Dverbose=true
[INFO] Scanning for projects…
[INFO]
[INFO]

[INFO] Building example 0.0.36
[INFO]

[INFO]
[INFO] — maven-dependency-plugin:2.1:tree (default-cli) @ example —
[INFO] com.example:example:jar:0.0.36
[INFO] - org.jruby:jruby-complete:jar:1.6.6:compile

i.e. jruby-complete-1.6.6 has NO dependencies for runtime, compile or
test scope.

if you want to look at the pom of jruby-complete you need to look at
the effective pom since the parent pom does have some influence on the
actual pom you looked at. just go into the
$JRUBY_SOURCES/maven/jruby-complete and execute

$ mvn help:effective-pom

I do not know how ivy works and where the problem lies you have, but
from a maven point of view everything is as it suppose to be.

  • Kristian

On Tue, Jan 31, 2012 at 7:23 PM, kristian [email protected] wrote:

On Tue, Jan 31, 2012 at 11:51 PM, James M. [email protected] wrote:

I’m trying to add an ivy dependency for jruby-complete, and I’m
getting this error:
I do not know how ivy works and where the problem lies you have, but
from a maven point of view everything is as it suppose to be.

  • Kristian

FYI, I got back this from the posting to stackoverflow
(Eclipse Ivy plugin says jruby has an unresolved dependency, but jruby 1.6.6 doesn't have any - Stack Overflow)

  1. The following error is caused by a junk checksum. My provided
    settings file disables this check… something you are advised not to
    do on a remote repository

[ivy:resolve] :::: WARNINGS
[ivy:resolve] problem while downloading module descriptor:
http://repo1.maven.org/maven2/org/jruby/extras/bytelist/1.0.8/bytelist-1.0.8.pom:
invalid sha1: expected=e40ee094403473e43f71e21cf9cbf71f08d2098b
computed=a9627bc7e42f886e290985367040794adb676320 (977ms)
[ivy:resolve] module not found: org.jruby.extras#bytelist;1.0.8


James M.
[email protected]
http://blog.restphone.com/
http://www.linkedin.com/in/jamesmmooreiv

On Tue, Feb 28, 2012 at 10:49 AM, James M. [email protected]
wrote:

(Eclipse Ivy plugin says jruby has an unresolved dependency, but jruby 1.6.6 doesn't have any - Stack Overflow)

“provided” scope is not transitive so any project having
jruby-complete as dependency will not see any provided dependencies
from jruby-complete !! see “provided”
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

maybe that is more an ivy bug ?!

yes, that should be rectified since it will cause problems here and
there. I guess, filing a bug helps.

  • Kristian