簡體   English   中英

為什么我不能從JFrog存儲庫下載工件?

[英]why can't I download artifacts from JFrog repository?

JFrog artifactory加載了902個工件,我設置為通過存儲庫上傳。 但我無法下載或查看我的工件。 我甚至不太明白問題是什么。

在此輸入圖像描述

在此輸入圖像描述

從文件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

錯誤是您在settings.xml中重復了server-id'maven-external'。 檢查您的配置。

實際錯誤似乎是:

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

所以第一步是確保在執行atlas-create-之前有一個pom.xml

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM