com-lihaoyi / mill

Mill is a fast JVM build tool that supports Java and Scala. 2-3x faster than Gradle and 5-10x faster than Maven for common workflows, Mill aims to make your project’s build process performant, maintainable, and flexible
https://mill-build.org/
MIT License
2.03k stars 319 forks source link

mill init does not work with Windows PowerShell in an enterprise environment #3089

Open jarosmpost opened 5 months ago

jarosmpost commented 5 months ago

Prompt

PS C:\work\test> .\mill.bat -i init com-lihaoyi/mill-scala-hello.g8 --name=example
[build.sc] [49/53] compile
[info] compiling 1 Scala source to C:\work\test\out\mill-build\compile.dest\classes ...
[info] done compiling
[1/1] init > [1/1] mill.scalalib.giter8.Giter8Module.init | Downloading [2/2] artifacts (~0/0 bytes)

Result Nothing is created.

Environment mill version: 0.11.7 mirror.propertes points to our internal Artifactory, which works for the builds.

jarosmpost commented 4 months ago

@lefou : Do you need information to reproduce the bug?

lefou commented 2 months ago

What is mill.bat? Which version? Can you show the output when run with --debug option?

jarosmpost commented 2 months ago

mill.bat is a copy of https://github.com/lefou/millw/blob/main/millw.bat but with some changes for our environment. With --debug it gives the same result:

[1/1] init > [1/1] mill.scalalib.giter8.Giter8Module.init | Downloading [2/2] artifacts (~0/0 bytes)

The problem seems to be that I cannot load data from the Internet (com-lihaoyi/mill-scala-hello.g8), only from our internal Artifactory. But it should at least return an error message.

lefou commented 1 month ago

So, this is likely an issue with the community-maintained contrib plugin mill-contrib-artifactory.