-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added github tag, using actions-maven-settings file with existing pom…
….xml file
- Loading branch information
1 parent
5a2cb9b
commit 61ec19e
Showing
4 changed files
with
206 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<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"> | ||
|
||
<mirrors> | ||
<mirror> | ||
<mirrorOf>*,!artifact-registry</mirrorOf> | ||
<url>https://repo.maven.apache.org/maven2/</url> | ||
</mirror> | ||
</mirrors> | ||
|
||
<profiles> | ||
<profile> | ||
<id>ci-build</id> | ||
<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> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<releases> | ||
<updatePolicy>never</updatePolicy> | ||
</releases> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<id>central</id> | ||
<name>Central Repository</name> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
</profile> | ||
</profiles> | ||
|
||
<activeProfiles> | ||
<!-- Activate the CI profile --> | ||
<activeProfile>ci-build</activeProfile> | ||
</activeProfiles> | ||
|
||
<servers> | ||
<!-- Add Google Artifact Registry authentication --> | ||
<server> | ||
<id>artifact-registry</id> | ||
<username>oauth2accesstoken</username> | ||
<password>${env.ACCESS_TOKEN}</password> <!-- Access token generated via GitHub Actions using Workload Identity Federation --> | ||
</server> | ||
|
||
<server> | ||
<id>ossrh</id> | ||
<username>${env.OSSRH_USERNAME}</username> | ||
<password>${env.OSSRH_PASSWORD}</password> | ||
</server> | ||
|
||
<server> | ||
<id>github.com</id> | ||
<username>${env.GITHUB_USERNAME}</username> | ||
<password>${env.GITHUB_TOKEN}</password> | ||
</server> | ||
</servers> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,82 @@ | ||
<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"> | ||
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"> | ||
|
||
<mirrors> | ||
<mirror> | ||
<mirrorOf>*,!artifact-registry</mirrorOf> | ||
<url>https://repo.maven.apache.org/maven2/</url> | ||
</mirror> | ||
</mirrors> | ||
<mirrors> | ||
<mirror> | ||
<mirrorOf>*,!artifact-registry</mirrorOf> | ||
<url>https://repo.maven.apache.org/maven2/</url> | ||
</mirror> | ||
</mirrors> | ||
<profiles> | ||
<profile> | ||
<id>travis-ci</id> | ||
<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> | ||
|
||
<profiles> | ||
<profile> | ||
<id>ci-build</id> | ||
<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> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<releases> | ||
<updatePolicy>never</updatePolicy> | ||
</releases> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<id>central</id> | ||
<name>Central Repository</name> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<releases> | ||
<updatePolicy>never</updatePolicy> | ||
</releases> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
<id>central</id> | ||
<name>Central Repository</name> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
</profile> | ||
</profiles> | ||
</profile> | ||
</profiles> | ||
|
||
<activeProfiles> | ||
<!-- Activate the CI profile --> | ||
<activeProfile>ci-build</activeProfile> | ||
</activeProfiles> | ||
<activeProfiles> | ||
<!--make the profile active all the time --> | ||
<activeProfile>travis-ci</activeProfile> | ||
</activeProfiles> | ||
|
||
<servers> | ||
<!-- Add Google Artifact Registry authentication --> | ||
<server> | ||
<id>artifact-registry</id> | ||
<username>oauth2accesstoken</username> | ||
<password>${env.ACCESS_TOKEN}</password> <!-- Access token generated via GitHub Actions using Workload Identity Federation --> | ||
</server> | ||
|
||
<server> | ||
<id>ossrh</id> | ||
<username>${env.OSSRH_USERNAME}</username> | ||
<password>${env.OSSRH_PASSWORD}</password> | ||
</server> | ||
|
||
<server> | ||
<id>github.com</id> | ||
<username>${env.GITHUB_USERNAME}</username> | ||
<password>${env.GITHUB_TOKEN}</password> | ||
</server> | ||
</servers> | ||
<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> | ||
<username>_json_key_base64</username> | ||
<password>${env.ARTIFACT_REGISTRY_KEY}</password> | ||
</server> | ||
<server> | ||
<id>ossrh</id> | ||
<username>${env.OSSRH_USERNAME}</username> | ||
<password>${env.OSSRH_PASSWORD}</password> | ||
</server> | ||
<server> | ||
<id>github.com</id> | ||
<username>${env.GITHUB_USERNAME}</username> | ||
<password>${env.GITHUB_TOKEN}</password> | ||
</server> | ||
</servers> | ||
</settings> |