Apache Archiva Maven

时间:2012-05-22 09:47:49

标签: apache maven 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 个答案:

答案 0 :(得分:1)

请添加错误日志等信息,以及您真正需要的信息!

作为一个开始,你的archiva存储库需要凭据吗?如果为true,请考虑像这样添加它们:

  <!-- 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>