Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - Re: ivy failed to resolve dependencies?


Copy link to this message
-
Re: ivy failed to resolve dependencies?
Nan Zhu 2010-11-02, 14:47
Hi, Steve

I haven't added jms and jmxtools, but I added a jxl library to generate some
statistical result with excel format, but it seems not to be the reason,
because I have worked with it for several days,

I guess it's caused by log4j, I wrote a class and add a logger in it, but
it's same with other original classes in hadoop, I don't know why it will
need these two files, when I explicitly exclude them, the building process
will failed on the problem of "cannot find symbols"

it's strange...

Nan

On Tue, Nov 2, 2010 at 6:26 PM, Steve Loughran <[EMAIL PROTECTED]> wrote:

> On 02/11/10 03:17, Nan Zhu wrote:
>
>> Hi, all
>>
>> I'm trapping in a strange problem in this evening,
>>
>> I have been working on hadoop for several months, including modify the
>> source code and re-compile it, I have never met any problem, but when I
>> re-compile the hadoop this evening, it shows that the ivy cannot resolve
>> the
>> dependencies, the messages are following:
>>
>> [ivy:resolve] :: problems summary ::
>>  [ivy:resolve] :::: WARNINGS
>>  [ivy:resolve]         [FAILED     ] javax.jms#jms;1.1!jms.jar:  (0ms)
>>  [ivy:resolve]     ==== apache-snapshot: tried
>>  [ivy:resolve]
>>
>> https://repository.apache.org/content/repositories/snapshots/javax/jms/jms/1.1/jms-1.1.jar
>>  [ivy:resolve]     ==== maven2: tried
>>  [ivy:resolve]
>> http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar
>>  [ivy:resolve]         [FAILED     ]
>> com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar:  (0ms)
>>  [ivy:resolve]     ==== apache-snapshot: tried
>>  [ivy:resolve]
>>
>> https://repository.apache.org/content/repositories/snapshots/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
>>  [ivy:resolve]     ==== maven2: tried
>>  [ivy:resolve]
>>
>> http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
>>  [ivy:resolve]         [FAILED     ] com.sun.jmx#jmxri;1.2.1!jmxri.jar:
>> (0ms)
>>  [ivy:resolve]     ==== apache-snapshot: tried
>>  [ivy:resolve]
>>
>> https://repository.apache.org/content/repositories/snapshots/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
>>  [ivy:resolve]     ==== maven2: tried
>>  [ivy:resolve]
>> http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
>>  [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
>>  [ivy:resolve]         ::              FAILED DOWNLOADS            ::
>>  [ivy:resolve]         :: ^ see resolution messages for details  ^ ::
>>  [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
>>  [ivy:resolve]         :: javax.jms#jms;1.1!jms.jar
>>  [ivy:resolve]         :: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
>>  [ivy:resolve]         :: com.sun.jmx#jmxri;1.2.1!jmxri.jar
>>  [ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
>>
>>
>> I don't know why it happens and how to solve it, anyone can give some
>> ideas?
>> thank you
>>
>
> I know the problem here, which is that jms and jmx aren't in the main
> repository as oracle/sun require click-through licenses. The metadata files
> are in the repository, but not the JARS
>
> http://mvnrepository.com/artifact/com.sun.jdmk/jmxtools/1.2.1
> http://mvnrepository.com/artifact/jms/jms
>
> What I don't know is why a hadoop build needs it -have you added them? If
> not, what library have you recenty added? It may have an accidental
> dependency (log4j says it needs jmxtools), which the ivy files need to
> exclude explicitly.
>
> -steve
>