Skip to content

Instantly share code, notes, and snippets.

View pedrotoliveira's full-sized avatar
:octocat:
Working from home

Pedro Thiago A. G. Oliveira pedrotoliveira

:octocat:
Working from home
View GitHub Profile
@pedrotoliveira
pedrotoliveira / mvnw-fix.sh
Created April 14, 2020 14:34 — forked from kbastani/mvnw-fix.sh
Adds a settings.xml file to your Spring Boot maven wrapper
#!/usr/bin/env bash
# Secure workaround for https://issues.sonatype.org/browse/MVNCENTRAL-1369
# Navigate to the root of your Spring Boot project where a Maven wrapper is present and run this script
cd .mvn/wrapper
wget https://gist.githubusercontent.com/kbastani/d4b4c92969ec5a22681bb3daa4a80343/raw/f166086ef051369383b02dfb74317cd07b6f2c6e/settings.xml
cd ../../
./mvnw clean install -s .mvn/wrapper/settings.xml