我的团队正在使用JFrog artifactory,并且已经部署了第三方库。
我的settings.xml:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>dev</id>
<properties>
<artifactory.url>http://myartifactory.com</artifactory.url>
<artifactory.username>blah</artifactory.username>
<artifactory.passwd>blah</artifactory.passwd>
<artifactory.maven.snapshot>maven-integration-local</artifactory.maven.snapshot>
<artifactory.maven.thirdparty>maven-third-party-local</artifactory.maven.thirdparty>
<artifactory.maven.rc>maven-release-candidate-local</artifactory.maven.rc>
<artifactory.maven.release>maven-release-local</artifactory.maven.release>
<artifactory.maven.all>maven-repo</artifactory.maven.all>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>snapshot-repo</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>interval:1</updatePolicy>
</snapshots>
<name>maven-integration-local</name>
<url>http://myartifactory.com</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jcenter</id>
<url>http://jcenter.bintray.com</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>artifactory-plugin</id>
<url>${artifactory.url}/${artifactory.maven.all}</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
神器包含一个pom,我自己的项目依赖于它(用于构建我自己的本地项目的pom的BOM样式导入)。而且看起来maven成功下载所有FINE,直到它到达一个特定的罐子:
无法解决项目xxx的依赖关系:1.1.0:以下内容 工件无法解决:com.japisoft:xmlpad-res:jar:3.7
我检查过,jar确实存在于artifactory(xmlpad-res-3.7.jar)中,但是maven声称它无法找到它。我尝试下载jar并使用maven install插件安装它,但这没有帮助。
为什么maven找不到该文件,我该怎么办呢?
答案 0 :(得分:0)
我错误地删除/修改了maven .settings 文件时遇到了同样的问题;
要解决此问题,请尝试以下步骤: