My experience shows that the -o option doesn't work properly and that the go-offline goal is far from sufficient to allow a full offline build:
The solution I could validate includes the use of the --legacy-local-repository
maven option rather than the -o
(offline) one and
the use of the local repository in place of the distribution repository
In addition, I had to copy every maven-metadata-maven2_central.xml
files of the local-repo into the maven-metadata.xml
form expected by maven.
See the solution I found here.