ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Aikens" <paik...@gmail.com>
Subject Re: Ivy problem publishing with a forced dependency version
Date Tue, 15 Jul 2008 18:11:02 GMT
Does anybody have any info on this?  I can't get any farther in
converting our projects to use Ivy until I can find a resolution for
this.

On Thu, Jul 10, 2008 at 11:41 AM, Patrick Aikens <paikens@gmail.com> wrote:
> I'm converting our projects at work to use Ivy.  We noticed that one
> of the projects hasn't been updated to work with the breaking changes
> in 1.2.9 of log4j and thus caused a runtime exception when we used our
> module in other code. The conflict manager was evicting the version I
> specified and using a newer version of log4j via some other transitive
> dependency.  I decided to use the 'force="true"' option to force the
> older version instead of letting it get evicted for a newer version.
>
> Now, I have a problem when I try to publish... I get this error:
> impossible to publish artifacts for myorg#mymod;working@paiken1-LT:
> myorg#mymod;working@paiken1-LT: java.lang.RuntimeException: bad ivy
> file in cache for myorg#mymod;working@paiken1-LT: please clean and
> resolve again
>
> Just for the record, I've blown away my ivy cache and even after it's
> recreated during this compile phase, mymod is not in the cache at all
> since it hasn't been published.  Removing the force="true" from the
> log4j dependency also makes it work again.  Something tells me I'm
> misunderstanding the mention of "cache" in the error message.
>
> Contents of Ivy file follow:
>
> <?xml version="1.0" ?>
> <ivy-module version="1.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
>        <info organisation="myorg" module="mymod"/>
>        <configurations>
>            <include file="${root.build.dir}/ivy-configurations.xml"/>
>        </configurations>
>        <publications>
>                <artifact conf="master"/>
>        </publications>
>        <dependencies>
>                <dependency org="log4j" name="log4j" rev="${log4j.log4j.rev}"
> force="true" conf="compile->default;runtime->default"/>
>                <dependency org="xalan" name="xalan" rev="${xalan.xalan.rev}"
> conf="compile->default;runtime->default"/>
>                <dependency org="xerces" name="xercesImpl"
> rev="${xerces.xercesImpl.rev}"
> conf="compile->default;runtime->default"/>
>                <dependency org="jdom" name="jdom" rev="${jdom.jdom.rev}"
> conf="compile->default;runtime->default"/>
>                <dependency org="jakarta-regexp" name="jakarta-regexp"
> rev="${jakarta-regexp.jakarta-regexp.rev}"
> conf="compile->default;runtime->default"/>
>                <dependency org="oro" name="oro" rev="${oro.oro.rev}"
> conf="compile->default;runtime->default"/>
>                <dependency org="junit" name="junit" rev="${junit.junit.rev}" conf="test->*"/>
>                <dependency org="xalan" name="xalanj1compat"
> rev="${xalan.xalanj1compat.rev}"
> conf="compile->default;runtime->default"/>
>                <dependency org="org.springframework" name="spring-beans"
> rev="${org.springframework.spring.rev}"
> conf="compile->default;runtime->default"/>
>        </dependencies>
> </ivy-module>
>
>
> --
> Emo Philips  - "I got some new underwear the other day. Well, new to me."
>



-- 
Yogi Berra  - "A nickel ain't worth a dime anymore."

Mime
View raw message