I have "snapshots" and "releases" repos defined in my ~/.lein/profiles.clj
in order to avoid having to add these repos to each of the project.clj
files in the many lein projects that I develop internally at work:
{:user {:repositories [["snapshots" {:id "NudaySnapshots"
:url "http://nexus.example.com:8081/nexus/content/repositories/snapshots"}]
["releases" {:id "NudayReleases"
:url "http://nexus.example.com:8081/nexus/content/repositories/releases"
:sign-releases false}]]}
:auth {:repository-auth {#"nexus.example.com" {:username "deployment"
:password "foo bar baz"}}}}
Of course, every time I run lein deploy
in one of these internal projects, I get a warning:
:repositories detected in user-level profiles! [:user]
See https://github.com/technomancy/leiningen/wiki/Repeatability
I would like to suppress this warning, as I have intentionally set things up this way, and these projects cannot be "repeatably" built externally anyway.
Does anyone know how, or must I resort to reading the Leiningen source to figure this out?