-6

无法从中央 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>
4

1 回答 1

1

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

首先,您归档存储库是否需要凭据。如果为真,请考虑像这样添加它们:

  <!-- 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>
于 2012-06-13T21:51:36.040 回答