2021-07-14 15:35:49 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
JBoss, Home of Professional Open Source
|
|
|
|
Copyright 2016, Red Hat, Inc. and/or its affiliates, and individual
|
|
|
|
contributors by the @authors tag. See the copyright.txt in the
|
|
|
|
distribution for a full listing of individual contributors.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2022-08-20 08:10:36 +00:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2021-07-14 15:35:49 +00:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-admin-ui</artifactId>
|
2022-03-21 08:53:40 +00:00
|
|
|
<version>999-SNAPSHOT</version>
|
2021-07-14 15:35:49 +00:00
|
|
|
<name>Keycloak Administration UI</name>
|
2021-12-15 13:00:56 +00:00
|
|
|
<description>Keycloak Administration UI</description>
|
2022-03-28 07:18:40 +00:00
|
|
|
|
2021-12-15 13:00:56 +00:00
|
|
|
<properties>
|
2022-08-03 11:40:16 +00:00
|
|
|
<frontend.maven.plugin.version>1.12.1</frontend.maven.plugin.version>
|
2022-09-12 09:52:11 +00:00
|
|
|
<frontend.maven.plugin.nodeVersion>v18.9.0</frontend.maven.plugin.nodeVersion>
|
2022-08-20 08:10:36 +00:00
|
|
|
|
2023-01-16 10:34:37 +00:00
|
|
|
<keycloak.version>20.0.3</keycloak.version>
|
2022-08-25 09:03:07 +00:00
|
|
|
|
|
|
|
<admin-ui.path>../apps/admin-ui</admin-ui.path>
|
2021-12-15 13:00:56 +00:00
|
|
|
</properties>
|
2021-07-14 15:35:49 +00:00
|
|
|
|
|
|
|
<licenses>
|
|
|
|
<license>
|
|
|
|
<name>Apache License, Version 2.0.0</name>
|
|
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
2022-03-28 07:18:40 +00:00
|
|
|
|
|
|
|
<url>http://keycloak.org</url>
|
|
|
|
|
2021-12-15 13:00:56 +00:00
|
|
|
<scm>
|
|
|
|
<connection>scm:git:git://github.com/keycloak/keycloak-admin-ui.git</connection>
|
|
|
|
<developerConnection>scm:git:git@github.com:keycloak/keycloak-admin-ui.git</developerConnection>
|
|
|
|
<url>https://github.com/keycloak/keycloak-admin-ui/tree/master/</url>
|
2022-03-28 07:18:40 +00:00
|
|
|
</scm>
|
|
|
|
|
2021-12-15 13:00:56 +00:00
|
|
|
<developers>
|
|
|
|
<developer>
|
|
|
|
<id>keycloak</id>
|
|
|
|
<name>Keycloak Team</name>
|
|
|
|
</developer>
|
|
|
|
</developers>
|
2021-07-14 15:35:49 +00:00
|
|
|
|
2021-09-08 15:50:48 +00:00
|
|
|
<distributionManagement>
|
2022-03-28 07:18:40 +00:00
|
|
|
<snapshotRepository>
|
2022-09-29 08:13:50 +00:00
|
|
|
<id>ossrh</id>
|
|
|
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
2022-03-28 07:18:40 +00:00
|
|
|
</snapshotRepository>
|
2022-09-29 08:13:50 +00:00
|
|
|
<repository>
|
|
|
|
<id>ossrh</id>
|
|
|
|
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
|
|
</repository>
|
2021-09-08 15:50:48 +00:00
|
|
|
</distributionManagement>
|
2022-03-28 07:18:40 +00:00
|
|
|
|
2022-08-20 08:10:36 +00:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-spi</artifactId>
|
|
|
|
<version>${keycloak.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-spi-private</artifactId>
|
|
|
|
<version>${keycloak.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-services</artifactId>
|
|
|
|
<version>${keycloak.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.microprofile.openapi</groupId>
|
|
|
|
<artifactId>microprofile-openapi-api</artifactId>
|
2022-11-28 16:09:55 +00:00
|
|
|
<version>3.1</version>
|
2022-08-20 08:10:36 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testng</groupId>
|
|
|
|
<artifactId>testng</artifactId>
|
2023-01-02 09:02:32 +00:00
|
|
|
<version>7.7.1</version>
|
2022-08-20 08:10:36 +00:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
2021-12-15 13:00:56 +00:00
|
|
|
<profiles>
|
2022-09-14 07:32:02 +00:00
|
|
|
<profile>
|
|
|
|
<id>release</id>
|
|
|
|
<build>
|
2022-09-29 08:13:50 +00:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2023-02-20 14:18:40 +00:00
|
|
|
<version>3.5.0</version>
|
2022-09-29 08:13:50 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-javadocs</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<version>3.2.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar-no-fork</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
2023-02-13 09:11:58 +00:00
|
|
|
<version>3.1.0</version>
|
2022-09-29 08:13:50 +00:00
|
|
|
<configuration>
|
|
|
|
<retryFailedDeploymentCount>10</retryFailedDeploymentCount>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>nexus</id>
|
2022-09-30 06:44:37 +00:00
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>!skipNexus</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
2022-09-29 08:13:50 +00:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.sonatype.plugins</groupId>
|
|
|
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
|
|
<version>1.6.13</version>
|
|
|
|
<extensions>true</extensions>
|
|
|
|
<configuration>
|
|
|
|
<serverId>ossrh</serverId>
|
|
|
|
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
|
|
|
|
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2022-09-14 07:32:02 +00:00
|
|
|
</build>
|
|
|
|
</profile>
|
2022-03-25 10:37:40 +00:00
|
|
|
<profile>
|
|
|
|
<id>gpg</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
|
|
<version>3.0.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>sign-artifacts</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>sign</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<gpgArguments>
|
|
|
|
<arg>--batch</arg>
|
|
|
|
<arg>--pinentry-mode</arg>
|
|
|
|
<arg>loopback</arg>
|
|
|
|
</gpgArguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2022-09-29 08:13:50 +00:00
|
|
|
|
2022-08-03 11:40:16 +00:00
|
|
|
<profile>
|
|
|
|
<id>install-tarball</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
2022-08-20 08:10:36 +00:00
|
|
|
<name>installTarball</name>
|
2022-08-03 11:40:16 +00:00
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
|
|
<version>${frontend.maven.plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>install tarballs</id>
|
|
|
|
<phase>process-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2022-08-20 08:10:36 +00:00
|
|
|
<arguments>install ${project.basedir}/keycloak-nodejs-admin-client.tgz
|
|
|
|
${project.basedir}/keycloak-js.tgz
|
|
|
|
</arguments>
|
2022-08-03 11:40:16 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<nodeVersion>${frontend.maven.plugin.nodeVersion}</nodeVersion>
|
2022-08-25 09:03:07 +00:00
|
|
|
<workingDirectory>${admin-ui.path}</workingDirectory>
|
2022-08-03 11:40:16 +00:00
|
|
|
<installDirectory>.</installDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2021-12-15 13:00:56 +00:00
|
|
|
</profiles>
|
2021-07-14 15:35:49 +00:00
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2022-08-20 08:10:36 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2022-08-22 14:18:56 +00:00
|
|
|
<version>3.10.1</version>
|
2022-08-20 08:10:36 +00:00
|
|
|
<configuration>
|
|
|
|
<source>8</source>
|
|
|
|
<target>8</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>smallrye-open-api-maven-plugin</artifactId>
|
|
|
|
<groupId>io.smallrye</groupId>
|
2023-02-14 17:20:55 +00:00
|
|
|
<version>3.2.0</version>
|
2022-08-20 08:10:36 +00:00
|
|
|
<configuration>
|
|
|
|
<scanPackages>org.keycloak.admin.ui.rest</scanPackages>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>generate-schema</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-07-16 08:43:59 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.eirslett</groupId>
|
|
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
2022-08-03 11:40:16 +00:00
|
|
|
<version>${frontend.maven.plugin.version}</version>
|
2021-07-16 08:43:59 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-08-03 11:40:16 +00:00
|
|
|
<phase>generate-sources</phase>
|
2021-07-16 08:43:59 +00:00
|
|
|
<goals>
|
|
|
|
<goal>install-node-and-npm</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>npm install</id>
|
2022-08-03 11:40:16 +00:00
|
|
|
<phase>generate-sources</phase>
|
2021-07-16 08:43:59 +00:00
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
2022-04-21 09:38:56 +00:00
|
|
|
<configuration>
|
2022-08-03 11:40:16 +00:00
|
|
|
<arguments>install</arguments>
|
2022-04-21 09:38:56 +00:00
|
|
|
</configuration>
|
2021-07-16 08:43:59 +00:00
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>npm run build</id>
|
2022-08-03 11:40:16 +00:00
|
|
|
<phase>generate-resources</phase>
|
2021-07-16 08:43:59 +00:00
|
|
|
<goals>
|
|
|
|
<goal>npm</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2022-09-14 12:42:19 +00:00
|
|
|
<arguments>run build --workspace=admin-ui</arguments>
|
2021-07-16 08:43:59 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
2022-08-03 11:40:16 +00:00
|
|
|
<nodeVersion>${frontend.maven.plugin.nodeVersion}</nodeVersion>
|
2021-07-16 08:43:59 +00:00
|
|
|
<workingDirectory>../</workingDirectory>
|
|
|
|
<installDirectory>.</installDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2021-07-15 13:05:43 +00:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
2022-07-29 11:05:57 +00:00
|
|
|
<version>3.3.0</version>
|
2021-07-15 13:05:43 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2022-04-21 09:38:56 +00:00
|
|
|
<outputDirectory>target/classes/theme/keycloak.v2/admin/resources</outputDirectory>
|
2021-07-15 13:05:43 +00:00
|
|
|
<resources>
|
|
|
|
<resource>
|
2022-08-25 09:03:07 +00:00
|
|
|
<directory>${admin-ui.path}/dist</directory>
|
2021-07-15 13:05:43 +00:00
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-11-22 11:41:12 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>io.github.git-commit-id</groupId>
|
|
|
|
<artifactId>git-commit-id-maven-plugin</artifactId>
|
|
|
|
<version>5.0.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>revision</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>initialize</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-07-14 15:35:49 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
|
|
<artifactId>maven-replacer-plugin</artifactId>
|
2021-07-15 13:05:43 +00:00
|
|
|
<version>1.4.1</version>
|
2021-07-14 15:35:49 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2021-07-15 13:05:43 +00:00
|
|
|
<phase>process-resources</phase>
|
2021-07-14 15:35:49 +00:00
|
|
|
<goals>
|
|
|
|
<goal>replace</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
2022-04-21 09:38:56 +00:00
|
|
|
<file>target/classes/theme/keycloak.v2/admin/resources/index.html</file>
|
|
|
|
<outputFile>target/classes/theme/keycloak.v2/admin/index.ftl</outputFile>
|
2021-07-14 15:35:49 +00:00
|
|
|
<regex>false</regex>
|
|
|
|
<replacements>
|
|
|
|
<replacement>
|
2022-10-02 22:02:30 +00:00
|
|
|
<token>src="./</token>
|
2021-07-16 08:59:46 +00:00
|
|
|
<value>src="${resourceUrl}/</value>
|
2021-07-14 15:35:49 +00:00
|
|
|
</replacement>
|
|
|
|
<replacement>
|
2022-10-02 22:02:30 +00:00
|
|
|
<token>href="./</token>
|
2021-07-14 15:35:49 +00:00
|
|
|
<value>href="${resourceUrl}/</value>
|
|
|
|
</replacement>
|
|
|
|
<replacement>
|
2022-08-02 12:11:38 +00:00
|
|
|
<token><![CDATA[</body>]]></token>
|
2021-07-15 09:50:01 +00:00
|
|
|
<value xml:space="preserve">
|
|
|
|
<![CDATA[
|
|
|
|
<script id="environment" type="application/json">
|
|
|
|
{
|
2021-08-12 08:26:26 +00:00
|
|
|
"loginRealm": "${loginRealm!"master"}",
|
2021-07-15 09:50:01 +00:00
|
|
|
"authServerUrl": "${authServerUrl}",
|
|
|
|
"authUrl": "${authUrl}",
|
|
|
|
"consoleBaseUrl": "${consoleBaseUrl}",
|
|
|
|
"resourceUrl": "${resourceUrl}",
|
|
|
|
"masterRealm": "${masterRealm}",
|
|
|
|
"resourceVersion": "${resourceVersion}",
|
2021-11-22 11:41:12 +00:00
|
|
|
"commitHash": "${git.commit.id}",
|
2021-07-15 09:50:01 +00:00
|
|
|
"isRunningAsTheme": true
|
|
|
|
}
|
|
|
|
</script>
|
2022-08-02 12:11:38 +00:00
|
|
|
</body>
|
2021-07-15 09:50:01 +00:00
|
|
|
]]>
|
2022-09-27 08:59:47 +00:00
|
|
|
</value>
|
|
|
|
</replacement>
|
|
|
|
<replacement>
|
|
|
|
<token><![CDATA[</head>]]></token>
|
|
|
|
<value xml:space="preserve">
|
|
|
|
<![CDATA[
|
|
|
|
<#if properties.styles?has_content>
|
|
|
|
<#list properties.styles?split(' ') as style>
|
|
|
|
<link href="${resourceUrl}/${style}" rel="stylesheet"/>
|
|
|
|
</#list>
|
|
|
|
</#if>
|
|
|
|
</head>
|
|
|
|
]]>
|
2022-04-21 09:38:56 +00:00
|
|
|
</value>
|
2021-07-14 15:35:49 +00:00
|
|
|
</replacement>
|
|
|
|
</replacements>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2021-12-15 13:00:56 +00:00
|
|
|
</project>
|