Configuring maven mirrors for SBT 0.12

466 views
Skip to first unread message

rkl...@gmail.com

unread,
Feb 26, 2013, 4:28:07 AM2/26/13
to simple-b...@googlegroups.com
Hi all,

it seems that maven is down again. I try building a project that uses scalatest, which worked fine yesterday. Now it is unable to download the scalatest jar. I tried search.maven.org to make sure I have the right version, but it seems to be down. I thought it might be filtered by my helpful office firewall, but it is down even when I access it using my smartphone.

...
[warn]   http://repo1.maven.org/maven2/org/scalatest/scalatest_2.10.0/1.9.1/scalatest_2.10.0-1.9.1.pom
...

So how do I configure a mirror so that sbt is able to resolve dependencies even if maven is down? I saw some posts for sbt 0.9, but I am using sbt 0.12. I read somewhere that repo1.maven.org is already mirrored, but that does not seem to work.

cheers,

Rüdiger

rkl...@gmail.com

unread,
Feb 26, 2013, 5:20:39 AM2/26/13
to simple-b...@googlegroups.com
Nevermind.

It was just the sbt 0.11 msi that I have installed on windows biting me again. By installing a build.properties containing sbt.version=0.12.2, I fixed the issue. It is still kind of annoying that search.maven.org and www.maven.org are down. I tried adding this to the project/build.sbt:

resolvers += "ibiblio maven mirror" at "http://mirrors.ibiblio.org/maven2/"

Would that work?

Mark Harrah

unread,
Feb 27, 2013, 11:55:05 AM2/27/13
to simple-b...@googlegroups.com
On Tue, 26 Feb 2013 02:20:39 -0800 (PST)
rkl...@gmail.com wrote:

> Nevermind.
>
> It was just the sbt 0.11 msi that I have installed on windows biting me
> again. By installing a build.properties containing sbt.version=0.12.2, I
> fixed the issue. It is still kind of annoying that search.maven.org and
> www.maven.org are down. I tried adding this to the project/build.sbt:
>
> resolvers += "ibiblio maven mirror" at "http://mirrors.ibiblio.org/maven2/"
>
> Would that work?

The best way might be to define repositories at the user level. See:

http://www.scala-sbt.org/release/docs/Detailed-Topics/Proxy-Repositories.html

(You wouldn't be using a proxy, but the idea is the same.)

-Mark

> On Tuesday, February 26, 2013 10:28:07 AM UTC+1, rkl...@gmail.com wrote:
> >
> > Hi all,
> >
> > it seems that maven is down again. I try building a project that uses
> > scalatest, which worked fine yesterday. Now it is unable to download the
> > scalatest jar. I tried search.maven.org to make sure I have the right
> > version, but it seems to be down. I thought it might be filtered by my
> > helpful office firewall, but it is down even when I access it using my
> > smartphone.
> >
> > ...
> > [warn]
> > http://repo1.maven.org/maven2/org/scalatest/scalatest_2.10.0/1.9.1/scalatest_2.10.0-1.9.1.pom
> > ...
> >
> > So how do I configure a mirror so that sbt is able to resolve dependencies
> > even if maven is down? I saw some posts for sbt 0.9, but I am using sbt
> > 0.12. I read somewhere that repo1.maven.org is already mirrored, but that
> > does not seem to work.
> >
> > cheers,
> >
> > Rüdiger
> >
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages