You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Colin Fleming <co...@gmail.com> on 2007/08/16 19:49:13 UTC

Problem with publishing snapshot versions

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.


Re: Problem with publishing snapshot versions

Posted by Colin Fleming <co...@gmail.com>.
Actually, never mind - I had a combination of stupid problems, it seems to
work correctly now.

Sorry for the noise,
Colin

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