[ 
https://issues.apache.org/jira/browse/ACCUMULO-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819834#comment-13819834
 ] 

Josh Elser commented on ACCUMULO-1876:
--------------------------------------

Actually, I take it back. I applied your patch locally, installed 
1.5.1-SNAPSHOT and then tried out the above ant+ivy project with no success.

Am I missing something?

{noformat}
Buildfile: /Users/jelser/accumulo-slf4j-bug/build.xml

init:
    [mkdir] Created dir: /Users/jelser/accumulo-slf4j-bug/ivy-lib
      [get] Getting: 
http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0-rc1/ivy-2.3.0-rc1.jar
      [get] To: /Users/jelser/accumulo-slf4j-bug/ivy-lib/ivy-2.3.0-rc1.jar
[ivy:resolve] :: Apache Ivy 2.3.0-rc1 - 20120416000235 :: 
http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = 
/Users/jelser/accumulo-slf4j-bug/ivysettings.xml
[ivy:resolve] :: resolving dependencies :: 
com.mjwall#accumulo-slfj4-bug;working@hw10447
[ivy:resolve]   confs: [compile]
[ivy:resolve]   found org.apache.accumulo#accumulo-minicluster;1.5.1-SNAPSHOT 
in local-maven-2
[ivy:resolve]   found com.beust#jcommander;1.30 in local-maven-2
[ivy:resolve]   found org.apache.accumulo#accumulo-core;1.5.1-SNAPSHOT in 
local-maven-2
[ivy:resolve]   found com.google.guava#guava;14.0.1 in local-maven-2
[ivy:resolve]   found jline#jline;1.0 in local-maven-2
[ivy:resolve]   found org.apache.accumulo#accumulo-fate;1.5.1-SNAPSHOT in 
local-maven-2
[ivy:resolve]   found org.apache.accumulo#accumulo-start;1.5.1-SNAPSHOT in 
local-maven-2
[ivy:resolve]   found org.apache.commons#commons-vfs2;2.0 in local-maven-2
[ivy:resolve]   found commons-logging#commons-logging;1.1.1 in default
[ivy:resolve]   found org.apache.maven.scm#maven-scm-api;1.4 in local-maven-2
[ivy:resolve]   found org.codehaus.plexus#plexus-utils;1.5.6 in local-maven-2
[ivy:resolve]   found org.apache.maven.scm#maven-scm-provider-svnexe;1.4 in 
local-maven-2
[ivy:resolve]   found org.apache.maven.scm#maven-scm-provider-svn-commons;1.4 
in local-maven-2
[ivy:resolve]   found regexp#regexp;1.3 in local-maven-2
[ivy:resolve]   found org.apache.accumulo#accumulo-trace;1.5.1-SNAPSHOT in 
local-maven-2
[ivy:resolve]   found org.apache.thrift#libthrift;0.9.0 in local-maven-2
[ivy:resolve]   found commons-lang#commons-lang;2.4 in default
[ivy:resolve]   found org.apache.httpcomponents#httpclient;4.1.3 in 
local-maven-2
[ivy:resolve]   found commons-codec#commons-codec;1.4 in default
[ivy:resolve]   found org.apache.httpcomponents#httpcore;4.1.3 in local-maven-2
[ivy:resolve]   found org.apache.accumulo#accumulo-server;1.5.1-SNAPSHOT in 
local-maven-2
[ivy:resolve]   found com.google.code.gson#gson;2.2.2 in local-maven-2
[ivy:resolve] :: resolution report :: resolve 827ms :: artifacts dl 15ms
[ivy:resolve]   :: evicted modules:
[ivy:resolve]   org.apache.httpcomponents#httpcore;4.1.4 by 
[org.apache.httpcomponents#httpcore;4.1.3] in [compile]
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      compile     |   24  |   3   |   0   |   1   ||   21  |   0   |
        ---------------------------------------------------------------------
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]           module not found: org.slf4j#slf4j-api;${slf4j.version}
[ivy:resolve]   ==== local-maven-2: tried
[ivy:resolve]     
/Users/jelser/.m2/repository/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.pom
[ivy:resolve]     -- artifact 
org.slf4j#slf4j-api;${slf4j.version}!slf4j-api.jar:
[ivy:resolve]     
/Users/jelser/.m2/repository/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.jar
[ivy:resolve]   ==== maven2: tried
[ivy:resolve]     
http://repo1.maven.org/maven2/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.pom
[ivy:resolve]     -- artifact 
org.slf4j#slf4j-api;${slf4j.version}!slf4j-api.jar:
[ivy:resolve]     
http://repo1.maven.org/maven2/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.jar
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: org.slf4j#slf4j-api;${slf4j.version}: not found
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/Users/jelser/accumulo-slf4j-bug/build.xml:23: impossible to resolve 
dependencies:
        resolve failed - see output for details

Total time: 3 seconds
{noformat}

> Problem using accumulo artifacts from ivy
> -----------------------------------------
>
>                 Key: ACCUMULO-1876
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1876
>             Project: Accumulo
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 1.5.0
>            Reporter: Michael Wall
>            Assignee: Michael Wall
>            Priority: Minor
>             Fix For: 1.5.1, 1.6.0
>
>         Attachments: 1876-1.5.1-SNAPSHOT.patch, 1876-1.6.0-SNAPSHOT.patch, 
> 1876.patch, accumulo-slf4j-bug.tar.gz
>
>
> Defining an accumulo dependency in an ivy.xml file for any Accyumulo version 
> greater than 1.4.4 results in the following error 
> {noformat}
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]                 ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve]                 :: org.slf4j#slf4j-api;${slf4j.version}: not 
> found
> [ivy:resolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] 
> {noformat}
> The issue appears to be that in the parent pom.xml, slf4j.version is only 
> defined in profiles.  Ivy doesn't load profiles when pulling from a maven 
> repo, so the ${slf4j.version} is never set.
> One possible fix is to define a property earlier with the version, and allow 
> the profiles to overwrite.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to