无法获取在pom.xml中定义的非标准Maven库中的工件。
复制步骤
1. 使用附带的{{deps.edn}}并运行{{clj}}。
`
$clj
构建类路径错误。无法在中心找到工件com.jezhumble:javasysmon:jar:0.3.6 (https://repo1.maven.org/maven2/)
org.eclipse.aether.resolution.ArtifactResolutionException:无法在中心找到工件com.jezhumble:javasysmon:jar:0.3.6 (https://repo1.maven.org/maven2/)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
...
`
{{lambdacd}}在文本project.clj中定义了自定义Maven库(链接:https://github.com/flosell/lambdacd/blob/master/project.clj#L9),并转换为以下{{pom.xml}}。注意“gocd”被添加。
`
...
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>clojars</id>
<url>https://repo.clojars.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>gocd</id>
<url>https://dl.bintray.com/gocd-maven-repo/generic/gocd</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
...
`
在遍历传递依赖关系时,是否可以观察自定义Maven存储库?