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 253780 - Maven index is updated at each startup ignoring the configured frequency
Summary: Maven index is updated at each startup ignoring the configured frequency
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-25 08:33 UTC by Kirys
Modified: 2015-08-05 13:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirys 2015-07-25 08:33:22 UTC
I'm trying to set the update frequency of the maven repo to weekly or never (for manually update it), But doesn't matter the ide still update the maven index at each startup!
I checked that the index was fully built.
I also removed the cache dir and waited to the index to be rebuild completely but the frequency param is still ignored. 

It seems like it doesn't store latest time the index was updated (or maybe it doesn't notice that the index was fully built and try to rebuild it from scratch).

This waste a lot of bandwidth and is a real issue when you have to use a mobile connection.

Expected behaviour: 
If the frequency is set as daily or weekly it should download unpack and update only if latest update is later than the specified range, and if set as manually it should update it only if the update button is pressed!


Thank You
K
Comment 1 Kirys 2015-07-25 08:50:39 UTC
Some notes 
today check with curl of the index downloaded from netbeans says that it was update on 19th of july 

curl -I http://repo.maven.apache.org/maven2/.index/nexus-maven-repository-index.gz
HTTP/1.1 200 OK
Server: nginx
Content-Type: application/octet-stream
Content-Length: 188871612
Last-Modified: Sun, 19 Jul 2015 20:01:54 GMT
[..]

While properties on the repos from the netbeans ide says that latest update was done on 25th of july, so even if the frequency was set as "at ide startup" why redownload something that is older that the latest update date?
Netbeans should check the header and redownload only if it is newer than latest update.
Comment 2 Tomas Stupka 2015-07-27 17:58:33 UTC
please start NB with the switch -J-Dorg.netbeans.modules.maven.ProjectOpenedHookImpl.level=-1 
and wait for two minutes, then there should appear output regarding indexing in your messages.log

attach the log file to this issue

thanks
Comment 3 Tomas Stupka 2015-08-05 13:41:19 UTC
hi, any update on this?