在非标准的maven仓库中定义的依赖项pom.xml中的组件无法获取。
重现步骤
1. 使用附带的{{deps.edn}}并运行{{clj}}。
`
$clj
构建类路径时出错。在中央仓库找不到 artifact com.jezhumble:javasysmon:jar:0.3.6 (https://repo1.maven.org/maven2/)
org.eclipse.aether.resolution.ArtifactResolutionException: 在中央仓库找不到 artifact 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仓库,并转换为以下{{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仓库?