Search code examples
grailswgetmaven-repository

Recursive copy of grails maven repository with wget


This post is part of this one

I want to copy this repository on my local computer : https://repo.grails.org/grails/core/

To achieve my goal, I ran all night long this wget command :

wget -r -l=inf --no-parent --reject "index.html" https://repo.grails.org/grails/core"

This morning, the wget command was ended, and I went into ".m2e", and instead of having the subfolders "connectors" and "discovery_catalog" as expected, I have an "index.htm.tmp" file.

Same on all the folders (".meta", ".nexus", ".report", and so on).

How can I mirror this maven repository using wget ? Is wget the right tool for this ?

Thanks in advance.


Solution

  • The error was due to an Internet connection error. I tried the same command on a subfolder and all worked as expected. Sorry for the question, due to the massive amount of data on core grails repository, the script crashed and I thought it was ended.