【问题标题】:Cannot download "internal" SNAPSHOT artefacts from Apache archiva无法从 Apache 档案下载“内部”快照人工制品
【发布时间】:2013-07-16 13:02:03
【问题描述】:

我使用 maven 3.0 和 Apache Archiva 作为远程内部存储库(在 settings.xml 中配置为 mirrior),但我在下载 SNAPSHOT 工件时遇到问题。

无法在项目 IntegrationTests 上执行目标:无法解析项目 com.br.bigdata:IntegrationTests:jar:1.0-SNAPSHOT 的依赖关系:在档案中找不到工件 com.br.bigdata:HBaseSchema:jar:1.0-SNAPSHOT .default (.../archiva/repository/internal/) -> [帮助 1]

我在这里查看了类似的帖子,但无法解决我的问题。

我检查了 Archiva 存储库,存在工件,正确的 pom 版本等。 在我的 pom 中指定了依赖项:

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

神器pom:

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

【问题讨论】:

    标签: maven repository maven-3 snapshot archiva


    【解决方案1】:

    已排序。这需要添加到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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-18
      • 1970-01-01
      相关资源
      最近更新 更多