This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254051 - Add an option to move mavenindex out of the cachedir
Summary: Add an option to move mavenindex out of the cachedir
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows 8.1 x64
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-01 13:31 UTC by cezariusz
Modified: 2016-05-06 11:44 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-08-01 13:31:25 UTC
Product Version: NetBeans IDE Dev (Build 201507280002)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 8 version 6.2 running on amd64; UTF-8; pl_PL (nb)
User directory: Z:\NetBeans\User\dev
Cache directory: Z:\NetBeans\Cache\dev

I have my cachedir on a RAM disk to improve NetBeans performance and responsiveness. It works great and doesn't require a lot of memory (512MB is usually sufficient). My ramdisk software dumps it's contents to hard disk on shutdown and reloads it on startup.
But the problem appears when I try to open a maven project - NetBeans downloads an index and unpacks it to the mavenindex directory inside the cache directory, filling up my ramdisk completly, and making it unusable.
The idea is to provide an option to store mavenindex somewhere else, in a user provided directory. It could be a startup parameter, similar to --userdir and --cachedir, for example --mavenindexdir.
Comment 1 terje7601 2016-05-06 11:44:47 UTC
In my opinion, this must be an option in the user interface, with a big warning next to it saying this folder may grow to ridiculous sizes. I only found out today about this folder, by accident, because my system partition was full: turns out the mavenindex folders of just 2 NetBeans installations take up > 25GB, i.e. over a third of my system partition.