How to resolve dependencies through proxy repository

57 views
Skip to first unread message

Prasad Ganta

unread,
Oct 15, 2014, 9:24:12 AM10/15/14
to simple-b...@googlegroups.com
Hello guyz,

please answer this question even if it is looking dumb...

I have some dependencies in my Build.scala file and by default all the dependencies are getting resolved from mave/typesafe public repo.
so far I dont have any issues, now I want to resolve all my public or internal dependencies through private repository which is hosted on internal server.

Here what I did so far

- Currently we are using Artifactory as our proxy server, so I prepared artifactory to download required dependencies from various public repos.
- Added resolvers in Build.scala like below

 resolvers := Seq("snapshots" at "http://hostedurl/artifactory/libs-snapshot-local/",
        "typesafe-cache" at "http://hostedurl/artifactory/typesafe",
        " repo1-cache" at "http://hostedurl/artifactory/repo1")

Now the problem

It is not resolving the dependencies through above urls, it is resolving with default repo urls comes with sbt.

as per the document I needs to make some changes to ~/.sbt/repositories I am not able to find the files mentioned in the document(Ia m using windows machine)

Can anyone please help me with the above issue.


Thanks
Prasad 

Brian Smith

unread,
Oct 28, 2014, 7:51:08 PM10/28/14
to simple-b...@googlegroups.com
The repositories file will need to be created at %USERPROFILE%\.sbt\repositories on Windows.  It probably won't already exist.

You'll need to replace the addresses in the examples on the page you linked with your local addresses for artifactory but the pattern for artifacts should work fine.

When you've done that, you ought not to need to set resolvers in your project's Build.scala unless your artifactory hasn't been configured with them.

Hope that helps


--
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/d/optout.

Reply all
Reply to author
Forward
0 new messages