Re: [sbt] Re: SBT publishing SNAPSHOT to a Maven repository, not creating/updating maven-metadata.xml

1,350 views
Skip to first unread message

Erlend Hamnaberg

unread,
Jan 7, 2013, 6:23:55 PM1/7/13
to simple-b...@googlegroups.com

Hi.

On Wed, Jan 2, 2013 at 4:06 PM, Adrian Spender <ai...@thespenders.co.uk> wrote:
Hi,

I've also hit this problem. In our case we cannot retrieve the latest released version from Nexus using their REST API as such:


Because that relies on interrogating the maven-metadata.xml to discover the latest version, and it never gets updated by sbt release.

Regards,

Adrian.


On Monday, 24 December 2012 05:55:44 UTC, Yak Shaver wrote:
We've been using SBT as the build tool of choice for some Scala projects being spiked here at Atlassian, but have run in to an integration problem to do with how Ivy is publishing snapshot artefacts to a Maven repository.

In short, no maven-metadata.xml file is being written; when going directly to the repository, this is OK. When this repository has a maven-aware caching proxy in front of it, the lack of this file causes the cache to not be updated, with the original artefact being served back to the requesting client.

<snip>

Try using the sbt-aether-deploy plugin
 
https://github.com/arktekk/sbt-aether-deploy

--
Erlend

Yak Shaver

unread,
Jan 7, 2013, 7:11:23 PM1/7/13
to simple-b...@googlegroups.com
Cheers Erlend, that's sorted the issue for us.
Reply all
Reply to author
Forward
0 new messages