Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.deps by

Artifact in non-standard maven repos defined in pom.xml of a dependencies cannot be fetched.

Steps to reproduce
1. Use the attached {{deps.edn}} and run {{clj}}.

`
$clj
Error building classpath. Could not find artifact com.jezhumble:javasysmon:jar:0.3.6 in central (https://repo1.maven.org/maven2/)
org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact com.jezhumble:javasysmon:jar:0.3.6 in central (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}} defines a custom maven repo in the (link: https://github.com/flosell/lambdacd/blob/master/project.clj#L9 text: project.clj) and translated into the following {{pom.xml}}. Note "gocd" is added.

`
...

<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>


...
`

Is it possible to observe custom maven repositories while traversing transitive dependencies?

3 Answers

0 votes
by

Comment made by: alexmiller

Thanks for the report! Definitely fixable.

0 votes
by
_Comment made by: martinklepsch_

Another case to reproduce this


clj -Sdeps '{:deps {org.immutant/messaging {:mvn/version "2.1.10"}}}' -Stree
0 votes
by
Reference: https://clojure.atlassian.net/browse/TDEPS-46 (reported by alex+import)
...