ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Andrews (JIRA)" <>
Subject [jira] Created: (IVY-1108) Makring an artifact as 'changing' (akak snapshots) doesn't work even if the ivy.xml file is updated.
Date Fri, 07 Aug 2009 13:04:14 GMT
Makring an artifact as 'changing' (akak snapshots) doesn't work even if the ivy.xml file is

                 Key: IVY-1108
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.1.0-RC1
         Environment: windows XP
            Reporter: Paul Andrews

I've been trying to use the 'changing' functionality of ivy to download a snapshot artifact
from another non-ivy build (this makes sense, as every other dependency is resolved by Ivy
for the dependent project):

This is the ivy settings file for the dependent project:

	<settings defaultResolver="chained"/>
		<latest-time name="time"/>
		<chain name="chained" returnFirst="true">
			<!-- For getting stuff from the Maven 2 repo on gendev-lnx -->
			<!-- For getting stuff from the hudson repo on gendev-lnx -->
			<url name="hudson_sper" changingMatcher="regexp" changingPattern=".*SNAPSHOT.*" checkmodified="true">
				<ivy pattern="http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml"
				<artifact pattern="http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/[artifact].[ext]"/>

The artifact in question is in the 'hudson_sper' 'repository'. That repo is just a hudson
build server and the ivy.xml file is not created by ivy since that project does not itself
use ivy.

Now to the ant output from the dependent project which is attempting to use ivy to download
the above artifact whenever it changes:

[ivy:resolve] don't use cache for com.ftid.sper#sperDbServer;SNAPSHOT: checkModified=true
[ivy:resolve]         tried http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml
[ivy:resolve]     hudson_sper: found md file for com.ftid.sper#sperDbServer;SNAPSHOT
[ivy:resolve]         => http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml
[ivy:resolve] downloading http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml
[ivy:resolve]     hudson_sper: downloading http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml
[ivy:resolve] CLIENT ERROR: Not Found url=http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml.sha1
[ivy:resolve] CLIENT ERROR: Not Found url=http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml.md5
[ivy:resolve]     [SUCCESSFUL ] com.ftid.sper#sperDbServer;SNAPSHOT!ivy.xml(ivy.original)
[ivy:resolve] com.ftid.sper#sperDbServer;SNAPSHOT is changing, but has not changed: will trust
cached artifacts if any
[ivy:resolve] WARN: impossible to put metadata file in cache: http://gendev-lnx:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/ivy.xml
(working@A55584). C:\Documents and Settings\pandrews\.ivy2\cache\com.ftid.sper\sperDbServer\ivy-working@A55584.xml.original
(The system cannot find the file specified)
[ivy:resolve]     found com.ftid.sper#sperDbServer;SNAPSHOT in hudson_sper

I don't know if the warning is significant. There is the following file in the cache ivy-SNAPSHOT.xml.originalbut
not ivy-working@A55584.xml.original (could this be a windows thing?). FYI this is the contents
of my published ivy.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
   Just trying to get the Ivy resolver to work.
<ivy-module version="2.0"

The 'publication' attribute is updated with every build, so both the contents and the modified
time stamp of the ivy.xml file change.

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

View raw message