Skip to content

showMvnDepsTree hangs #6823

Closed

Description

@lefou

The project has a large number of dependencies, but for some reasons, showMvnDepsTree started to hang without ever returning. I'm pretty sure it used to work before.

stacktrace.txt

> head -n50 stacktrace.txt
2026-02-12 16:04:08
Full thread dump OpenJDK 64-Bit Server VM (21.0.9+10-LTS mixed mode, sharing):

Threads class SMR info:
_java_thread_list=0x00007f8e00001c20, length=41, elements={
0x00007f8ea40302c0, 0x00007f8ea414ac90, 0x00007f8ea414c200, 0x00007f8ea414d980,
0x00007f8ea414efc0, 0x00007f8ea4150560, 0x00007f8ea4152120, 0x00007f8ea41537e0,
0x00007f8ea41602d0, 0x00007f8ea4163520, 0x00007f8ea4876610, 0x00007f8ea49bdc90,
0x00007f8ea49be810, 0x00007f8ea4a43c30, 0x00007f8ea4a4d710, 0x00007f8ea4b02d90,
0x00007f8ea4b05880, 0x00007f8ea526d9d0, 0x00007f8ea526e9c0, 0x00007f8ea5219ff0,
0x00007f8ea52415b0, 0x00007f8ea52426c0, 0x00007f8ea5273a10, 0x00007f8ea5274870,
0x00007f8ea52758f0, 0x00007f8d581af1d0, 0x00007f8d5415ab40, 0x00007f8d3c02a2b0,
0x00007f8d4000a1b0, 0x00007f8d34001c70, 0x00007f8d38001e50, 0x00007f8ea57ba990,
0x00007f8d6c021320, 0x00007f8d5c050460, 0x00007f8ea4fcf230, 0x00007f8d44061810,
0x00007f8d14005f10, 0x00007f8d20001910, 0x00007f8d1c00f750, 0x00007f8d501ca470,
0x00007f8e00000fc0
}

"main" #1 [25984] prio=5 os_prio=0 cpu=14791,10ms elapsed=25,45s tid=0x00007f8ea40302c0 nid=25984 runnable  [0x00007f8eaa08a000]
   java.lang.Thread.State: RUNNABLE
        at scala.collection.IterableOnceOps.exists(IterableOnce.scala:661)
        at scala.collection.IterableOnceOps.exists$(IterableOnce.scala:337)
        at scala.collection.AbstractIterable.exists(Iterable.scala:946)
        at coursier.core.DependencySet.containsModule(DependencySet.scala:134)
        at coursier.graph.DependencyTree$Node$$anonfun$1.applyOrElse(DependencyTree.scala:162)
        at coursier.graph.DependencyTree$Node$$anonfun$1.applyOrElse(DependencyTree.scala:161)
        at scala.collection.immutable.List.collect(List.scala:269)
        at scala.collection.immutable.List.collect(List.scala:254)
        at coursier.graph.DependencyTree$Node.children(DependencyTree.scala:161)
        at coursier.util.Print$.$anonfun$dependencyTree0$11(Print.scala:235)
        at coursier.util.Print$$$Lambda/0x00007f8e24aabdb0.apply(Unknown Source)
        at coursier.util.Tree.$anonfun$customRender$3(Tree.scala:49)
        at coursier.util.Tree.$anonfun$customRender$3$adapted(Tree.scala:43)
        at coursier.util.Tree$$Lambda/0x00007f8e24aad320.apply(Unknown Source)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:633)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:337)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1328)
        at coursier.util.Tree.recursivePrint$1(Tree.scala:43)
        at coursier.util.Tree.$anonfun$customRender$3(Tree.scala:49)
        at coursier.util.Tree.$anonfun$customRender$3$adapted(Tree.scala:43)
        at coursier.util.Tree$$Lambda/0x00007f8e24aad320.apply(Unknown Source)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:633)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:337)
        at scala.collection.AbstractIterator.foreach(Iterator.scala:1328)
        at coursier.util.Tree.recursivePrint$1(Tree.scala:43)
        at coursier.util.Tree.$anonfun$customRender$3(Tree.scala:49)
        at coursier.util.Tree.$anonfun$customRender$3$adapted(Tree.scala:43)
        at coursier.util.Tree$$Lambda/0x00007f8e24aad320.apply(Unknown Source)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:633)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:337)

