ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Eacott (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-1136) Cannot retreive multiple files from hudson with url resolver
Date Thu, 26 Nov 2009 08:04:39 GMT

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

Jason Eacott commented on IVY-1136:
-----------------------------------

I built from latest ivy and ran it again, same problem.
 I checked the url it said failed with wget immediately after the ant build completed from
same machine I ran ant and it downloaded fine.
tried with ant -v  and nothing new really in the log, but an exception was thrown
BUILD FAILED
/home/hudson/.hudson/jobs/myserver-test/workspace/trunk/build.xml:81: impossible to resolve
dependencies:
        resolve failed - see output for details
        at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:318)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:214)
        at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:161)
        at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49)
        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)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: resolve failed - see output for details
        at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
        ... 21 more
--- Nested Exception ---
resolve failed - see output for details
        at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:214)
        at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:161)
        at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49)
        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)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


> Cannot retreive multiple files from hudson with url resolver  
> --------------------------------------------------------------
>
>                 Key: IVY-1136
>                 URL: https://issues.apache.org/jira/browse/IVY-1136
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows, Ubuntu, sun jdk 1.6.0_12,  ant 1.7.1
>            Reporter: Jason Eacott
>
> hi all, I've had this problem for a while and have been hoping it might get fixed once
v 2.1 was released. alas it seems not.
> I'm trying to use Ivy in a hudson build environment (not using the ivy hudson plugin),
from an ordinary ant build script.
> If I have just one dependency in hudson then ivy retrieves it just fine. 
> However if I have more than one then ONLY the first one listed in the ivy.xml is retrieved.
the rest fail.
> if I rearrange them only the first one is ever retrieved, so individually I know the
ivy.xml entries are ok.
> I tested hudsons' concurrency capacity and it seems just fine, so I think the problem
is either with ivy, or my config.
> my ivy.xml - 
>    <info 
>         organisation="abc.com"
>         module="mymodule"
>         status="integration">
>    </info>
> 	
>    <dependencies>
> 	   <dependency  name="myprojdep1" rev="latest.integration" force="true" conf="*->*,!sources,!javadoc"/>
>            <dependency  name="myprojdep2" rev="latest.integration" force="true"  conf="*->*,!sources,!javadoc"/>
<!-- this will fail every time with module not found-->
>    </dependencies>
> my settings:
> <ivysettings>
> 	<properties file="${ivy.settings.dir}/ivysettings.properties"/>
> 	<property name="ivy.local.default.root"             value="${ivy.default.ivy.user.dir}/local"
override="false"/>
> 	<property name="ivy.local.default.ivy.pattern"      value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"
override="false"/>
> 	<property name="ivy.local.default.artifact.pattern" value="[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"
override="false"/>
> 	<property name="ivy.checksums" value=""></property>
>   <settings defaultResolver="libraries"/>
> 	<caches>
>   	  <cache name="localcache" basedir="${ivy.settings.dir}/ivy-cache" />
> 	</caches> 
> 	
> 	<resolvers>
> 	<!-- if we cant find it locally check hudson (should work so that if we are developing
it will find dev project artifacts locally) -->
> 	<chain name="localthenhudson">
> 		<filesystem name="projects"  cache="localcache" >
> 			<artifact pattern="${basedir}/../[module]/dist/[artifact].[ext]" />
> 			<ivy pattern="${basedir}/../[module]/ivy.xml" />
> 		</filesystem>
> 		<url name="hudsonartifacts" cache="localcache" >
> 		  <artifact pattern="http://myhudsonhost:8080/job/[module]-test/lastSuccessfulBuild/artifact/trunk/dist/[module].[ext]"
/>
> 		 </url>
> 		</resolvers>
> 	<modules>
> 		<module organisation="myorg" name=".*" resolver="localthenhudson" />
> 	</modules>
> </ivysettings>
> hints, & help welcomed.
> Thanks.

-- 
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