为什么我不能从 JFrog 存储库下载工件?
why can't I download artifacts from JFrog repository?
JFrog artifactory加载了902个artifacts,我设置为通过repository上传。但我无法下载或查看我的工件。连问题是什么我都不太明白
从文件设置 maven settings.xml
<?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 中有重复的服务器 ID 'maven-external'。
检查您的配置。
实际错误似乎是:
Goal requires a project to execute,
but there is no POM in this directory (D:\Newfolder1)
所以第一步是确保在执行 atlas-create-
之前有 pom.xml
这个答案对我有帮助。如果您更改 \atlassian-plugin-sdk-6.3.6\apache-maven-3.2.1\conf 文件夹中的 settings.xml,则应删除 .m2 中的问题 folder.Her。
JFrog artifactory加载了902个artifacts,我设置为通过repository上传。但我无法下载或查看我的工件。连问题是什么我都不太明白
从文件设置 maven settings.xml
<?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 中有重复的服务器 ID 'maven-external'。 检查您的配置。
实际错误似乎是:
Goal requires a project to execute,
but there is no POM in this directory (D:\Newfolder1)
所以第一步是确保在执行 atlas-create-
之前有pom.xml
这个答案对我有帮助。如果您更改 \atlassian-plugin-sdk-6.3.6\apache-maven-3.2.1\conf 文件夹中的 settings.xml,则应删除 .m2 中的问题 folder.Her。