2013-02-06 3 views
1

나는 프로젝트를위한 프록시 저장소로 archiva를 설정하려고합니다.기본 리포지토리를 생략하고 있습니까?

: 나는 다음과 같은 키에 대한 참조 본 적이 생략 기본-저장소

을하지만 작동하는 표시되지 않습니다. 필자가 프로젝트 파일에 clojars 종속성을 적용 할 때 leiningen은 여전히 ​​내 프록시가 아닌 clojars를 사용하고 있습니다. 프로젝트 파일은 다음과 같습니다.

(defproject test-archiva "0.1.0-SNAPSHOT" 
    :description "FIXME: write description" 
    :url "http://example.com/FIXME" 
    :repositories [["snapshots", "http://myserver:8080/archiva/repository/snapshots"] 
       ["releases", "http://myserver:8080/archiva/repository/internal"]] 
    :omit_default_repositories true 
    :license {:name "Eclipse Public License" 
      :url "http://www.eclipse.org/legal/epl-v10.html"} 
    :dependencies [[org.clojure/clojure "1.4.0"] 
       [incanter "1.4.1"]]) 

도움이 될만한 자료가 있습니다.

+1

: omit-default-repositories 대 omit_default_reposotories ...... 차이가 있습니까? – djjolicoeur

+0

예, 버퍼로 변경했습니다 ... 저장하지 않은 것을 잊은 다음 원래의 _에 dein을 실행했습니다. 한 걸음 더 가까이. – jgerman

답변

1
(defproject test-archiva "0.1.0-SNAPSHOT" 
:description "FIXME: write description" 
:url "http://example.com/FIXME" 
:repositories [["snapshots", "http://myserver:8080/archiva/repository/snapshots"] 
      ["releases", "http://myserver:8080/archiva/repository/internal"]] 
:omit-default-repositories true 
:license {:name "Eclipse Public License" 
     :url "http://www.eclipse.org/legal/epl-v10.html"} 
:dependencies [[org.clojure/clojure "1.4.0"] 
      [incanter "1.4.1"]]) 

이 있었다처럼 그 ... 대신에 당신이 쓸 수

이제
1

하이픈 강조 보이는 시도 :

:repositories ^:replace [["snapshots", "http://myserver:8080/archiva/repository/snapshots"] 
       ["releases", "http://myserver:8080/archiva/repository/internal"]] 

나는이 기능을 소개하는 혼란 스럽다 찾을 수 있지만 작동 Leiningen 2.3.4 이상 버전.

관련 문제