On 15.09.22 19:21, Richard Grin wrote:
Hi Michael,
Downloading the file was quick. The unpacking was very long.
Wouldn't it be possible to search for Maven artefacts when a pom.xml
is written and not before?
it is going to start the first time the user runs an action which
requires artifact infos. E.g the new NB module project wizzard can
trigger it, or auto completion in a pom, or some other dependency search
UI. Some plugin might also trigger it if it makes a request I suppose.
It seems that other IDEs don't work like NetBeans and don't download
and unpack the index in advance. Am I wrong?
If IDEs provide functionality which uses data which is not available in
your local maven repository they gonna have to use a web service or
cache things just like netbeans does. There are pros and cons for both.
Local cache is fast and works in planes and trains. Webservice transfers
data on demand but you need a webservice.
If you don't want NetBeans to do this you can turn indexing off in the
maven settings i believe. But it is usually not a big deal since it
finishes in <15mins and runs once per week in the background while you
can use the IDE normally.
-mbien
Best regards,
Richard
Le 15/09/2022 à 03:14, Michael Bien a écrit :
Hi,
2h is indeed long.
Last time i measured it was about 20mins on my workstation which is
about 6 years old by now. Would be interesting to try to figure out
what causes the such big difference.
Was the download itself slow? This can happen of course due to
outside factors.
The good news is that subsequent indexing should be faster since it
will download a delta.
It actually did run an update while writing this mail, here the log
line:
INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]:
Indexing of central took 663.13 s.
there is some potential to parallelize it, but this is actually the
only indexing job which is handled by a third party lib (local
indexing is done by NB), so we would have to take a look upstream.
There is also always the danger to melt laptops if you put all cores
under load for a few minutes.
best regards,
michael
On 08.09.22 10:49, Richard Grin wrote:
Hello,
I have just downloaded and installed NetBeans 15 on Windows 11.
A very annoying problem: the loading and unpacking of the index for
central repository took almost 2 hours. I'm afraid it will be even
worse in the years to come.
Is there a workaround?
Regards,
Richard
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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