On 14.03.23 13:29, Emma Atkinson wrote:
I gave up on Maven a couple of years ago for the reasons already
given. No matter what size partition I used it would be too small
within a year or so. I used to grab the dependencies I needed and
switched off the Maven Index download in NB.
if your project depends on a library and you use a build tool like
gradle or maven, it will download that library. Switching build tools
won't make a difference.
my .m2 folder is 4GB right now and I haven't cleared it for at least 2
years. NetBeans isn't downloading any of that, the build tools do that.
Build tools are IDE independent, they would download the exact same
stuff when run without an IDE. That is the whole point of build tools
since you don't want to ship your project with an IDE.
If you don't need any of the NetBeans editor features local or remote
repo indexing gives you, you can simply turn it off in the settings and
NetBeans won't download the maven central index.
we have a pending PR which makes it a bit more configurable and also
explains what indexing actually does, since I read at least twice by now
that users think that NetBeans is downloading maven central itself
(which would probably be a few TB of storage, optimistically)
https://github.com/apache/netbeans/pull/5646
right now its an all-or-nothing option. This PR proposes to turn off
remote index downloads selectively while still indexing your .m2 folder
which produces a much smaller index footprint.
-mbien
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists