我尝试从公共(public) adobe 存储库获取一些特定版本的 jar:
<dependency>
<groupId>com.adobe.granite</groupId>
<artifactId>com.adobe.granite.asset.api</artifactId>
<version>2.0.4</version>
</dependency>
我可以在存储库中看到 3 个版本:
- 1.4
- 1.6
- 2.0.4
但是Maven只能获取1.4和1.6,当我尝试获取2.0.4时maven抛出异常:
Failed to read artifact descriptor for com.adobe.granite:com.adobe.granite.asset.api:jar:2.0.4.
有人知道我错过了什么吗?
最佳答案
您必须下载 asset.api 的“父”项目,然后将其安装到您的本地存储库中
mvn install:install-file -Dfile=path-to-file -DpomFile=path-to-pomfile
如果找不到 com.adobe.granite.asset.api 所需的版本 33 的 jar“parent”,您可以从版本 32 的 adobre 存储库 parent 下载并在本地将其版本更改为 33
关于java - Maven 无法解决与某些特定版本的 jar 的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33390277/