I have a maven repository with authentication, and I want sbt to use only the maven repository
My build.sbt:
resolvers += "My Repo" at "https://my.repository.addresss/repo/"
externalResolvers <<= resolvers map { rs =>
Resolver.withDefaultResolvers(rs, mavenCentral = false)
}
But when I type sbt clean compile
, it is still download from repo1.maven.org, I can not override it!
As my maven repo has to authenticate, so it always fails when I put default repo config in ~/.sbt/repositories
Is there any way that I can use my repo only, and authenticate successful?