1

ear-jee5 をアーキタイプとして EAR Maven モジュール プロジェクト (Eclipse) を作成しようとしています。次のエラーで失敗します。

Could not resolve archetype org.codehaus.mojo.archetypes:ear-jee5:1.3 from any of the configured repositories.
Could not resolve artifact
Missing org.codehaus.mojo.archetypes:ear-jee5:pom:1.3

誰かがこのエラーを解決するのを手伝ってくれますか、または Maven EAR モジュールのプロジェクト構造を作成する別の方法を教えてくれませんか?

ありがとう。

4

1 に答える 1

1

どうやら、失敗は私がオフィスのプロキシ/ファイアウォールの後ろにいるためのようです。解決策は、settings.xmlにプロキシ構成を追加するか、ファイアウォールによってブロックされていないリポジトリミラーを追加することです。

これが誰かに役立つことを願っています。

プロキシを追加する

  <proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     |
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.host.net</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    -->
  </proxies>

またはミラー

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

ありがとう

于 2011-06-10T04:49:05.600 に答える