fix maven repo for openapi-generator-cli (#1333)

This commit is contained in:
Adam Shannon 2018-10-27 20:16:08 -07:00 committed by William Cheng
parent d7d5e712e2
commit d61a14cab9

View File

@ -41,7 +41,7 @@ jar=${artifactid}-${ver}.jar
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -f ${DIR}/${jar} ]; then
repo="central::default::https://repo1.maven.apache.org/maven2"
repo="central::default::https://repo1.maven.org/maven2/"
if [[ ${ver} =~ ^.*-SNAPSHOT$ ]]; then
repo="central::default::https://oss.sonatype.org/content/repositories/snapshots"
fi