You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Gordon Leland Hempton <gh...@gmail.com> on 2009/04/02 20:05:37 UTC

Unresolved Dependencies - What Am I Doing Wrong?

I am trying to incorporate ivy as the dependency manager for our project. I
have created my own repository using the ivy install command, however when I
try and add my own modules to the repository I get the following error when
another module depends on them:
[ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] WARN: ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] WARN: :: net.jthink#jaudiotagger;1.0.9:
java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source)
[ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] report for
com.designbyparts#oakland-site;working@ghempton-desktop default produced in
C:\Users\Gordon\.ivy2\cache\com.designbyparts-oakland-site-default.xml
[ivy:resolve] resolve done (1189ms resolve - 96ms download)
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: net.jthink#jaudiotagger;1.0.9:
java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source)

BUILD FAILED
C:\projects\oakland\branches\prototype\site\build.xml:119: impossible to
resolve dependencies:
resolve failed - see output for details
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:315)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
...

My ivy file for the module is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation=
                   "http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="net.jthink"
module="jaudiotagger"
revision="1.0.9">
<description homepage="http://www.jthink.net/jaudiotagger/">
Audio tagging library
</description>
</info>
<configurations>
<conf name="default" visibility="public" />
<conf name="sources" visibility="public" />
</configurations>
<publications>
<artifact name="jaudiotagger" type="jar" ext="jar" conf="default" />
<artifact name="jaudiotagger" type="source" ext="jar" conf="sources" />
</publications>
</ivy-module>

And the repository pattern matches up with the resolver and is the same as
all of the other modules which I installed through the ivy install task. One
thing this module doesn't have is the md5 and sha1 checksums, does that
matter? Am I missing anything? I am using Ivy 2.0.0.

Thanks for your help,
Gordon

Re: Unresolved Dependencies - What Am I Doing Wrong?

Posted by Gordon Leland Hempton <gh...@gmail.com>.
FYI, I fixed the issue by putting the module in the repository using the
ivy:publish task instead of doing it manually. It seems to have an identical
effect on the repository except for the inclusion of the md5 and sha1
checksums, so I assume they are required.
-Gordon

On Thu, Apr 2, 2009 at 11:05 AM, Gordon Leland Hempton
<gh...@gmail.com>wrote:

> I am trying to incorporate ivy as the dependency manager for our project. I
> have created my own repository using the ivy install command, however when I
> try and add my own modules to the repository I get the following error when
> another module depends on them:
> [ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] WARN: ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] WARN: :: net.jthink#jaudiotagger;1.0.9:
> java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source)
> [ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] report for
> com.designbyparts#oakland-site;working@ghempton-desktop default produced
> in C:\Users\Gordon\.ivy2\cache\com.designbyparts-oakland-site-default.xml
> [ivy:resolve] resolve done (1189ms resolve - 96ms download)
> [ivy:resolve] :: problems summary ::
> [ivy:resolve] :::: WARNINGS
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] ::          UNRESOLVED DEPENDENCIES         ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.jthink#jaudiotagger;1.0.9:
> java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source)
>
> BUILD FAILED
> C:\projects\oakland\branches\prototype\site\build.xml:119: impossible to
> resolve dependencies:
> resolve failed - see output for details
>  at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:315)
> at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
>  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> ...
>
> My ivy file for the module is as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ivy-module version="2.0"
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>             xsi:noNamespaceSchemaLocation=
>                    "http://ant.apache.org/ivy/schemas/ivy.xsd">
>  <info organisation="net.jthink"
> module="jaudiotagger"
>  revision="1.0.9">
> <description homepage="http://www.jthink.net/jaudiotagger/">
>  Audio tagging library
> </description>
> </info>
>  <configurations>
> <conf name="default" visibility="public" />
>  <conf name="sources" visibility="public" />
> </configurations>
>  <publications>
> <artifact name="jaudiotagger" type="jar" ext="jar" conf="default" />
>  <artifact name="jaudiotagger" type="source" ext="jar" conf="sources" />
> </publications>
> </ivy-module>
>
> And the repository pattern matches up with the resolver and is the same as
> all of the other modules which I installed through the ivy install task. One
> thing this module doesn't have is the md5 and sha1 checksums, does that
> matter? Am I missing anything? I am using Ivy 2.0.0.
>
> Thanks for your help,
> Gordon
>