Skip to content

Commit

Permalink
Update settings.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-koteswaradodda authored Oct 8, 2024
1 parent 88e382e commit 968e57f
Showing 1 changed file with 36 additions and 11 deletions.
47 changes: 36 additions & 11 deletions travis/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,45 @@
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>
<!-- Artifact Registry server configuration using ACCESS_TOKEN -->
<server>
<id>artifact-registry</id>
<username>oauth2accesstoken</username>
<password>${env.ACCESS_TOKEN}</password>
<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>
<username>oauth2accesstoken</username> <!-- Use OAuth2 access token -->
<password>${env.ACCESS_TOKEN}</password> <!-- The token passed through GitHub Actions -->
</server>

<!-- OSSRH Server Configuration -->
<server>
<id>ossrh</id>
<username>${env.OSSRH_USERNAME}</username>
<password>${env.OSSRH_PASSWORD}</password>
</server>

<!-- GitHub Server Configuration -->
<server>
<id>github.com</id>
<username>${env.GITHUB_USERNAME}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
<repositories>
<repository>
<id>artifact-registry</id>
<url>https://us-west1-maven.pkg.dev/som-rit-infrastructure-prod/public-maven</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</settings>

0 comments on commit 968e57f

Please sign in to comment.