为什么我不能从JFrog存储库下载工件?

时间:2018-01-26 06:27:58

标签: maven jira artifactory

JFrog artifactory加载了902个工件,我设置为通过存储库上传。但我无法下载或查看我的工件。我甚至不太明白这个问题是什么。

enter image description here

enter image description here

从文件 settings.xml

设置 maven
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <servers>
   .......
  </servers>
  <mirrors>
    <mirror>
      <mirrorOf>*</mirrorOf>
      <name>libs-snapshot</name>
      <url>http://localhost:8081/artifactory/libs-snapshot</url>
      <id>libs-snapshot</id>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <repositories>
        <repository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>libs-release</name>
          <url>http://localhost:8081/artifactory/libs-release</url>
        </repository>
        <repository>
          <snapshots />
          <id>snapshots</id>
          <name>libs-snapshot</name>
          <url>http://localhost:8081/artifactory/libs-snapshot</url>
        </repository>
      </repositories>
      <pluginRepositories>
       ........
      </pluginRepositories>
      <id>artifactory</id>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>artifactory</activeProfile>
  </activeProfiles>
</settings>

我看到存储库没有下载并尝试从.m2文件夹中获取数据:3

3 个答案:

答案 0 :(得分:2)

答案 1 :(得分:0)

错误是说您有服务器ID重复&#39; maven-external&#39;在您的settings.xml中。 检查您的配置。

答案 2 :(得分:0)

实际错误似乎是:

Goal requires a project to execute, 
but there is no POM in this directory (D:\Newfolder1)

所以第一步是确保在执行atlas-create之前有一个pom.xml -