Skip to content

Commit

Permalink
8331113: createJMHBundle.sh support configurable maven repo mirror
Browse files Browse the repository at this point in the history
The script make/devkit/createJMHBundle.sh use fixed maven repo server: https://repo.maven.apache.org/maven2.
It's maybe useful to make the maven repo mirror configurable.

Signed-off-by: sendaoYan <yansendao.ysd@alibaba-inc.com>
  • Loading branch information
sendaoYan committed Apr 25, 2024
1 parent b1b953c commit def5f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion make/devkit/createJMHBundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
JMH_VERSION=1.37
COMMONS_MATH3_VERSION=3.6.1
JOPT_SIMPLE_VERSION=5.0.4
MAVEN_MIRROR=${MAVEN_MIRROR:-https://repo.maven.apache.org/maven2}

BUNDLE_NAME=jmh-$JMH_VERSION.tar.gz

Expand All @@ -41,7 +42,7 @@ cd $JAR_DIR
rm -f *

fetchJar() {
url="https://repo.maven.apache.org/maven2/$1/$2/$3/$2-$3.jar"
url="${MAVEN_MIRROR}/$1/$2/$3/$2-$3.jar"
if command -v curl > /dev/null; then
curl -O --fail $url
elif command -v wget > /dev/null; then
Expand Down

0 comments on commit def5f3b

Please sign in to comment.