1

Maven 3.0 と Apache Archiva をリモート内部リポジトリ (settings.xml でミラーとして構成) として使用していますが、SNAPSHOT アーティファクトのダウンロードに問題があります。

プロジェクト IntegrationTests で目標を実行できませんでした: プロジェクト com.br.bigdata:IntegrationTests:jar:1.0-SNAPSHOT の依存関係を解決できませんでした: archiva.default にアーティファクト com.br.bigdata:HBaseSchema:jar:1.0-SNAPSHOT が見つかりませんでした ( .../archiva/repository/internal/) -> [ヘルプ 1]

ここで同様の投稿を確認しましたが、問題を解決できませんでした。

Archiva リポジトリを確認しました。アーティファクトが存在し、正しい pom バージョンなどがあります。私の pom では、依存関係が指定されています。

    <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>HBaseSchema</artifactId>
        <version>${version.hbaseSchema}</version>
        <scope>test</scope>
    </dependency>

アーティファクトポン:

<groupId>com.br.bigdata</groupId>
<artifactId>HBaseSchema</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>HBaseSchema</name>
<description>Logical HBase schema</description>
4

1 に答える 1

2

並べ替えました。これを settings.xml に追加する必要があります

    <mirror>
  <id>archiva.snapshots</id>
  <url>http://localhost:8080/archiva/repository/snapshots</url>
  <mirrorOf>snapshots</mirrorOf>
</mirror>

<profile>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
    <repositories>
        <repository>
          <id>internal</id>
          <name>Archiva Managed Internal Repository</name>
          <url>https://lab-insighttc:8080/archiva/repository/internal</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
        <repository>
          <id>snapshots</id>
          <name>Archiva Managed Internal Repository</name>
          <url>https://lab-insighttc:8080/archiva/repository/snapshots/</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
    </repositories>
</profile>
于 2013-07-16T13:29:47.770 に答える