Skip to content

Commit

Permalink
add settings.xml to fix authentication issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-koteswara committed Sep 16, 2024
1 parent 29b9a25 commit acaaaf7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/vertx-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
restore-keys: ${{ runner.os }}-maven

- name: Copy Maven settings
run: cp ./travis/maven-settings.xml $HOME/.m2/settings.xml
run: cp ./travis/settings.xml $HOME/.m2/settings.xml

- name: Update version in pom.xml
run: sed -i "s/-SNAPSHOT/-github-build-${{ github.run_number }}/" pom.xml
Expand Down
28 changes: 28 additions & 0 deletions travis/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>artifact-registry</id>
<configuration>
<httpConfiguration>
<get>
<usePreemptive>true</usePreemptive>
</get>
<head>
<usePreemptive>true</usePreemptive>
</head>
<put>
<params>
<property>
<name>http.protocol.expect-continue</name>
<value>false</value>
</property>
</params>
</put>
</httpConfiguration>
</configuration>
</server>
</servers>
</settings>

0 comments on commit acaaaf7

Please sign in to comment.