ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-934) ivy:buildnumber Task can cause ivy:resolve to 'hang' forever
Date Sun, 05 Oct 2008 21:21:44 GMT

    [ https://issues.apache.org/jira/browse/IVY-934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636968#action_12636968
] 

Maarten Coene commented on IVY-934:
-----------------------------------

I think Scott could be right, these 2 issues might be related.

Could you please try with trunk version to see if your problem has been fixed?
You can download the latest snapshot here: http://teamcity.jetbrains.com/viewLog.html?&buildTypeId=bt125&buildId=lastSuccessful

> ivy:buildnumber Task can cause ivy:resolve to 'hang' forever
> ------------------------------------------------------------
>
>                 Key: IVY-934
>                 URL: https://issues.apache.org/jira/browse/IVY-934
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0-RC1
>         Environment: fedora-core 9, jdk1.6..11, ant  1.7.0 
>            Reporter: Hans Lund
>
> if the ivy:buildnumber ant task fails (when a module has not been published -yet ) later
ivy:resolve ant tasks that do not have an explicit revision hangs forever.
> preconditions: resolving over http to single repository. 
> Steps to reproduce:
> ivy.xml with some dependencies like:
> <dependencies>    
>         <dependency org="junit" name="junit" rev="3.8.2" conf="test->default"/>
       
>         <dependency org="org.mortbay.jetty" name="jetty" rev="6.+" conf="default->default"
/>        
> </dependencies>
> buildfile with:
> <target name="ivy-buildnumber-resolve-bug" depends="init-ivy">
>         <ivy:buildnumber organisation="org.bug"
> 		module="bug" />
> 		<ivy:resolve />
>         <ivy:retrieve sync="true" pattern="${ivy.lib.dir}/[artifact].[ext]"/>
>  </target>
>     
>  <target name="resolve-dependencies" depends="init-ivy">
>            <ivy:resolve />
>            <ivy:retrieve sync="true" pattern="${ivy.lib.dir}/[artifact].[ext]"/>
>  </target>
> now ant - verbose ivy-buildnumber-resolve-bug gives to following stacktrace:
> [ivy:resolve] using ivy parser to parse file:/home/halu/IvyBug/ivy.xml
> [ivy:resolve] :: resolving dependencies :: org.bug#ivybuildnumberbug;working@localhost.localdomain
> [ivy:resolve] 	confs: [default, master, compile, provided, runtime, test, system, optional]
> [ivy:resolve] 	validate = true
> [ivy:resolve] 	refresh = false
> [ivy:resolve] resolving dependencies for configuration 'default'
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[default]
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[runtime]
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[compile]
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[master]
> [ivy:resolve] == resolving dependencies org.bug#ivybuildnumberbug;working@localhost.localdomain->org.mortbay.jetty#jetty;6.+
[default->default]
> [ivy:resolve]  : Checking cache for: dependency: org.mortbay.jetty#jetty;6.+ {default=[default]}
> [ivy:resolve] no cached resolved revision for org.mortbay.jetty#jetty;6.+
> [ivy:resolve] no cached resolved revision for org.mortbay.jetty#jetty;6.+
> [ivy:resolve] 		tried http://localhost/repository/org.mortbay.jetty/jetty/ivys/ivy-[revision].xml
> freeze  ...  <ctrl>+c
> C[ivy:resolve] WARN: problem while listing resources in http://localhost/repository/org.mortbay.jetty/jetty/ivys
with local-repo:
> [ivy:resolve] WARN:   java.lang.IllegalStateException Connection factory has been shutdown.
> [ivy:resolve] 		tried http://localhost/repository/org.mortbay.jetty/jetty/jars/jetty-[revision].jar
> [ivy:resolve] WARN: problem while listing resources in http://hudson.msrd.multi-support.com/repository/org.mortbay.jetty/jetty/jars
with local-repo:
> [ivy:resolve] WARN:   java.lang.IllegalStateException Connection factory has been shutdown.
> [ivy:resolve] 	Multisupport-IvyRepository: no ivy file nor artifact found for org.mortbay.jetty#jetty;6.+
> [ivy:resolve] WARN: 	module not found: org.mortbay.jetty#jetty;6.+
> [ivy:resolve] WARN: ==== local-repo: tried
> [ivy:resolve] WARN:   http://localhost/repository/org.mortbay.jetty/jetty/ivys/ivy-[revision].xml
> [ivy:resolve] WARN:   -- artifact org.mortbay.jetty#jetty;6.+!jetty.jar:
> [ivy:resolve] WARN:   http://localhost/repository/org.mortbay.jetty/jetty/jars/jetty-[revision].jar
> [ivy:resolve] resolving dependencies for configuration 'master'
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[master]
> [ivy:resolve] resolving dependencies for configuration 'compile'
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[compile]
> [ivy:resolve] resolving dependencies for configuration 'provided'
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[provided]
> [ivy:resolve] resolving dependencies for configuration 'runtime'
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[runtime]
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[compile]
> [ivy:resolve] resolving dependencies for configuration 'test'
> [ivy:resolve] == resolving dependencies for org.bug#ivybuildnumberbug;working@localhost.localdomain
[test]
> [ivy:resolve] == resolving dependencies org.bug#ivybuildnumberbug;working@localhost.localdomain->junit#junit;3.8.2
[test->default]
> [ivy:resolve]  : Checking cache for: dependency: junit#junit;3.8.2 {test=[default]}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message