Activity

  1. lihaoyi commented on Feb 12, 2026

    @lihaoyi
    Member

    @alexarchambault could you help look at this one? It seems like a non-linear performance issue inside the Coursier tree renderer

  2. lefou commented on Feb 13, 2026

    @lefou
    MemberAuthor

    This is really a showstopper. I need to fix some real-world classpath issues and can't analyze it properly. The strange thing is, that --whatDependsOn seems to work for some dependencies, that are not highly depended on, but not for others, that are used by more artifacts. I suspect the issue is in the printer/renderer, not the dependency tree itself. Resolution still works, but I can't figure out, why a specific jar is on the classpath.

  3. lefou commented on Feb 13, 2026

    @lefou
    MemberAuthor

    Maybe unrelated, but I also saw this:

    > mill cloud.vaadin.showMvnDepsTree --inverse
    558] cloud.vaadin.showMvnDepsTree
    Exception in thread "FileToStreamTailerThread" Exception in thread "FileToStreamTailerThread" java.lang.OutOfMemoryError: Java heap space
    Exception in thread "chrome-profile-metrics-thread" java.lang.OutOfMemoryError: Java heap space
            at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:301)
            at java.base/java.nio.file.Path.of(Path.java:148)
            at java.base/java.nio.file.Paths.get(Paths.java:69)
            at java.base/jdk.internal.platform.CgroupUtil.lambda$readStringValue$1(CgroupUtil.java:67)
            at java.base/jdk.internal.platform.CgroupUtil$$Lambda/0x00007f0404078f88.run(Unknown Source)
            at java.base/java.security.AccessController.executePrivileged(AccessController.java:809)
            at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
            at java.base/jdk.internal.platform.CgroupUtil.readStringValue(CgroupUtil.java:69)
            at java.base/jdk.internal.platform.CgroupSubsystemController.getStringValue(CgroupSubsystemController.java:65)
            at java.base/jdk.internal.platform.cgroupv2.CgroupV2Subsystem.getFromCpuMax(CgroupV2Subsystem.java:140)
    java.lang.IllegalStateException: Worker wire broken, worker likely crashed. Connection DaemonRpcClient
            at mill.rpc.MillRpcClient$.mill$rpc$MillRpcClient$$$_$awaitForResponse$1(MillRpcClient.scala:63)
            at mill.rpc.MillRpcClient$$anon$1.apply(MillRpcClient.scala:96)
            at mill.launcher.MillServerLauncher.runRpc(MillServerLauncher.scala:121)
            at mill.launcher.MillServerLauncher.run(MillServerLauncher.scala:52)
            at mill.launcher.MillLauncherMain$.main0(MillLauncherMain.scala:105)
            at mill.launcher.MillLauncherMain$.main(MillLauncherMain.scala:18)
            at mill.launcher.MillLauncherMain.main(MillLauncherMain.scala)
  4. lolgab commented on Feb 13, 2026

    @lolgab
    Member

    I'm experiencing hangs in Github Actions when running resolvedMvnDeps.
    Example: https://github.com/lolgab/snunit/actions/runs/21903075218/job/63238539156

  5. lihaoyi commented on Feb 14, 2026

    @lihaoyi
    Member
  6. alexarchambault commented on Feb 20, 2026

    @alexarchambault
    Collaborator

    About showMvnDepsTree, the problem might be specific to Mill. On my machine, it takes half a second for the coursier CLI to print the tree of spark-sql, while it takes more than 2 minutes to do the same from Mill:

    $ time ( cs resolve org.apache.spark:spark-sql_2.13:4.1.1 -t | wc -l )
      Result:
       51248
    ( cs resolve org.apache.spark:spark-sql_2.13:4.1.1 -t | wc -l; )  0,60s user 0,09s system 118% cpu 0,580 total
    
    $ cat build.mill
    //| mill-version: 1.1.2
    
    import mill.*
    import mill.scalalib.*
    
    object foo extends ScalaModule {
      def scalaVersion = "2.13.18"
      def mvnDeps = Seq(
        mvn"org.apache.spark::spark-sql:4.1.1"
      )
    }
    
    $ time ( ./mill __.showMvnDepsTree | wc -l )
    ./mill __.showMvnDepsTree
    16] foo.showMvnDepsTree
    16/16, SUCCESS] ./mill __.showMvnDepsTree 129s
       50823
    ( ./mill __.showMvnDepsTree | wc -l; )  1,73s user 1,66s system 2% cpu 2:10,33 total
    
  7. lefou commented on Feb 21, 2026

    @lefou
    MemberAuthor

    I confirm, that cs itself is able to show to full tree. I need to publish my project locally, to be able to inspect it, though.

    > mill cloud.vaadin.publishLocal --transitive true
    ...
    
    > time cs resolve -r ... -t ...cloud.vaadin:...
    ...
    real    0m6,312s
    user    0m4,431s
    sys     0m0,972s

    So, at least we have a workaround. Thanks!

    But generating the inverse tree with -T took 5m 47s.

  8. added theissue type on Feb 21, 2026
  9. lefou commented on Feb 22, 2026

    @lefou
    MemberAuthor
    Image
  10. added a commit that references this issue on Feb 22, 2026
  11. nguyenyou commented on Feb 28, 2026

    @nguyenyou
    Contributor

    This is likely the same root cause as coursier/coursier#3561 — exponential hashCode() computation on tree Node case classes that carry graph-wide maps.

    Both stack traces converge on Tree.customRender → recursivePrint, which uses a Set[Node] for cycle detection. Each ancestors.contains(elem) and ancestors + elem call triggers hashCode() on Node, which recursively hashes large shared data structures (the entire dependency graph). For ~600+ dependencies this becomes O(B^D × N) and never finishes.

    The fix proposed in coursier/coursier#3561 is to override hashCode/equals on the Node case classes to only use identity fields (module, version constraint) instead of the shared graph maps.

  12. lefou commented on Mar 1, 2026

    @lefou
    MemberAuthor

    The same project returns all kind of dependencies trees via iyvDepsTree really fast with Mill 0.12.17, which is on coursier 2.1.25-M13.

  13. lefou commented on Apr 15, 2026

    @lefou
    MemberAuthor

    This is my blocker #1 to migrate from Mill 0.12.17 to Mill 1.1.5.

  14. stephenamar-db commented on May 1, 2026

    @stephenamar-db
  15. 18 remaining items

  16. modified the milestones: 1.2.0, 1.1.7 on Jun 21, 2026
  17. lefou commented on Aug 11, 2026

    @lefou
    MemberAuthor

    Looks like this is not yet solved. This is with Mill 1.1.8:

    > mill cloud.vaadin.showMvnDepsTree 
    mill cloud.vaadin.showMvnDepsTree 664s
    java.lang.OutOfMemoryError: Java heap space
    java.lang.OutOfMemoryError: Java heap space
    java.lang.OutOfMemoryError: Java heap space
            at mill.launcher.DaemonRpc$ServerToClient$GetTerminalDims$.apply(DaemonRpc.scala:48)
            at mill.daemon.MillMain0$.$anonfun$20(MillMain0.scala:626)
            at mill.daemon.MillMain0$$$Lambda/0x00007fe35c1f04a8.apply(Unknown Source)
            at mill.internal.PromptLogger.$init$$$anonfun$2$$anonfun$1(PromptLogger.scala:84)
            at mill.internal.PromptLogger.$init$$$anonfun$2$$anonfun$adapted$1(PromptLogger.scala:97)
            at mill.internal.PromptLogger$$Lambda/0x00007fe35c21b840.apply(Unknown Source)
            at mill.api.daemon.StartThread$.$anonfun$1(SpawnThread.scala:5)
            at mill.api.daemon.StartThread$$$Lambda/0x00007fe35c134700.run(Unknown Source)
            at java.base/java.lang.Thread.runWith(Thread.java:1596)
            at java.base/java.lang.Thread.run(Thread.java:1583)
    java.lang.OutOfMemoryError: Java heap space
            at java.base/java.nio.CharBuffer.wrap(CharBuffer.java:436)
            at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:377)
            at java.base/sun.nio.cs.StreamDecoder.lockedRead(StreamDecoder.java:217)
            at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:171)
            at java.base/java.io.InputStreamReader.read(InputStreamReader.java:188)
            at java.base/java.io.BufferedReader.fill(BufferedReader.java:160)
            at java.base/java.io.BufferedReader.implReadLine(BufferedReader.java:370)
            at java.base/java.io.BufferedReader.readLine(BufferedReader.java:347)
            at java.base/java.io.BufferedReader.readLine(BufferedReader.java:436)
            at mill.client.FileToStreamTailer.run(FileToStreamTailer.scala:34)
    java.lang.OutOfMemoryError: Java heap space
            at java.base/sun.nio.fs.UnixPath.getName(UnixPath.java:324)
            at java.base/sun.nio.fs.UnixPath.getName(UnixPath.java:51)
            at java.base/java.nio.file.Path$1.next(Path.java:931)
            at java.base/java.nio.file.Path$1.next(Path.java:920)
            at scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.next(JavaCollectionWrappers.scala:50)
            at scala.collection.IterableOnceOps.count(IterableOnce.scala:675)
            at scala.collection.IterableOnceOps.count$(IterableOnce.scala:337)
            at scala.collection.AbstractIterator.count(Iterator.scala:1328)
            at os.Path$.apply(Path.scala:494)
            at os.walk$stream$$anon$2$$anon$3.visitFile(ListOps.scala:255)
            at os.walk$stream$$anon$2$$anon$3.visitFile(ListOps.scala:254)
            at java.base/java.nio.file.Files.walkFileTree(Files.java:2799)
            at os.walk$stream$$anon$2.generate(ListOps.scala:277)
            at geny.Generator.foreach(Generator.scala:51)
            at geny.Generator.foreach$(Generator.scala:33)
            at os.walk$stream$$anon$2.foreach(ListOps.scala:208)
            at geny.Generator.toBuffer(Generator.scala:132)
            at geny.Generator.toBuffer$(Generator.scala:33)
            at os.walk$stream$$anon$2.toBuffer(ListOps.scala:208)
            at geny.Generator.toArray(Generator.scala:136)
            at geny.Generator.toArray$(Generator.scala:33)
            at os.walk$stream$$anon$2.toArray(ListOps.scala:208)
            at os.walk$.attrs(ListOps.scala:131)
            at mill.api.PathRef$.apply(PathRef.scala:133)
            at mill.api.BuildCtx$.evalWatch$$anonfun$1(BuildCtx.scala:66)
            at mill.api.BuildCtx$$$Lambda/0x00007fe35c300f08.apply(Unknown Source)
            at mill.api.BuildCtx$.withFilesystemCheckerDisabled$$anonfun$1(BuildCtx.scala:38)
            at mill.api.BuildCtx$$$Lambda/0x00007fe35c289958.apply(Unknown Source)
            at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
            at mill.api.BuildCtx$.withFilesystemCheckerDisabled(BuildCtx.scala:38)
            at mill.api.BuildCtx$.evalWatch(BuildCtx.scala:69)
            at mill.eval.ScriptModuleInit.resolveScriptModule(ScriptModuleInit.scala:197)
    
    mill.api.daemon.Result$SerializedException: Java heap space
            at sun.nio.fs.UnixPath.getName(UnixPath.java:324)
            at sun.nio.fs.UnixPath.getName(UnixPath.java:51)
            at java.nio.file.Path$1.next(Path.java:931)
            at java.nio.file.Path$1.next(Path.java:920)
            at scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper.next(JavaCollectionWrappers.scala:50)
            at scala.collection.IterableOnceOps.count(IterableOnce.scala:675)
            at scala.collection.IterableOnceOps.count$(IterableOnce.scala:337)
            at scala.collection.AbstractIterator.count(Iterator.scala:1328)
            at os.Path$.apply(Path.scala:494)
            at os.walk$stream$$anon$2$$anon$3.visitFile(ListOps.scala:255)
            at os.walk$stream$$anon$2$$anon$3.visitFile(ListOps.scala:254)
            at java.nio.file.Files.walkFileTree(Files.java:2799)
            at os.walk$stream$$anon$2.generate(ListOps.scala:277)
            at geny.Generator.foreach(Generator.scala:51)
            at geny.Generator.foreach$(Generator.scala:33)
            at os.walk$stream$$anon$2.foreach(ListOps.scala:208)
            at geny.Generator.toBuffer(Generator.scala:132)
            at geny.Generator.toBuffer$(Generator.scala:33)
            at os.walk$stream$$anon$2.toBuffer(ListOps.scala:208)
            at geny.Generator.toArray(Generator.scala:136)
            at geny.Generator.toArray$(Generator.scala:33)
            at os.walk$stream$$anon$2.toArray(ListOps.scala:208)
            at os.walk$.attrs(ListOps.scala:131)
            at mill.api.PathRef$.apply(PathRef.scala:133)
            at mill.api.BuildCtx$.evalWatch$$anonfun$1(BuildCtx.scala:66)
            at mill.api.BuildCtx$$$Lambda/0x00007fe35c300f08.apply(Unknown Source)
            at mill.api.BuildCtx$.withFilesystemCheckerDisabled$$anonfun$1(BuildCtx.scala:38)
            at mill.api.BuildCtx$$$Lambda/0x00007fe35c289958.apply(Unknown Source)
            at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
            at mill.api.BuildCtx$.withFilesystemCheckerDisabled(BuildCtx.scala:38)
            at mill.api.BuildCtx$.evalWatch(BuildCtx.scala:69)
            at mill.eval.ScriptModuleInit.resolveScriptModule(ScriptModuleInit.scala:197)
    
    Mill launcher failed. See out/mill-launcher/log for details.
    
    > mill --version
    Mill Build Tool version 1.1.8
    java.version: 21.0.10
    java.vendor: Azul Systems, Inc.
    java.home: /home/lefou/.cache/coursier/arc/https/cdn.azul.com/zulu/bin/zulu21.48.15-ca-jdk21.0.10-linux_x64.tar.gz/zulu21.48.15-ca-jdk21.0.10-linux_x64
    file.encoding: UTF-8
    os.name: Linux
    os.version: 6.18.26-gentoo-dist
    os.arch: amd64
    
    
  18. reopened this on Aug 26, 2026
  19. removed this from the 1.1.7 milestone on Aug 26, 2026
  20. lefou commented on Aug 26, 2026

    @lefou
    MemberAuthor

    to clarify, this issue had two issues reported:

    1. Hanging showMvnDepsTree (without --reverse)
    2. OOM error in showMvnDepsTree --reverse or showMvnDepsTree --whatDependsOn

    The second issue is fixed, but the first and initially reported issue is not fixed.

    @alexarchambault said, that this is likely related to Mill and its use of the coursier API, since the tree can be redered when the coursier cli tool cs is used directly, which I confirmed.

    That being said, we still need to fix the issue. And the Mill implementation that is mapping the Mill module hierarchy to cousier projects internally was contributed by @alexarchambault, so I'd really appreciate your help.

    Since the project is not open source, I'll try to provide a reproducer. My hope is, that it might reproduce by just using the Mill files without any sources.

  21. lefou commented on Aug 27, 2026

    @lefou
    MemberAuthor

    Added a reproduction for this issue: https://github.com/lefou/repro-mill-showMvnDepsTree-issue-6823

    Reproduction

    Checkout the repo.

    > git clone https://github.com/lefou/repro-mill-showMvnDepsTree-issue-6823.git
    ...
    
    > cd repro-mill-showMvnDepsTree-issue-6823/

    Run showMvnDepsTree and notice, it never returns.

    > MILL_VERSION=1.1.8 mill -i cloud.vaadin.showMvnDepsTree
    ...
    628] cloud.vaadin.showMvnDepsTree
    

    Instead, we would expect to see a tree of all transitive dependencies as output.

    Debugging

    When started as shown above, you can attach to the JVM running class mill.daemon.MillNoDaemonMain with the Debugger or Profiler of your choice.

    Thread dump

    A typical thead dump reveals that the process is spending its time in coursier.core.DependencySet.$anonfun$containsModule$1(DependencySet.scala:134) or nested.

    > jps
    ...
    1410600 MillNoDaemonMain
    ...
    
    > jstack 1410600
    2026-08-27 09:45:08
    Full thread dump OpenJDK 64-Bit Server VM (21.0.10+7-LTS mixed mode, sharing):
    
    Threads class SMR info:
    _java_thread_list=0x00007f41ac00d080, length=35, elements={
    0x00007f434002fa30, 0x00007f434014a3b0, 0x00007f434014b920, 0x00007f434014d0a0,
    0x00007f434014e6e0, 0x00007f434014fc80, 0x00007f4340151840, 0x00007f4340152f00,
    0x00007f434015f6f0, 0x00007f4340162940, 0x00007f43406da260, 0x00007f43409106c0,
    0x00007f43409114e0, 0x00007f4340945300, 0x00007f4340946880, 0x00007f43409bc590,
    0x00007f43409bdee0, 0x00007f434117afe0, 0x00007f434117c240, 0x00007f434117da60,
    0x00007f434117ebf0, 0x00007f434117fe60, 0x00007f43411810d0, 0x00007f4341182260,
    0x00007f43411833f0, 0x00007f4341670760, 0x00007f4298000f60, 0x00007f41cd02dfb0,
    0x00007f41cd08b0d0, 0x00007f41cd0cf4f0, 0x00007f41bc001760, 0x00007f41c0013640,
    0x00007f41c00162f0, 0x00007f41bc002820, 0x00007f41bc003b60
    }
    
    "main" #1 [1410602] prio=5 os_prio=0 cpu=437734,75ms elapsed=453,48s tid=0x00007f434002fa30 nid=1410602 runnable  [0x00007f4346df4000]
       java.lang.Thread.State: RUNNABLE
            at scala.collection.IterableOnceOps.exists(IterableOnce.scala:661)
            at scala.collection.IterableOnceOps.exists$(IterableOnce.scala:337)
            at scala.collection.AbstractIterable.exists(Iterable.scala:946)
            at coursier.core.DependencySet.containsModule(DependencySet.scala:134)
            at coursier.graph.DependencyTree$Node$$anonfun$1.applyOrElse(DependencyTree.scala:165)
            at coursier.graph.DependencyTree$Node$$anonfun$1.applyOrElse(DependencyTree.scala:164)
            at scala.collection.immutable.List.collect(List.scala:269)
            at scala.collection.immutable.List.collect(List.scala:254)
            at coursier.graph.DependencyTree$Node.children(DependencyTree.scala:164)
            at coursier.util.Print$.$anonfun$dependencyTree0$11(Print.scala:236)
            at coursier.util.Print$$$Lambda/0x00007f42c8b505f8.apply(Unknown Source)
            at coursier.util.Tree.$anonfun$customRender0$3(Tree.scala:64)
            at coursier.util.Tree.$anonfun$customRender0$3$adapted(Tree.scala:55)
            at coursier.util.Tree$$Lambda/0x00007f42c8b51b68.apply(Unknown Source)
            at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:633)
            at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:337)
            at scala.collection.AbstractIterator.foreach(Iterator.scala:1328)
            at coursier.util.Tree.recursivePrint$1(Tree.scala:55)
            at coursier.util.Tree.$anonfun$customRender0$3(Tree.scala:63)
            at coursier.util.Tree.$anonfun$customRender0$3$adapted(Tree.scala:55)
            at coursier.util.Tree$$Lambda/0x00007f42c8b51b68.apply(Unknown Source)
            at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:633)
            at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:337)
            at scala.collection.AbstractIterator.foreach(Iterator.scala:1328)
            at coursier.util.Tree.recursivePrint$1(Tree.scala:55)
            at coursier.util.Tree.$anonfun$customRender0$3(Tree.scala:63)
    ...

    Workaround (to see the desired tree)

    First install the project itself into the local ivy repository.

    > MILL_VERSION=1.1.8 mill cloud.vaadin.publishLocal --transitive true
    ...
    3033] Publishing de.acme:de.acme.cmfs.cloud.vaadin:0.0.0 to ivy repo /home/lefou/.ivy2/local

    Now run coursier cs tool to show the dependency tree

    > cs resolve -r "https://www.myget.org/F/tabmo-public/maven/" -t de.acme:de.acme.cmfs.cloud.vaadin:0.0.0
      Result:
    └─ de.acme:de.acme.cmfs.cloud.vaadin:0.0.0
       ├─ aopalliance:aopalliance:1.0
       ├─ com.fasterxml.jackson.module:jackson-module-kotlin:2.22.2
       │  ├─ com.fasterxml.jackson.core:jackson-annotations:2.22
       │  ├─ com.fasterxml.jackson.core:jackson-databind:2.22.2
       │  │  ├─ com.fasterxml.jackson.core:jackson-annotations:2.22
       │  │  └─ com.fasterxml.jackson.core:jackson-core:2.22.2
       │  └─ org.jetbrains.kotlin:kotlin-reflect:2.1.21 -> 2.3.21 (possible incompatibility)
       │     └─ org.jetbrains.kotlin:kotlin-stdlib:2.3.21
       │        └─ org.jetbrains:annotations:13.0 -> 26.1.0 (possible incompatibility)
    ...
  22. added this to the 1.1.10 milestone on Sep 9, 2026
  23. lefou commented on Sep 9, 2026

    @lefou
    MemberAuthor

    FYI, here is some more info in case you didn't read the PR itself.

    In difference to cs/coursier CLI tool, Mill is enabling Gradle metadata when resolving dependencies for Kotlin, Android or Groovy modules. These metadata can provide global overrides which in combination with BOM imports may result in a lot of extra dependency paths, esp. for Kotlin modules. So, while Mill now fixes the issue by deduplicating the tree, the issue is still present in coursier when the coursier-provided tree renderer is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions