【问题标题】:why can't I download artifacts from JFrog repository?为什么我不能从 JFrog 存储库下载工件?
【发布时间】:2018-01-26 06:27:57
【问题描述】:

JFrog神器加载了902神器,我设置通过仓库上传。但我无法下载或查看我的工件。我什至不太明白问题是什么。

从文件 settings.xml 设置 ma​​ven

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

【问题讨论】:

    标签: maven jira artifactory


    【解决方案1】:
    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

      实际的错误似乎是:

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

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

      【讨论】:

      • pom.xml 创建图集。比 atlassian 在存储库中创建 pom.xml 必要的下载工件:3
      • @timob256 当然可以,但要确保 pom.xml 实际上是在 D:\NewFolder1 中创建的
      猜你喜欢
      • 2021-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-30
      • 1970-01-01
      • 2018-09-10
      • 2023-01-11
      相关资源
      最近更新 更多