2012-05-22 39 views
-6

無法從中央Maven存儲庫下載工件。Apache Archiva Maven

<mirrors> 
    <!-- mirror 
    | Specifies a repository mirror site to use instead of a given repository. The repository that 
    | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used 
    | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. 
    | 
    <mirror> 
     <id>mirrorId</id> 
     <mirrorOf>repositoryId</mirrorOf> 
     <name>Human Readable Name for this Mirror.</name> 
     <url>http://my.repository.com/repo/path</url> 
    </mirror> 
    --> 
    <mirror> 
     <id>internal</id> 
     <name>Proxy Cache - Internal Repository</name> 
     <url>http://localhost:8080/archiva/repository/internal</url> 
     <mirrorOf>*</mirrorOf> 
    </mirror> 

    </mirrors> 
+1

問題是什麼?你想做什麼?你最近做了什麼改變?添加更多信息以獲得回覆 – theAlse

+0

可能是archiva配置的問題。您是否也可以按照archiva [documentation](http://archiva.apache.org/docs/1.4-M2/userguide/using-repository.html)中所述的方式進行配置? – Raghuram

+0

你有什麼樣的問題? 要顯示的日誌? –

回答

1

請添加信息,如錯誤日誌,以及您真正需要的東西!

作爲一個開始,你的archiva存儲庫是否需要證書。如果屬實,請考慮像這樣添加它們:

<!-- servers 
    | This is a list of authentication profiles, keyed by the server-id used within the system. 
    | Authentication profiles can be used whenever maven must make a connection to a remote server. 
    |--> 
    <servers> 
     <server> 
      <id>internal</id> 
      <username>username</username> 
      <password>password</password> 
     </server> 
    </servers>