2016-03-24 10:24:21 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
|
|
|
|
~ and other contributors as indicated by the @author tags.
|
|
|
|
~
|
|
|
|
~ 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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
|
<parent>
|
|
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
|
|
<artifactId>integration-arquillian-servers-app-server</artifactId>
|
2019-01-03 13:42:58 +00:00
|
|
|
<version>4.8.2.Final-SNAPSHOT</version>
|
2016-03-24 10:24:21 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>integration-arquillian-servers-app-server-karaf</artifactId>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<name>App Server - Karaf</name>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<common.resources>${project.parent.basedir}/common</common.resources>
|
|
|
|
<assembly.xml>${project.parent.basedir}/assembly.xml</assembly.xml>
|
|
|
|
<app.server.karaf.home>${containers.home}/${app.server.karaf.unpacked.folder.name}</app.server.karaf.home>
|
|
|
|
<app.server.karaf.client.auth>-u karaf</app.server.karaf.client.auth>
|
|
|
|
<app.server.karaf.uninstall.pax>false</app.server.karaf.uninstall.pax>
|
2016-04-19 11:46:58 +00:00
|
|
|
<app.server.karaf.update.config>false</app.server.karaf.update.config>
|
2016-03-24 10:24:21 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>app-server-karaf-submodules</id>
|
|
|
|
<activation>
|
|
|
|
<file>
|
|
|
|
<exists>src</exists>
|
|
|
|
</file>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
|
|
|
<property>app.server.karaf</property>
|
|
|
|
<property>app.server.karaf.groupId</property>
|
|
|
|
<property>app.server.karaf.artifactId</property>
|
|
|
|
<property>app.server.karaf.version</property>
|
|
|
|
<property>app.server.karaf.unpacked.folder.name</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireOS>
|
|
|
|
<family>!windows</family>
|
2018-06-26 09:27:17 +00:00
|
|
|
<message>Automated Karaf/Fuse adapter configuration currently doesn't work on Windows.</message>
|
2016-03-24 10:24:21 +00:00
|
|
|
</requireOS>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack-karaf</id>
|
|
|
|
<phase>generate-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>${app.server.karaf.groupId}</groupId>
|
|
|
|
<artifactId>${app.server.karaf.artifactId}</artifactId>
|
|
|
|
<version>${app.server.karaf.version}</version>
|
|
|
|
<type>zip</type>
|
|
|
|
<outputDirectory>${containers.home}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2016-04-19 11:46:58 +00:00
|
|
|
<id>copy-clis</id>
|
2016-03-24 10:24:21 +00:00
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${app.server.karaf.home}/bin</outputDirectory>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>install-features.cli</include>
|
2016-04-19 11:46:58 +00:00
|
|
|
<include>update-config.cli</include>
|
2017-01-10 18:09:53 +00:00
|
|
|
<include>update-config-auth.cli</include>
|
2016-03-24 10:24:21 +00:00
|
|
|
</includes>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-01-10 18:09:53 +00:00
|
|
|
<id>copy-configs</id>
|
2016-03-24 10:24:21 +00:00
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<outputDirectory>${app.server.karaf.home}/etc</outputDirectory>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>users.properties</include>
|
2018-06-13 12:22:35 +00:00
|
|
|
<include>keycloak-bearer.json</include>
|
2018-07-19 12:11:41 +00:00
|
|
|
<include>cxf-customerservice-keycloak.json</include>
|
2017-01-10 18:09:53 +00:00
|
|
|
<include>keycloak-direct-access.json</include>
|
|
|
|
<include>keycloak-hawtio-client.json</include>
|
|
|
|
<include>keycloak-hawtio.json</include>
|
2016-03-24 10:24:21 +00:00
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>install-features</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<executable>${common.resources}/install-features.${script.suffix}</executable>
|
|
|
|
<workingDirectory>${app.server.karaf.home}/bin</workingDirectory>
|
|
|
|
<environmentVariables>
|
|
|
|
<JAVA_HOME>${app.server.java.home}</JAVA_HOME>
|
|
|
|
<CLIENT_AUTH>${app.server.karaf.client.auth}</CLIENT_AUTH>
|
|
|
|
<UNINSTALL_PAX>${app.server.karaf.uninstall.pax}</UNINSTALL_PAX>
|
2016-04-19 11:46:58 +00:00
|
|
|
<UPDATE_CONFIG>${app.server.karaf.update.config}</UPDATE_CONFIG>
|
2016-03-24 10:24:21 +00:00
|
|
|
</environmentVariables>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-zip</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${assembly.xml}</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2018-07-19 12:11:41 +00:00
|
|
|
</plugin>
|
2016-03-24 10:24:21 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2018-04-11 09:45:56 +00:00
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>enforce-props-when-update-config</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>app.server.karaf.update.config</name>
|
|
|
|
<value>true</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-props-when-update-config</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
|
|
|
<message>When updating config maven.local.settings is expected to be explicitly set.</message>
|
|
|
|
<property>maven.local.settings</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireProperty>
|
|
|
|
<message>When updating config maven.repo.local is expected to be explicitly set.</message>
|
|
|
|
<property>maven.repo.local</property>
|
|
|
|
</requireProperty>
|
|
|
|
<requireProperty>
|
|
|
|
<message>When updating config repositories is expected to be set.</message>
|
|
|
|
<property>repositories</property>
|
|
|
|
</requireProperty>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2016-03-24 10:24:21 +00:00
|
|
|
<profile>
|
|
|
|
<id>app-server-karaf3</id>
|
|
|
|
<modules>
|
|
|
|
<module>karaf3</module>
|
|
|
|
</modules>
|
2018-04-11 09:45:56 +00:00
|
|
|
</profile>
|
2016-03-24 10:24:21 +00:00
|
|
|
<profile>
|
|
|
|
<id>app-server-fuse61</id>
|
|
|
|
<modules>
|
|
|
|
<module>fuse61</module>
|
|
|
|
</modules>
|
2018-04-11 09:45:56 +00:00
|
|
|
</profile>
|
2016-03-24 10:24:21 +00:00
|
|
|
<profile>
|
|
|
|
<id>app-server-fuse62</id>
|
|
|
|
<modules>
|
|
|
|
<module>fuse62</module>
|
|
|
|
</modules>
|
2018-04-11 09:45:56 +00:00
|
|
|
</profile>
|
2016-04-28 12:48:57 +00:00
|
|
|
<profile>
|
|
|
|
<id>app-server-fuse63</id>
|
2018-06-27 21:44:17 +00:00
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>app.server</name>
|
|
|
|
<value>fuse63</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
2016-04-28 12:48:57 +00:00
|
|
|
<modules>
|
|
|
|
<module>fuse63</module>
|
|
|
|
</modules>
|
2018-04-11 09:45:56 +00:00
|
|
|
</profile>
|
|
|
|
<profile>
|
2018-09-12 09:56:07 +00:00
|
|
|
<id>app-server-fuse7x</id>
|
2018-06-27 21:44:17 +00:00
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>app.server</name>
|
2018-09-12 09:56:07 +00:00
|
|
|
<value>fuse7x</value>
|
2018-06-27 21:44:17 +00:00
|
|
|
</property>
|
|
|
|
</activation>
|
2018-04-11 09:45:56 +00:00
|
|
|
<modules>
|
2018-09-12 09:56:07 +00:00
|
|
|
<module>fuse7x</module>
|
2018-06-27 21:44:17 +00:00
|
|
|
</modules>
|
|
|
|
</profile>
|
2016-03-24 10:24:21 +00:00
|
|
|
</profiles>
|
|
|
|
|
|
|
|
</project>
|