Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corporate repository will not pull down templates correctly #1785

Closed
tomgeorge opened this issue Dec 15, 2014 · 4 comments
Closed

Corporate repository will not pull down templates correctly #1785

tomgeorge opened this issue Dec 15, 2014 · 4 comments
Labels

Comments

@tomgeorge
Copy link

I'm working on my corporate network with the following profiles.clj:

{:user
  {:mirrors
     {"central" {:name "central"
                      :url "http://corp.com/artifactory/maven"}
      "clojars" {:name "clojars" ; I've tried all kinds of names for these
                     :url "http://corp.com/artifactory/maven"}}}} ; clojars is mirrored in our maven repo

when I try to make a new template project e.g.
lein new compojure test-compoj

It pulls down everything except for the template:

Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.pom from maven
Retrieving org/clojure/pom.contrib/0.1.2/pom.contrib-0.1.2.pom from maven
Retrieving org/sonatype/oss/oss-parent/7/oss-parent-7.pom from maven
Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.pom from maven
Retrieving org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar from maven
Retrieving clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar from maven
Applying task new to (compojure compoj-test)
Failed to resolve version for compojure:lein-template:jar:RELEASE: Could not find metadata compojure:lein-template/maven-metadata.xml in local (/home/tgeorge/.m2/repository)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template compojure on the classpath.

When I look in ~/.m2/repository/compojure/lein-template I see a file called resolver-status.properties with the contents:

#NOTE: This is an internal implementation file, its format can be changed without prior notice.
#Mon Dec 15 14:51:21 EST 2014
maven-metadata-clojars.xml/default-http\://clojars.org/repo/.lastUpdated=1418673081745
maven-metadata-central.xml.error=Could not transfer metadata compojure\:lein-template/maven-metadata.xml from/to central (http\://repo1.maven.org/maven2)\: repo1.maven.org\: Name or service not known
maven-metadata-central.xml/default-http\://repo1.maven.org/maven2/.lastUpdated=1418673081745
maven-metadata-clojars.xml.error=Could not transfer metadata compojure\:lein-template/maven-metadata.xml from/to clojars (http\://clojars.org/repo/)\: clojars.org\: Name or service not known

It looks like it's trying to find the maven-metadata.xml files on clojars.org/maven.org, but they are inaccessable through my network. Is there a way to tell leiningen to look on my mirrored repositories for this metadata?

I'd also be willing to investigate this myself if I had a place to start off. Not sure if this is an issue with leinengen or Aether (I read in the pomegranate library that leiningen 2.0 was using this exclusively), or neither.

@hypirion hypirion added the bug label Jan 15, 2015
@dpassen
Copy link

dpassen commented May 25, 2015

I'm running into this issue, as well.

@tomgeorge
Copy link
Author

Did you find any workaround for this?

@dpassen
Copy link

dpassen commented Jun 19, 2015

Nope.

@Hardtack
Copy link
Contributor

I made a pull request for this issue. #1970

@Hardtack Hardtack mentioned this issue Aug 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants