1

We have a company Nexus, and our company is behind a restrictive proxy. How do I tell SBT to only use this Nexus server?

When I create an SBT project in IDEA, I get "error while importing sbt project". I the tried to add this line to my build.sbt:

resolvers += "Company NEXUS" at "http://our.nexus.com/content/groups/public/"

But IDEA tells me it cannot resolve symbol += and when I try sbt compile on the console I get tons of "connection refused" because it tries to connect to repo1.maven.org and oss.sonatype.org.

So, how do I configure this?

rabejens
  • 7,594
  • 11
  • 56
  • 104

1 Answers1

0

This is a duplicate of how do I get sbt to use a local maven proxy repository (Nexus)?

See this answer, which references the documentation on Proxy Repositories.

Community
  • 1
  • 1
Dale Wijnand
  • 6,054
  • 5
  • 28
  • 55