Add Maven settings for release jobs (#12479)

Closes #12474
This commit is contained in:
Stian Thorgersen 2022-06-13 15:53:44 +02:00 committed by GitHub
parent 105d3b955b
commit fb18b693c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 6 deletions

37
.github/mvn-rel-settings.xml vendored Normal file
View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<activeProfiles>
<activeProfile>keycloak-rel</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>keycloak-rel</id>
<repositories>
<repository>
<id>${env.MAVEN_ID}</id>
<url>${env.MAVEN_URL}</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>${env.MAVEN_ID}</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
<server>
<id>gpg.passphrase</id>
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
</server>
</servers>
</settings>

View file

@ -62,14 +62,10 @@
<dependency> <dependency>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
<artifactId>keycloak-quarkus-server</artifactId> <artifactId>keycloak-quarkus-server</artifactId>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-common</artifactId>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>*</groupId> <groupId>org.keycloak</groupId>
<artifactId>*</artifactId> <artifactId>keycloak-admin-ui</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>