You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-dev@incubator.apache.org by Steve Loughran <st...@apache.org> on 2007/07/18 12:23:27 UTC

dependencies of Ivy changed?

I'm getting a failure in the first of the smartfrog builds on gump that 
depends on Ivy:

http://vmgump.apache.org/gump/public/smartfrog/smartfrog-tasks/gump_work/build_smartfrog_smartfrog-tasks.html


declare-ivy:

maybe-ivy-init:
[ivy:configure] :: Ivy 2.0.0-alpha-2-incubating-local-20070718025126 - 
20070718025126 :: http://incubator.apache.org/ivy/ ::
[ivy:configure] ivy:configure is deprecated, please use the data type 
ivy:settings instead

maybe-ivy-resolve:
[ivy:resolve] :: loading settings :: file = 
/srv/gump/public/workspace/smartfrog/antbuild/ivy/ivyconf.xml
[ivy:resolve] DEPRECATED: 'ivyconf' element is deprecated, use 
'ivysettings' instead 
(file:/srv/gump/public/workspace/smartfrog/antbuild/ivy/ivyconf.xml)
[ivy:resolve] :: resolving dependencies :: [ org.smartfrog | sf-tasks | 
working@vmgump ]
[ivy:resolve] 	confs: [default, build, compile, daemon, test, master, 
redist, runtime, documentation]
[ivy:resolve] 	found [ org.smartfrog | smartfrog | 18072007 ] in local
[ivy:resolve] 	[18072007] [ org.smartfrog | smartfrog | latest.integration ]

BUILD FAILED
/srv/gump/public/workspace/smartfrog/common.xml:1776: 
java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException

Line 1776 is  <ivy:resolve />

I'm depending upon the gump export of Ivy ... does Ivy SVN_HEAD now need 
a code, and if so, we need to update the gump metadata


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

Re: dependencies of Ivy changed?

Posted by Steve Loughran <st...@apache.org>.
Xavier Hanin wrote:

> 
> Ivy doesn't depend on commons-codec, but commons-httpclient does, and Ivy
> uses commons-httpclient if available. I don't know the gump setup very 
> well,
> but something should have changed to cause the problem, and I don't see 
> what
> have changed in Ivy which could cause the problem. Maybe a change in
> commons-httpclient or in smartfrog?

we probably have a dependency on httpclient, which could trickle in to 
other things...

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

Re: dependencies of Ivy changed?

Posted by Steve Loughran <st...@apache.org>.
Xavier Hanin wrote:
> On 7/19/07, Steve Loughran <st...@apache.org> wrote:
>>
>> Xavier Hanin wrote:
>> > On 7/19/07, Steve Loughran <st...@apache.org> wrote:
>>
>> > I don't know how gump is working. Do we have to list transitive
>> > dependencies?
>>
>>
>> Yes. Really commons httpclient should have done it,
>>
>> Actually, you can list whether your dependencies are exported
>> (runtime="true"), so we can actually drop httpclient as a dependency
>> altogether
>>
>> Anyway, if you think we should add commons-codec, go ahead
>> > :-)
>>
>> that or dont export httpclient; which would you prefer gump to run?
> 
> 
> I'd prefer not exporting httpclient as a dependency, since it's only an
> optional dependency.
> 

I've just done the simplest, add the dependency as runtime; I'll see if 
it works tonight.

Then I'll tweak smartfrog.xml to not inherit any of the ivy 
dependencies, so it wont pull in httpclient. That way we have ivy on 
gump set up so that

-if you say inherit="runtime" you get everything
-if you dont say inherit="runtime" you get a minimal ivy that still works

Let's see how it goes tonight

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

Re: dependencies of Ivy changed?

Posted by Xavier Hanin <xa...@gmail.com>.
On 7/19/07, Steve Loughran <st...@apache.org> wrote:
>
> Xavier Hanin wrote:
> > On 7/19/07, Steve Loughran <st...@apache.org> wrote:
>
> > I don't know how gump is working. Do we have to list transitive
> > dependencies?
>
>
> Yes. Really commons httpclient should have done it,
>
> Actually, you can list whether your dependencies are exported
> (runtime="true"), so we can actually drop httpclient as a dependency
> altogether
>
> Anyway, if you think we should add commons-codec, go ahead
> > :-)
>
> that or dont export httpclient; which would you prefer gump to run?


I'd prefer not exporting httpclient as a dependency, since it's only an
optional dependency.

Xavier

--
> Steve Loughran                  http://www.1060.org/blogxter/publish/5
> Author: Ant in Action           http://antbook.org/
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/

Re: dependencies of Ivy changed?

