ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: ivy:resolve & latest.status
Date Thu, 03 Jul 2008 19:22:22 GMT
On Tue, Jul 1, 2008 at 5:58 PM, Hans Lund <ha.lund@gmail.com> wrote:

> I'm trying to resolve dependencies using specified a specified status
>
> having the following in settings.
>
> --------
> <statuses default="integration">
>        <status name="release" integration="false"/>
>        <status name="DEV" integration="true"/>
>        <status name="integration" integration="true"/>
> </statuses>
> ---------
>
> Now in the ivy file I have some dependencies like the following (where
> ${revision.status} is set in ant depending on source-branch.
>
> ------------
> <dependency org="com.multisupport"
> name="commons"rev="latest.${revision.status}" conf="compile->default(*)
> "/>
> ------------
>
>
> Running:
>
> <ivy:resolve conf="runtime" />
> As long as it runs this works as expected.
>
> But: After a short while running on a CI (hudson) server, where the ivy
> repository also is placed, resolving stops working due to connection
> problems in httpClient.
> ---
>
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: I/O exception (java.net.BindException) caught when
> processing request: Address already in use: connect
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: Retrying request
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: I/O exception (java.net.BindException) caught when
> processing request: Address already in use: connect
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: Retrying request
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: I/O exception (java.net.BindException) caught when
> processing request: Address already in use: connect
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: Retrying request
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: I/O exception (java.net.BindException) caught when
> processing request: Address already in use: connect
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: Retrying request
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: I/O exception (java.net.BindException) caught when
> processing request: Address already in use: connect
> [ivy:resolve] 01-07-2008 13:16:24
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> [ivy:resolve] INFO: Retrying request ...............  ´╗┐and so on:
>
>
> which in the end results in unresolved dependencies.
>
> It looks like that the problem might be that every dependency is downloaded
> (ivy, checksum, artifacts) and after ~
> all connections on the server are used.
> So in effect <ivy:resolve> performs a dos against the repository.
>
> Does any one had any similar experiences, and have a solution?
> -- what I can come up with is to clean up the dev repository, but I find
> that somewhat a no-solution
>
>
>
> Should this be considered an ivy bug?

Absolutely, please open a JIRA. Could you test also without httpclient, to
see if it makes any difference?

Xavier


>
>
> Regards
> Hans Lund
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message