2

作業中のプロジェクトでそのリポジトリのライブラリを使用できるように、settings.xml ファイルにリポジトリを追加しようとしています。これが私の現在のsettings.xmlファイルです。

<settings>
  .
  .

  <profiles>
    <profile>
      <id>standard-extra-repos</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      ...
      <repositories>

      <repository>
          <id>xuggle repo</id>
          <name>Xuggler Repository</name>
          <url>http://xuggle.googlecode.com/svn/trunk/repo/share/java/</url>
          <layout>default</layout>
          <releases><enabled>true</enabled><updatePolicy>never</updatePolicy></releases>
          <snapshots><enabled>true</enabled><updatePolicy>never</updatePolicy></snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
      ...
      </pluginRepositories>

    </profile>
  </profiles>
  .
</settings>

M2E (Maven 2 Eclipse) で適切な依存関係を検索してプロジェクトに追加できるように、Xuggler リポジトリを settings.xml に追加したいと考えています。II が wi​​ndow->show view->Maven->maven repositories に移動すると、xuggle リポジトリが表示されますが、完全に空です。必要な Jar が見つかりません。

4

2 に答える 2

3

推奨される方法は、Nexus などの Maven リポジトリ マネージャーを使用して、必要なリポジトリを管理することです。

設定ファイルの構成方法については、こちらを参照してください: http://books.sonatype.com/nexus-book/reference/config-maven.html#ex-maven-nexus-simple

于 2012-07-12T15:12:31.737 に答える
3

m2e からのリモート リポジトリの検索と参照をサポートするために、リポジトリは m2e インデックスを提供する必要があります。ここにはやや時代遅れのドキュメントがあります。

于 2012-07-12T15:12:37.943 に答える