Unable to fetch Snapshot dependency

59 views
Skip to first unread message

Aurélien Manteaux

unread,
Jul 8, 2013, 3:59:00 AM7/8/13
to simple-b...@googlegroups.com
Hello,

I am trying to use a library in a snapshot version on a Nexus repository.
The problem is that SBT is looking for the wrong pom file in the repository :
[warn] ==== My Repository: tried
[warn]   http://nexus.mydomain.com/nexus/content/groups/intern/library-name/2.0-SNAPSHOT/library-name-2.0-SNAPSHOT.pom

In fact, SBT should look for the maven-metadata.xml file in http://nexus.mydomain.com/nexus/content/groups/intern/library-name/2.0-SNAPSHOT/ and then find the correct name :
http://nexus.mydomain.com/nexus/content/groups/intern/library-name/2.0-SNAPSHOT/library-name-2.0-20130705.143455-1.pom

Besides, if i try to use Maven to fetch this snapshot, it works fine.

What should I do to make SBT understand how to use my snapshot library in my repository configured with snapshotVersionBehavior=unique ?

Thanks!

Aurélien

Mark Harrah

unread,
Jul 8, 2013, 11:35:38 AM7/8/13
to simple-b...@googlegroups.com
On Mon, 8 Jul 2013 00:59:00 -0700 (PDT)
Aurélien Manteaux <aman...@gmail.com> wrote:

> Hello,
>
> I am trying to use a library in a snapshot version on a Nexus repository.
> The problem is that SBT is looking for the wrong pom file in the repository
> :
> [warn] ==== My Repository: tried
> [warn]
> http://nexus.mydomain.com/nexus/content/groups/intern/library-name/2.0-SNAPSHOT/
> *library-name-2.0-SNAPSHOT.pom*
> *library-name-2.0-20130705.143455-1.pom*

sbt uses Ivy, which will normally know to look for a maven-metadata.xml file. How is the repository configured in the build definition?

-Mark

> Besides, if i try to use Maven to fetch this snapshot, it works fine.
>
> What should I do to make SBT understand how to use my snapshot library in
> my repository configured with snapshotVersionBehavior=unique ?
>
> Thanks!
>
> Aurélien
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
> To post to this group, send email to simple-b...@googlegroups.com.
> Visit this group at http://groups.google.com/group/simple-build-tool.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Aurélien Manteaux

unread,
Jul 8, 2013, 1:19:28 PM7/8/13
to simple-b...@googlegroups.com
In fact the missing dependency was due to the basic auth on the repository server : http://stackoverflow.com/questions/11603607/sbt-dependency-resolver-with-basic-auth

It would have been nice to have a clearer error log.

Anyway, thanks for your help.

Aurélien

Mark Harrah

unread,
Jul 12, 2013, 5:56:04 PM7/12/13
to simple-b...@googlegroups.com
On Mon, 8 Jul 2013 10:19:28 -0700 (PDT)
Aurélien Manteaux <aman...@gmail.com> wrote:

> In fact the missing dependency was due to the basic auth on the repository
> server :
> http://stackoverflow.com/questions/11603607/sbt-dependency-resolver-with-basic-auth
>
> It would have been nice to have a clearer error log.

I haven't looked into the bug on this[1] because I assumed it was on Ivy's part. For 0.13.1, I'll at least try to look at whether it can be fixed on sbt's side

-Mark

[1] https://github.com/sbt/sbt/issues/429
> > an email to simple-build-t...@googlegroups.com <javascript:>.
> > > To post to this group, send email to simple-b...@googlegroups.com<javascript:>.
Reply all
Reply to author
Forward
0 new messages