Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5A2DCA55 for ; Mon, 24 Jun 2013 17:10:57 +0000 (UTC) Received: (qmail 51156 invoked by uid 500); 24 Jun 2013 17:10:57 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 50539 invoked by uid 500); 24 Jun 2013 17:10:51 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 50455 invoked by uid 99); 24 Jun 2013 17:10:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 17:10:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of colin.surprenant@gmail.com designates 209.85.215.42 as permitted sender) Received: from [209.85.215.42] (HELO mail-la0-f42.google.com) (209.85.215.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 17:10:43 +0000 Received: by mail-la0-f42.google.com with SMTP id eb20so10753483lab.1 for ; Mon, 24 Jun 2013 10:10:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hMVkkIkatEX8tUG+EASjFd3SYiQicDdjAdP7+vQlh0w=; b=J4f/cuBNghvfd7nzJmRbWSQVKV+IyLhaZKnAe9F5MmWbin8RNHGB+YdfwyQxePfzvZ yYoAbDNiQt/yUBF6KLcDOpKSwe+cbMuz0JIPfnUKBiSWP3Bkg+9rdB6BfUaYq+kztRW/ KdDf3T4lm0kuFBmiNGqkqS9726HQXRV28ufn56ZCZe3AnJJIYJRg0XyBqAQ33/oOCGCW ZkQIZewesu0F0crGUDOjBu5/GIyOQ/c9RWQALSrkpLUiaWLhHFSKZ5M/Ffn3dEaMvLhu YO1JUjiauEbIKLQNCohAlNLnhyqiVXNgcKLzuaUtcgO+iXI+RY08q67nvhpOw8HeULgv WMHA== MIME-Version: 1.0 X-Received: by 10.112.74.47 with SMTP id q15mr13325475lbv.75.1372093823036; Mon, 24 Jun 2013 10:10:23 -0700 (PDT) Received: by 10.112.170.67 with HTTP; Mon, 24 Jun 2013 10:10:22 -0700 (PDT) Date: Mon, 24 Jun 2013 13:10:22 -0400 Message-ID: Subject: problem getting "native" dependency From: Colin Surprenant To: ivy-user@ant.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am having troubles finding the "right way" to fetch some "native" dependencies with Ivy and I am hoping someone can point me in the right direction. My project has a dependency on the org-jruby:jruby-core artifact http://mvnrepository.com/artifact/org.jruby/jruby-core/1.7.4. One of the jruby-core dependency is com.github.jnr:jffi http://mvnrepository.com/artifact/com.github.jnr/jffi/1.2.5 and jffi has also a "native" artifact which I need to fetch. By default, specifying a transitive dependency on jruby-core does not fetch the jffi-native artifact, just the "compile" scope jar file. jffi-native is in the "runtime" scope and so far the only way I was able to fetch it is using this dependency declaration: I tried using Ivy conf for compile and runtime but it does not fetch jffi-native. here's what I tried: When looking at the mvm dependency:tree we can see com.github.jnr:jffi:jar:native:1.2.7:runtime in the "runtime" scope. INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ jruby-core --- [INFO] artifact com.github.jnr:jffi: checking for updates from central [INFO] artifact com.github.jnr:jnr-x86asm: checking for updates from central [INFO] org.jruby:jruby-core:jar:1.7.4 [INFO] +- org.jruby:jruby-stdlib:jar:1.7.4:compile [INFO] +- org.jruby.joni:joni:jar:2.0.0:compile [INFO] +- com.github.jnr:jnr-netdb:jar:1.1.2:compile [INFO] +- com.github.jnr:jnr-enxio:jar:0.4:compile [INFO] +- com.github.jnr:jnr-unixsocket:jar:0.3:compile [INFO] +- com.github.jnr:jnr-posix:jar:2.5.2:compile [INFO] +- org.jruby.extras:bytelist:jar:1.0.10:compile [INFO] +- com.github.jnr:jnr-constants:jar:0.8.4:compile [INFO] +- org.jruby.jcodings:jcodings:jar:1.0.10:compile [INFO] +- com.github.jnr:jffi:jar:1.2.5:compile [INFO] +- org.yaml:snakeyaml:jar:1.11:compile [INFO] +- jline:jline:jar:2.7:compile [INFO] +- joda-time:joda-time:jar:2.1:compile [INFO] +- com.jcraft:jzlib:jar:1.1.2:compile [INFO] +- com.headius:invokebinder:jar:1.2:compile [INFO] +- com.github.jnr:jnr-ffi:jar:1.0.4:compile [INFO] | +- com.github.jnr:jffi:jar:native:1.2.7:runtime [INFO] | \- com.github.jnr:jnr-x86asm:jar:1.0.2:compile [INFO] +- junit:junit:jar:4.7:test [INFO] +- bsf:bsf:jar:2.3.0:provided [INFO] \- org.apache.ant:ant:jar:1.7.0:provided [INFO] \- org.apache.ant:ant-launcher:jar:1.7.0:provided I do not understand exactly why com.github.jnr:jffi:jar:native:1.2.7:runtime is not fetched when using the "runtime" conf with Ivy. What am I missing here? What would be the correct way to do this? Thanks, Colin