Ok, thanks for the clarification.
Eric Bresie
ebre...@gmail.com

On Sun, Jun 11, 2023 at 12:47 PM Michael Bien <mbie...@gmail.com> wrote:

> no this is not how it works. The files of the remote index are not updated
> in real time. Last update was a week ago.
>
> even if NB is configured to check daily there would be nothing to update.
>
> -mbien
>
>
> On 11.06.23 15:56, Eric Bresie wrote:
>
> Not clear how the remote/local indexing works but, if there are updates on
> remote (i.e., new artifacts released), would that always make the remote
> index susceptible to constant changes meaning the local and remote would be
> out of sync requiring further updates?
>
> Eric Bresie
> ebre...@gmail.com
>
>
> On Fri, Jun 9, 2023 at 2:43 PM Michael Bien <mbie...@gmail.com> wrote:
>
>> Hi Peter,
>>
>> I just started to take a closer look at incremental index updates, so
>> far I concentrated on the index itself and the initial extraction which
>> caused most of the problems.
>> (a lot of this is already testable if you download a dev build and is
>> planned to be in NB 19)
>>
>> the data for the central remote index is here:
>> https://repo1.maven.org/maven2/.index
>>
>> the metadata is:
>>
>>
>> https://repo1.maven.org/maven2/.index/nexus-maven-repository-index.properties
>>
>>
>> Since I have it all local for testing purposes, the last updates were:
>>
>> May 10, Jun 01, Jun 05
>>
>>
>> The same properties file is also in your cache folder and should be
>> identical if the index is up2date.
>>
>>
>> So, even if NB would check for updates often, there shouldn't be
>> anything to update - which is why I can't quite explain how it is
>> possible that it updated twice in one day.
>>
>> Are you sure both updates were for maven central? Since it could in
>> theory also update another repo, e.g apache - if it is used in a pom for
>> example.
>>
>>
>> The good news is that NB19+ will be able to use the latest maven-indexer
>> libraries, which allows us to contribute changes upstream.
>> e.g one change is pending here:
>> https://github.com/apache/maven-indexer/pull/318 which should make
>> incremental updates at least 4x faster.
>>
>>
>>
>> best regards,
>> michael
>>
>>
>> On 09.06.23 15:11, Peter Hull wrote:
>> > Hi,
>> > It seems to me that the maven indexing is running more often than it
>> > used to, and certainly more than 'once per week' which is what I've
>> > set it up for. For example, it's run twice today.
>> > Is there a log which shows how often it's run and what made it start,
>> > then I can confirm what the situation is? There's nothing useful
>> > AFAICS in the IDE log.
>> > Peter
>> >
>> > ps I'm running NB 18 with JDK 17 on Windows 11. The maven is the
>> built-in one.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
>> > For additional commands, e-mail: dev-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: dev-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: dev-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>
>

Reply via email to