Setting up a remote build cache server for Maven | Fred's safe space
Starting with Maven 3.9.0, you can use the maven-build-cache-extension to store build caches both locally and remotely. However the documentation for setting up a remote cache server is fairly vague.
https://fbricon.github.io/posts/setup-remote-build-cache-server/