2021-02-05 19:23:49 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2016-02-03 10:20:22 +00:00
|
|
|
<!--
|
2021-02-05 19:23:49 +00:00
|
|
|
~ JBoss, Home of Professional Open Source.
|
|
|
|
~ Copyright 2021, Red Hat, Inc., and individual contributors
|
|
|
|
~ as indicated by the @author tags. See the copyright.txt file in the
|
|
|
|
~ distribution for a full listing of individual contributors.
|
2016-02-03 10:20:22 +00:00
|
|
|
~
|
2021-02-05 19:23:49 +00:00
|
|
|
~ This is free software; you can redistribute it and/or modify it
|
|
|
|
~ under the terms of the GNU Lesser General Public License as
|
|
|
|
~ published by the Free Software Foundation; either version 2.1 of
|
|
|
|
~ the License, or (at your option) any later version.
|
2016-02-03 10:20:22 +00:00
|
|
|
~
|
2021-02-05 19:23:49 +00:00
|
|
|
~ This software is distributed in the hope that it will be useful,
|
|
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
~ Lesser General Public License for more details.
|
2016-02-03 10:20:22 +00:00
|
|
|
~
|
2021-02-05 19:23:49 +00:00
|
|
|
~ You should have received a copy of the GNU Lesser General Public
|
|
|
|
~ License along with this software; if not, write to the Free
|
|
|
|
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
|
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
2016-02-03 10:20:22 +00:00
|
|
|
-->
|
|
|
|
|
2021-02-05 19:23:49 +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/xsd/maven-4.0.0.xsd">
|
2015-07-17 11:45:43 +00:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2021-02-05 19:23:49 +00:00
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
<parent>
|
2016-01-13 13:24:31 +00:00
|
|
|
<artifactId>keycloak-distribution-parent</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
<groupId>org.keycloak</groupId>
|
2021-05-06 12:39:32 +00:00
|
|
|
<version>14.0.0-SNAPSHOT</version>
|
2015-07-17 11:45:43 +00:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<artifactId>keycloak-server-dist</artifactId>
|
2021-02-05 19:23:49 +00:00
|
|
|
|
|
|
|
<name>Keycloak Server Galleon Based Distribution</name>
|
2015-07-17 11:45:43 +00:00
|
|
|
<description/>
|
|
|
|
|
2021-02-05 19:23:49 +00:00
|
|
|
<packaging>pom</packaging>
|
2019-10-10 05:41:50 +00:00
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependencies>
|
2021-02-05 19:23:49 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.wildfly</groupId>
|
|
|
|
<artifactId>wildfly-galleon-pack</artifactId>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.wildfly</groupId>
|
|
|
|
<artifactId>wildfly-galleon-pack</artifactId>
|
|
|
|
<type>zip</type>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>*</groupId>
|
|
|
|
<artifactId>*</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-galleon-pack</artifactId>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2015-07-17 11:45:43 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2021-02-05 19:23:49 +00:00
|
|
|
<artifactId>keycloak-server-galleon-pack</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
<type>zip</type>
|
2017-06-27 12:23:32 +00:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>*</groupId>
|
|
|
|
<artifactId>*</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependency>
|
2021-02-05 19:23:49 +00:00
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
2021-02-05 19:23:49 +00:00
|
|
|
<finalName>${server.output.dir.prefix}-${server.output.dir.version}</finalName>
|
2015-07-17 11:45:43 +00:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2021-02-05 19:23:49 +00:00
|
|
|
<groupId>org.jboss.galleon</groupId>
|
|
|
|
<artifactId>galleon-maven-plugin</artifactId>
|
2015-07-17 11:45:43 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>server-provisioning</id>
|
|
|
|
<goals>
|
2021-02-05 19:23:49 +00:00
|
|
|
<goal>provision</goal>
|
2015-07-17 11:45:43 +00:00
|
|
|
</goals>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<configuration>
|
2021-02-05 19:23:49 +00:00
|
|
|
<install-dir>${basedir}/target/${project.build.finalName}</install-dir>
|
|
|
|
<record-state>false</record-state>
|
|
|
|
<log-time>${galleon.log.time}</log-time>
|
|
|
|
<offline>${galleon.offline}</offline>
|
|
|
|
<plugin-options>
|
|
|
|
<jboss-fork-embedded>${galleon.fork.embedded}</jboss-fork-embedded>
|
|
|
|
</plugin-options>
|
|
|
|
<feature-packs>
|
|
|
|
<feature-pack>
|
|
|
|
<transitive>true</transitive>
|
|
|
|
<groupId>${ee.maven.groupId}</groupId>
|
|
|
|
<artifactId>wildfly-ee-galleon-pack</artifactId>
|
|
|
|
<version>${ee.maven.version}</version>
|
|
|
|
<included-packages>
|
|
|
|
<name>welcome-content</name>
|
|
|
|
</included-packages>
|
|
|
|
<excluded-packages>
|
|
|
|
<name>product.conf</name>
|
|
|
|
<name>appclient</name>
|
|
|
|
<name>bin.appclient</name>
|
|
|
|
</excluded-packages>
|
|
|
|
</feature-pack>
|
|
|
|
<feature-pack>
|
|
|
|
<transitive>true</transitive>
|
|
|
|
<groupId>org.wildfly</groupId>
|
|
|
|
<artifactId>wildfly-galleon-pack</artifactId>
|
|
|
|
<version>${wildfly.version}</version>
|
|
|
|
<included-packages>
|
|
|
|
<name>bin</name>
|
|
|
|
<name>bin.domain</name>
|
|
|
|
<name>docs.examples.configs</name>
|
|
|
|
</included-packages>
|
|
|
|
<excluded-packages>
|
|
|
|
<name>product.conf</name>
|
|
|
|
<name>appclient</name>
|
|
|
|
<name>bin.appclient</name>
|
|
|
|
</excluded-packages>
|
|
|
|
</feature-pack>
|
|
|
|
<feature-pack>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-galleon-pack</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<included-packages>
|
|
|
|
<name>identity</name>
|
|
|
|
<name>client-cli</name>
|
|
|
|
<name>core-tools</name>
|
|
|
|
<name>themes</name>
|
|
|
|
<name>welcome-content-keycloak</name>
|
|
|
|
</included-packages>
|
|
|
|
<excluded-packages>
|
|
|
|
</excluded-packages>
|
|
|
|
</feature-pack>
|
|
|
|
</feature-packs>
|
2015-07-17 11:45:43 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-02-05 19:23:49 +00:00
|
|
|
<plugin> <!-- TODO: remove this in favour of proper Galleon Licenses Generation -->
|
2017-10-19 18:11:02 +00:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2021-02-05 19:23:49 +00:00
|
|
|
<id>unpack-and-inject-keycloak-server-feature-pack-licenses</id>
|
|
|
|
<phase>process-classes</phase>
|
2017-10-19 18:11:02 +00:00
|
|
|
<goals>
|
2021-02-05 19:23:49 +00:00
|
|
|
<goal>unpack</goal>
|
2017-10-19 18:11:02 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2021-02-05 19:23:49 +00:00
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-feature-pack</artifactId>
|
|
|
|
<type>zip</type>
|
|
|
|
<outputDirectory>${basedir}/target/${project.build.finalName}/docs</outputDirectory>
|
|
|
|
<includes>content/docs/licenses-${product.slot}/**</includes>
|
|
|
|
<fileMappers>
|
|
|
|
<org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
|
|
|
|
<pattern>^\Qcontent/docs/\E</pattern>
|
|
|
|
<replacement>./</replacement>
|
|
|
|
</org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
|
|
|
|
</fileMappers>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
2017-10-19 18:11:02 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-02-05 19:23:49 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<!-- remove unwanted files from wildfly distribution (too complicated/not possible via galleon packages) -->
|
|
|
|
<id>post-provision-cleanup</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>clean</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<excludeDefaultDirectories>true</excludeDefaultDirectories>
|
|
|
|
<filesets>
|
|
|
|
<fileset>
|
|
|
|
<directory>${basedir}/target/${project.build.finalName}</directory>
|
|
|
|
<includes>
|
|
|
|
<include>README.txt</include>
|
|
|
|
<include>copyright.txt</include>
|
|
|
|
</includes>
|
|
|
|
</fileset>
|
|
|
|
<fileset>
|
|
|
|
<directory>${basedir}/target/${project.build.finalName}/welcome-content</directory>
|
|
|
|
<excludes>
|
|
|
|
<exclude>robots.txt</exclude>
|
|
|
|
<exclude>index.html</exclude>
|
|
|
|
</excludes>
|
|
|
|
</fileset>
|
|
|
|
</filesets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>verifications-configuration</id>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<configuration>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
<outputDirectory>${basedir}/target/verifier</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/verifier</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-verifier-plugin</artifactId>
|
|
|
|
</plugin>
|
2015-07-17 11:45:43 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>assemble</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptors>
|
2021-02-05 19:23:49 +00:00
|
|
|
<descriptor>assembly.xml</descriptor>
|
2015-07-17 11:45:43 +00:00
|
|
|
</descriptors>
|
|
|
|
<recompressZippedFiles>true</recompressZippedFiles>
|
|
|
|
<finalName>${project.build.finalName}</finalName>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
<workDirectory>${project.build.directory}/assembly/work</workDirectory>
|
2021-02-05 19:23:49 +00:00
|
|
|
<tarLongFileMode>gnu</tarLongFileMode>
|
2015-07-17 11:45:43 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|