Fix maven central http(s) issues

This commit is contained in:
baztian
2020-05-25 15:34:45 +02:00
parent 08ebac8205
commit cd35f38d1c
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -11,6 +11,6 @@ uri={0}/.m2/repository/
type=local
[repos:central]
uri=http://repo1.maven.org/maven2/
uri=https://repo1.maven.org/maven2/
type=remote
""".format(dist), file=out)
+1 -1
View File
@@ -9,6 +9,6 @@ _PATH=${GROUP_ID/./\/}/$ARTIFACT_NAME
_ARTIFACT_SPEC_BASENAME=${NON_GROUP_ID/:/-}
VERSION=${ARTIFACT_SPEC##*:}
echo "Downloading ${ARTIFACT_NAME} version ${VERSION} group id ${GROUP_ID}..." >&2
wget http://search.maven.org/remotecontent?filepath=${_PATH}/$VERSION/${_ARTIFACT_SPEC_BASENAME}.jar -O ${_ARTIFACT_SPEC_BASENAME}.jar
wget https://search.maven.org/remotecontent?filepath=${_PATH}/$VERSION/${_ARTIFACT_SPEC_BASENAME}.jar -O ${_ARTIFACT_SPEC_BASENAME}.jar
echo "...download of ${_ARTIFACT_SPEC_BASENAME}.jar finished." >&2
echo ${_ARTIFACT_SPEC_BASENAME}.jar