Posted by Steve Loughran <st...@apache.org>.
Xavier Hanin wrote:
> On 7/19/07, Steve Loughran <st...@apache.org> wrote:

> I don't know how gump is working. Do we have to list transitive
> dependencies? 


Yes. Really commons httpclient should have done it,

Actually, you can list whether your dependencies are exported 
(runtime="true"), so we can actually drop httpclient as a dependency 
altogether

Anyway, if you think we should add commons-codec, go ahead
> :-)

that or dont export httpclient; which would you prefer gump to run?


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

Re: dependencies of Ivy changed?

Posted by Xavier Hanin <xa...@gmail.com>.
On 7/19/07, Steve Loughran <st...@apache.org> wrote:
>
> Xavier Hanin wrote:
>
> > Ivy doesn't depend on commons-codec, but commons-httpclient does, and
> Ivy
> > uses commons-httpclient if available. I don't know the gump setup very
> > well,
> > but something should have changed to cause the problem, and I don't see
> > what
> > have changed in Ivy which could cause the problem. Maybe a change in
> > commons-httpclient or in smartfrog?
>
> I'vy is listed as depending on commons-httpclient; its dependencies need
> to be enhanced to add commons-codec. Do you want to do it, or shall I?


I don't know how gump is working. Do we have to list transitive
dependencies? Anyway, if you think we should add commons-codec, go ahead :-)

Xavier

http://vmgump.apache.org/gump/public/ivy/ivy/details.html
>
>
>
> --
> Steve Loughran                  http://www.1060.org/blogxter/publish/5
> Author: Ant in Action           http://antbook.org/
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/

Re: dependencies of Ivy changed?

Posted by Steve Loughran <st...@apache.org>.
Xavier Hanin wrote:

> Ivy doesn't depend on commons-codec, but commons-httpclient does, and Ivy
> uses commons-httpclient if available. I don't know the gump setup very 
> well,
> but something should have changed to cause the problem, and I don't see 
> what
> have changed in Ivy which could cause the problem. Maybe a change in
> commons-httpclient or in smartfrog?

I'vy is listed as depending on commons-httpclient; its dependencies need 
to be enhanced to add commons-codec. Do you want to do it, or shall I?

http://vmgump.apache.org/gump/public/ivy/ivy/details.html



-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

Re: dependencies of Ivy changed?

Posted by Xavier Hanin <xa...@gmail.com>.
On 7/18/07, Steve Loughran <st...@apache.org> wrote:
>
>
> I'm getting a failure in the first of the smartfrog builds on gump that
> depends on Ivy:
>
>
> http://vmgump.apache.org/gump/public/smartfrog/smartfrog-tasks/gump_work/build_smartfrog_smartfrog-tasks.html
>
>
> declare-ivy:
>
> maybe-ivy-init:
> [ivy:configure] :: Ivy 2.0.0-alpha-2-incubating-local-20070718025126 -
> 20070718025126 :: http://incubator.apache.org/ivy/ ::
> [ivy:configure] ivy:configure is deprecated, please use the data type
> ivy:settings instead
>
> maybe-ivy-resolve:
> [ivy:resolve] :: loading settings :: file =
> /srv/gump/public/workspace/smartfrog/antbuild/ivy/ivyconf.xml
> [ivy:resolve] DEPRECATED: 'ivyconf' element is deprecated, use
> 'ivysettings' instead
> (file:/srv/gump/public/workspace/smartfrog/antbuild/ivy/ivyconf.xml)
> [ivy:resolve] :: resolving dependencies :: [ org.smartfrog | sf-tasks |
> working@vmgump ]
> [ivy:resolve]   confs: [default, build, compile, daemon, test, master,
> redist, runtime, documentation]
> [ivy:resolve]   found [ org.smartfrog | smartfrog | 18072007 ] in local
> [ivy:resolve]   [18072007] [ org.smartfrog | smartfrog |
> latest.integration ]
>
> BUILD FAILED
> /srv/gump/public/workspace/smartfrog/common.xml:1776:
> java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
>
> Line 1776 is  <ivy:resolve />
>
> I'm depending upon the gump export of Ivy ... does Ivy SVN_HEAD now need
> a code, and if so, we need to update the gump metadata


Ivy doesn't depend on commons-codec, but commons-httpclient does, and Ivy
uses commons-httpclient if available. I don't know the gump setup very well,
but something should have changed to cause the problem, and I don't see what
have changed in Ivy which could cause the problem. Maybe a change in
commons-httpclient or in smartfrog?

Xavier

--
> Steve Loughran                  http://www.1060.org/blogxter/publish/5
> Author: Ant in Action           http://antbook.org/
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/