Skip to content

Commit

Permalink
configure central HTTPS url for Maven < 3.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Jul 4, 2021
1 parent b3c1979 commit 8ded8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup Maven
shell: bash
run: |
if [[ ! -f ~/maven/bin/mvn ]]; then mkdir -p ~/maven && curl -s https://archive.apache.org/dist/maven/maven-3/${{ matrix.maven }}/binaries/apache-maven-${{ matrix.maven }}-bin.tar.gz | tar xvz --strip 1 -C ~/maven; fi
if [[ ! -f ~/maven/bin/mvn ]]; then mkdir -p ~/maven && curl -s https://archive.apache.org/dist/maven/maven-3/${{ matrix.maven }}/binaries/apache-maven-${{ matrix.maven }}-bin.tar.gz | tar xvz --strip 1 -C ~/maven; mkdir -p ~/.m2; echo "<settings><mirrors><mirror><mirrorOf>central</mirrorOf><name>central</name><url>https://repo.maven.apache.org/maven2/</url></mirror></mirrors></settings>" > ~/.m2/settings.xml; fi
- name: Build
shell: bash
Expand Down

0 comments on commit 8ded8f1

Please sign in to comment.