ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Andrews (JIRA)" <j...@apache.org>
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
updated.
----------------------------------------------------------------------------------------------------

                 Key: IVY-1108
                 URL: https://issues.apache.org/jira/browse/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:

{noformat}
<ivysettings>
	<settings defaultResolver="chained"/>
	<latest-strategies>
		<latest-time name="time"/>
	</latest-strategies>
	<resolvers>
		<chain name="chained" returnFirst="true">
			<!-- For getting stuff from the Maven 2 repo on gendev-lnx -->
			<ibiblio
				name="internal"
				m2compatible="true"
				usepoms="false"
				root="http://gendev-lnx:9090/artifactory/repo"/>
			<!-- 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]"/>
			</url>
		</chain>
	</resolvers>
</ivysettings>
{noformat}

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:

{noformat}
[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
(working@A55584)
[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)
(375ms)
[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). java.io.FileNotFoundException: 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
{noformat}

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:

{noformat}
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
   Just trying to get the Ivy resolver to work.
-->
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation=
"http://ant.apache.org/ivy/schemas/ivy.xsd";>
   <info
       publication="20090805100012"
       organisation="com.ftid.sper"
       module="sperDbServer"
       status="integration">
   </info>
</ivy-module>
{noformat}

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.


Mime
View raw message