Authentication on Maven repositories

Description

Latest patch: TDEPS-9-a.patch

Support for Maven repositories which require authentication, such as username/password.

In Aether, see Builder.setAuthentication and AuthenticationBuilder

Environment

tools.deps 0.1.73

Activity

Show:
Alex Miller
May 12, 2018, 4:16 AM

Applied for next release

Alex Miller
May 12, 2018, 6:53 AM

Released in clj 1.9.0.381

Thomas Spellman
May 20, 2018, 11:22 PM

I usually use env variables to set maven repo username/password with CI services. I created a commit here: https://github.com/thosmos/tools.deps.alpha/commit/fc906af7bf843918a4741c245a2e353f8fd4927e that combines the approaches of patches A and C and also adds the ability to use keywords in the deps.edn file to refer to env variables,
i.e.

:mvn/repos
{"my.datomic.com" {:url "https://my.datomic.com/repo"
:username :env/DATOMIC_USERNAME
assword :env/DATOMIC_PASSWORD}}

I've created a patch but this issue won't allow me to add it.

Alex Miller
May 20, 2018, 11:34 PM

Hi Thomas,

Right now, I'm not interested in doing this but feel free to file a new issue and we can re-assess the approach in a few months.

Alex

Dominic Monroe
May 27, 2018, 9:54 AM

Fwiw, you can use environment variables in settings.xml via `${env.DATOMIC_USERNAME}`.

Assignee

Alex Miller

Reporter

Stuart Sierra

Labels

None

Approval

None

Patch

None

Priority

Major
Configure