Skip to content

Instantly share code, notes, and snippets.

Last active September 14, 2023 21:44
  • Star 16 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Adds a settings.xml file to your Spring Boot maven wrapper
#!/usr/bin/env bash
# Secure workaround for
# Navigate to the root of your Spring Boot project where a Maven wrapper is present and run this script
cd .mvn/wrapper
cd ../../
./mvnw clean install -s .mvn/wrapper/settings.xml
<settings xmlns=""
<!--Override the repository (and pluginRepository) "central" from the
Maven Super POM -->
Copy link

Thanks you for providing settings.xml Spring Boot maven wrapper

Copy link

thank you - that is a "poorly-documented elsewhere" lifesaver

Copy link

I wish that -s would take a URI directly!

Copy link

shashiks commented Jul 8, 2020

This is fantastic thnx!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment