How to use maven or gradle on untrusted network?

The naive use of the built-in settings sometimes leads to a hang of connections. This is probably a network problem out of my control.

I would like to know how to set a timeout and try again both to download artifacts and to publish artifacts.

I found the connection timeout and read timeout for the HTTP car, but I did not find the retry option.

For publication, I found a retry option but no timeout was set.

Change what I want is the equivalent of curl -max-time, --retry and -retry-delay options for maven and gradle download and publish.

+6
source share
1 answer

Gradle has Maven built-in compatibility, and it will create you .m2 or .gradle archive directories. To retry, all you have to do is simply restart your build again and again until all artifacts are complete.

-1
source

All Articles