mill
mill copied to clipboard
External module provided via `--import` does not resolve
Reproducer within Mill repo:
> mill --no-server --ticker false --import "mvn:org.scala-steward::scala-steward-mill-plugin::0.19.0" show org.scalasteward.mill.plugin.StewardPlugin/extractDeps
compiling 1 Scala source to out/mill-build/compile.dest/classes ...
done compiling
1 tasks failed
show Cannot resolve external module org.scalasteward.mill.plugin.StewardPlugin/
Adding the plugin to the mvnDeps, fixes the issue, so it doesn't seem to originate in the plugin.
Adding the plugin to runMvnDeps gives an error:
Exception in thread "main" java.lang.ClassNotFoundException: mill.eval.EvaluatorImpl
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at mill.api.daemon.MillURLClassLoader.findClass(MillURLClassLoader.scala:42)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at mill.daemon.MillBuildBootstrap$.makeEvaluator(MillBuildBootstrap.scala:476)
at mill.daemon.MillBuildBootstrap.evaluateRec$$anonfun$1(MillBuildBootstrap.scala:276)
at mill.api.daemon.Logger.withChromeProfile(Logger.scala:50)
at mill.api.daemon.Logger.withChromeProfile$(Logger.scala:12)
at mill.internal.PromptLogger.withChromeProfile(PromptLogger.scala:19)
at mill.daemon.MillBuildBootstrap.evaluateRec(MillBuildBootstrap.scala:296)
at mill.daemon.MillBuildBootstrap.evaluate$$anonfun$1(MillBuildBootstrap.scala:71)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.daemon.MillBuildBootstrap.evaluate(MillBuildBootstrap.scala:82)
at mill.daemon.MillMain0$.proceed$1$$anonfun$1$$anonfun$1$$anonfun$1(MillMain0.scala:297)
at mill.daemon.TailManager.withOutErr(TailManager.scala:38)
at mill.daemon.MillMain0$.proceed$1$$anonfun$1$$anonfun$1(MillMain0.scala:299)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.daemon.MillMain0$.proceed$1$$anonfun$1(MillMain0.scala:300)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:49)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:50)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:51)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:52)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at scala.Console$.withErr(Console.scala:195)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:53)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at scala.Console$.withOut(Console.scala:166)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:54)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at scala.Console$.withIn(Console.scala:229)
at scala.Console$.withIn(Console.scala:242)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1(SystemStreamsUtils.scala:55)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams(SystemStreamsUtils.scala:56)
at mill.daemon.MillMain0$.proceed$1(MillMain0.scala:301)
at mill.daemon.MillMain0$.runMillBootstrap$1$$anonfun$1$$anonfun$1(MillMain0.scala:316)
at scala.util.Using$.resource(Using.scala:298)
at mill.daemon.MillMain0$.runMillBootstrap$1$$anonfun$1(MillMain0.scala:317)
at mill.server.MillDaemonServer$.withOutLock$$anonfun$1(MillDaemonServer.scala:230)
at scala.util.Using$.resource(Using.scala:298)
at mill.server.MillDaemonServer$.withOutLock(MillDaemonServer.scala:232)
at mill.daemon.MillMain0$.runMillBootstrap$1(MillMain0.scala:319)
at mill.daemon.MillMain0$.$anonfun$11$$anonfun$5(MillMain0.scala:495)
at mill.daemon.Watching$.watchLoop(Watching.scala:66)
at mill.daemon.MillMain0$.$anonfun$11(MillMain0.scala:493)
at scala.util.Using$.resources$$anonfun$1$$anonfun$1(Using.scala:335)
at scala.util.Using$.resource(Using.scala:298)
at scala.util.Using$.resources$$anonfun$1(Using.scala:336)
at scala.util.Using$.resource(Using.scala:298)
at scala.util.Using$.resources(Using.scala:337)
at mill.daemon.MillMain0$.main0$$anonfun$1$$anonfun$1$$anonfun$1(MillMain0.scala:505)
at mill.daemon.MillMain0$.withStreams$$anonfun$2(MillMain0.scala:97)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:49)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:50)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:51)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:52)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at scala.Console$.withErr(Console.scala:195)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:53)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at scala.Console$.withOut(Console.scala:166)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1$$anonfun$1(SystemStreamsUtils.scala:54)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at scala.Console$.withIn(Console.scala:229)
at scala.Console$.withIn(Console.scala:242)
at mill.api.SystemStreamsUtils$.withStreams$$anonfun$1(SystemStreamsUtils.scala:55)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.api.SystemStreamsUtils$.withStreams(SystemStreamsUtils.scala:56)
at mill.daemon.MillMain0$.withStreams(MillMain0.scala:98)
at mill.daemon.MillMain0$.main0$$anonfun$1$$anonfun$1(MillMain0.scala:123)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.daemon.MillMain0$.main0$$anonfun$1(MillMain0.scala:520)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:60)
at mill.daemon.MillMain0$.main0(MillMain0.scala:521)
at mill.daemon.MillNoDaemonMain0$.main$$anonfun$1(MillNoDaemonMain0.scala:56)
at mill.daemon.MillNoDaemonMain0$.main$$anonfun$adapted$1(MillNoDaemonMain0.scala:61)
at mill.api.SystemStreamsUtils$.withTopLevelSystemStreamProxy(SystemStreamsUtils.scala:75)
at mill.daemon.MillNoDaemonMain0$.main(MillNoDaemonMain0.scala:61)
at mill.daemon.MillNoDaemonMain0.main(MillNoDaemonMain0.scala)
at mill.daemon.MillNoDaemonMain.main(MillNoDaemonMain.java:6)