ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Fleming <colin.mailingl...@gmail.com>
Subject Problem with publishing snapshot versions
Date Thu, 16 Aug 2007 17:49:13 GMT

Hi all,

I have a problem with snapshot versions in Ivy that's driving me crazy. I
have a local repository configured like this:

<filesystem name="local-repository" changingPattern="*-SNAPSHOT"
changingMatcher="glob">
  <ivy
pattern="${local.repo}/[organisation]/[module]/[revision]/ivys/ivy-[revision].xml"/>
  <artifact
pattern="${local.repo}/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[type]"/>
</filesystem>

And my publish task looks like this:

<target name="publish" depends="ivy.configure, bundle" if="has.manifest">
  <ivy:publish resolver="local-repository" overwrite="true"
forcedeliver="true">
    <artifacts pattern="${bundle.dir}/${bundle.pattern}" />
  </ivy:publish>
</target>

This looks like it works:

ivy:publish
:: publishing :: [ txcore | com.txcore.tools.ant ]
	validate = true
	published com.txcore.tools.ant to
/Users/colin/dev/platform/com.txcore.tools.ant/trunk/../../ivy-repo/txcore/com.txcore.tools.ant/0.0.1-SNAPSHOT/jars/com.txcore.tools.ant-0.0.1-SNAPSHOT.jar
	published ivy to
/Users/colin/dev/platform/com.txcore.tools.ant/trunk/../../ivy-repo/txcore/com.txcore.tools.ant/0.0.1-SNAPSHOT/ivys/ivy-0.0.1-SNAPSHOT.xml
	publish done (28ms)

But it doesn't actually update either the jar file or the ivy file, only the
hashes:

~/dev/platform> ls -l
ivy-repo//txcore/com.txcore.tools.ant/0.0.1-SNAPSHOT/ivys/
total 24
-rw-r--r--   1 colin  colin  983 Aug 16 13:19 ivy-0.0.1-SNAPSHOT.xml
-rw-r--r--   1 colin  colin   32 Aug 16 13:34 ivy-0.0.1-SNAPSHOT.xml.md5
-rw-r--r--   1 colin  colin   40 Aug 16 13:34 ivy-0.0.1-SNAPSHOT.xml.sha1
~/dev/platform> ls -l
ivy-repo//txcore/com.txcore.tools.ant/0.0.1-SNAPSHOT/jars
total 32
-rw-r--r--   1 colin  colin  5170 Aug 16 13:19
com.txcore.tools.ant-0.0.1-SNAPSHOT.jar
-rw-r--r--   1 colin  colin    32 Aug 16 13:34
com.txcore.tools.ant-0.0.1-SNAPSHOT.jar.md5
-rw-r--r--   1 colin  colin    40 Aug 16 13:34
com.txcore.tools.ant-0.0.1-SNAPSHOT.jar.sha1

As you can see, Ivy has updated the hashes but for some reason refuses to
update the jar and ivy files. What is going on here? Is there something
obvious I'm missing?

Thanks in advance,
Colin
-- 
View this message in context: http://www.nabble.com/Problem-with-publishing-snapshot-versions-tf4281108.html#a12186207
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message