I am having unpleasant experience with Apache NetBeans IDE 11.0. Every time I try to launch the IDE, it goes "Transferring Maven repository index: Central Repository" The transfer can take more than an hour and use up more than 1.0GB of data. Every time I try to run a piece of code, there is always something downloading as shown in the image insert below. What is more annoying? After all the downloads, the build exercise still fails because of missing dependencies. I am wondering whether anybody else is having a similar experience.
Tim Moores wrote:Sounds more like a Maven issue than a NetBeans issue. Maven is "famous" for downloading lots of stuff.
Yeah, but it doesn't download stuff all by itself. It only downloads stuff that is a dependency for a Maven project being built, and only when Maven is explicitly told to build that project.
My best guess is that NetBeans is set up to auto-rebuild its projects when it's launched (which is probably something you can turn off). But unless the Maven poms are really messed up or the .m2 cache is being nuked by some external means, Maven should only actually download once and thereafter retrieve the dependencies from the local cache.