Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Tools by

So I'm trying to play around with deps.edn at work, but we have artifacts in a private maven repo, in leinigen we just specify the maven repo like so

`:repositories [["my.datomic.com" {:url "https://my.datomic.com/repo"

                                :username [:gpg :env/mydatomic_username]
                                :password [:gpg :env/mydatomic_password]}]
             ["releases" {:url           "https://nexus.example.com/content/repositories/releases"
                          :sign-releases false
                          :username      [:gpg :env/nexus_write_username]
                          :password      [:gpg :env/nexus_write_password]}]
             ["snapshots" {:url      "https://nexus.example.com/content/repositories/snapshots"
                           :username [:gpg :env/nexus_write_username]
                           :password [:gpg :env/nexus_write_password]}]]`

I know that I can specify maven repos in deps.edn with :mvn/repos, but I don't see a way to get the username and password from the environment

1 Answer

+2 votes
by

You can see https://clojure.org/reference/deps_and_cli#_procurers under "Maven authenticated repos" for more info on setting user and password for private Maven repos.

...