无法检索非标准Maven仓库中定义在依赖项pom.xml中的工件。
复现步骤
1. 使用随附的{{deps.edn}}并运行{{clj}}。
`
$clj
构建类路径时出错。在中央仓库(https://repo1.maven.org/maven2/)中找不到工件com.jezhumble:javasysmon:jar:0.3.6
org.eclipse.aether.resolution.ArtifactResolutionException: 在中央仓库(https://repo1.maven.org/maven2/)中找不到工件com.jezhumble:javasysmon:jar:0.3.6
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
...
`
{{lambdacd}}在项目.clj中(https://github.com/flosell/lambdacd/blob/master/project.clj#L9)定义了一个自定义Maven仓库,并翻译为以下{{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仓库?