Skip to content

Obscure "no connector" error when repository not configured correctly. #1890

Closed
@timmc

Description

@timmc

I had the following code in my project.clj -- note the two repositories occupying the same vector:

  :deploy-repositories
  [["releases" {:url "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
                :creds :gpg}
    "snapshots" {:url "https://oss.sonatype.org/content/repositories/snapshots/"
                 :creds :gpg}]]

When I ran lein deploy, instead of a message about the snapshots repository not being configured, I get a warning about missing credentials and then an error about there not being a Maven connector:

timmc@bc-timmc:~/libre/johnny$ lein deploy
No credentials found for snapshots(did you mean `lein deploy clojars`?)
See `lein help deploying` for how to configure credentials to avoid prompts.
Username: timmc
Password: 
Compiling 49 source files to /home/timmc/libre/johnny/target/classes
Created /home/timmc/libre/johnny/target/johnny-0.1.0-SNAPSHOT.jar
Wrote /home/timmc/libre/johnny/pom.xml
Failed to deploy artifacts/metadata: No connector available to access repository snapshots (snapshots) of type default using the available factories FileRepositoryConnectorFactory, WagonRepositoryConnectorFactory

I think we could probably provide a clearer error than that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions