Hello, ernie, best regards.
I solve that problem having the netbeans cache dir in the XDG_RUNTIME_DIR
in linux. That directory is in a tmpfs, so every time I restart my machine
it start
with an empty directory. The directory is generated at the time of running
.bash_profile
Leave mavenindex in its original directory, but the other files are
generated in the
temporary cache directory. And inside that directory, I added a symlink to
mavenindex within the NetBeans cache directory.

The script in my bash_profile is as follows:
    # netbeans
    mkdir -p "${XDG_RUNTIME_DIR}/netbeans"
    if [[ ! -e $XDG_RUNTIME_DIR/netbeans/mavenindex ]];then
        ln -st "${XDG_RUNTIME_DIR}/netbeans/"
"${HOME}/.cache/netbeans/mavenindex/"
    fi

It first creates the netbeans directory inside XDG_RUNTIME_DIR if it not
exists. Next, first
verify that `mavenindex` does not exist in the directory, and then create a
symlink pointing to it.

Finally, I added the following option to the NetBeans launcher:
--cachedir “${XDG_RUNTIME_DIR}/netbeans”

-Sxtormulo
On 2026/09/09 16:32:27 Ernie Rael wrote:
> Hi all,
>
> I'm lazy, if something seems weird I just remove cachedir. Typically
> weird is an error badge that won't go away even after close/open the
> file, or close/open NB. But that's too extreme, I'm thinking Central
> repository. I guess that's mavenindex, how about lastModified? What
> should not be removed?
>
> Or maybe a /better question/ is what should be removed to clear the
> parser's cache and/or clean up weird situations? I'll save this info in
> a script, I know I've seen the answer before.
>
> On a loosely related note about the maven indexer database. The database
> size seems to have a monstrous size till settling down to it normal huge
> size. A curious observation, the numbers come from du -s.
>
>   8000M - checked a few days ago for cachedir, this is what I remember.
> 19165M - removed the cachdir and took a look while building maven index.
> 12821M - when indexing completed, the size had fallen back.
>   8195M - somehow, this next day, it's back to it's normal huge.
>           Some kind of compaction?
>
> -ernie
>

Reply via email to