我部署命名为我们基于artifactory的仓库edireader.jar特定的罐子装一个罐子。在Artifactory中Edireader的存储库浏览器页面中,显示了以下依赖关系。我在模块的POM.xml中使用了相同的依赖关系。Maven的安装给错误的通过artifactory的
<dependency>
<groupId>com.berryworks</groupId>
<artifactId>edireader</artifactId>
<version>4.7.3</version>
</dependency>
在运行Maven的安装,我遇到下面的错误,
“com.berryworks:edireader:jar:4.7.3 (compile)]: Failed to read artifact descriptor for com.berryworks:edireader:jar:4.7.3: Could not find artifact com.berryworks:berryworks:pom:4.7.3 in central (http://SERVER_Name:PORT/artifactory/libs-releases)”
而且它试图下载从服务器名的jar:PORT/artifactory的/库的快照/ COM/berryworks/berryworks/4.7 .3/berryworks-4.7.3.pom这似乎是错误的,因为jar驻留在//SERVER_Name:PORT/artifactory/simple/libs-releases-local/com/berryworks/edireader/4.7.3/
我试着改变一切,但无法找到问题。我的问题是为什么它不选择jar duri ng maven install,因为它存在于artifactory服务器中。
编辑:这是我使用
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-releases</name>
<url>http://SERVER_Name:PORT/artifactory/libs-releases</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshots</name>
<url>http://SERVER_Name:PORT/artifactory/libs-snapshots</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-releases</name>
<url>http://SERVER_Name:PORT/artifactory/plugins-releases</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshots</name>
<url>http://SERVER_Name:PORT/artifactory/plugins-snapshots</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
它看起来是您的settings.xml配置或Artifactory中的配置不正确。通常,您必须在settings.xml文件中配置一个URL,从中下载工件(Artifactory)。必须在Artifactory中正确配置才能拥有包含所有其他人的单个回购。 – khmarbaise
@khmarbaise我不认为我有多个网址如上所示。 – C4CodeE4Exe
首先,我看到您发布的错误消息http:// SERVER_Name:PORT/artifactory/** libs-发布**,下载将从您的Artifactoy的libs-release区域完成,但是在您写入的文本中SERVER_Name:PORT/artifactory/** libs-snapshots **/com/berryworks/berryworks/4.7.3/berryworks-4.7.3.pom此外您还提供了必须在// SERVER_Name中找到工件的提示:PORT/artifactory/simple/** libs-releases-local **/com/berryworks/edireader/4.7.3 /所以问题:在Maven的错误消息中打印出哪一个? Artifactory中的配置如何? – khmarbaise