Reasons for extremely slow retrieval of maven-metadata.xml
I'm new to this mailing list and hope to be at the right place.
I'm having the problem that the retrieval of maven-metadata.xml takes a
lot of time (for 6 files > 60 seconds each). The socket timeout is set
to 2000 ms. The issue occurs every day at the first retrieval of
artifacts after 00:00, the updatePolicy in settings.xml is set to
interval:25200, so there might be two dependent, but separate issues.
All artifacts are available in the local cache and in artifactory
(retrieval cache period is set to 43200 s). It is certain that the
artifacts are only available in one remote repository.
Re: Reasons for extremely slow retrieval of maven-metadata.xml
Usually this scenario is happening when using a very 'big' virtual repository for resolution of your artifacts. What is happening behind stages is that the virtual repository will aggregates all of the content (all of the remote maven-metadata.xml files) from the remote repositories in order to have a full list of artifacts that are available to it.
This can be 'fix' by creating your own virtual repository that will hold less remote repositories. By doing so you should reduce the time of the aggregation of this maven-metadata.xml file.
Another option is to address directly to a remote repository that holds the specific artifacts. For example, if you are trying to resolve Maven artifacts you can try resolving them directly from the Jcenter remote repository.