177 lines
8 KiB
XML
177 lines
8 KiB
XML
<?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>
|
|
<version>999-SNAPSHOT</version>
|
|
</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>
|
|
</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>
|
|
<message>Automated Karaf/Fuse adapter configuration currently doesn't work on Windows.</message>
|
|
</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>
|
|
<id>copy-configs</id>
|
|
<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>
|
|
<include>keycloak-bearer.json</include>
|
|
<include>cxf-customerservice-keycloak.json</include>
|
|
<include>keycloak-direct-access.json</include>
|
|
<include>keycloak-hawtio-client.json</include>
|
|
<include>keycloak-hawtio.json</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</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>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>app-server-fuse63</id>
|
|
<activation>
|
|
<property>
|
|
<name>app.server</name>
|
|
<value>fuse63</value>
|
|
</property>
|
|
</activation>
|
|
<modules>
|
|
<module>fuse63</module>
|
|
</modules>
|
|
</profile>
|
|
<profile>
|
|
<id>app-server-fuse7x</id>
|
|
<activation>
|
|
<property>
|
|
<name>app.server</name>
|
|
<value>fuse7x</value>
|
|
</property>
|
|
</activation>
|
|
<modules>
|
|
<module>fuse7x</module>
|
|
</modules>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|