303 lines
16 KiB
XML
303 lines
16 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-jboss</artifactId>
|
|
<version>8.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>integration-arquillian-servers-app-server-eap6</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>App Server - EAP 6</name>
|
|
|
|
<properties>
|
|
<app.server.jboss>eap6</app.server.jboss>
|
|
|
|
<app.server.jboss.groupId>org.jboss.as</app.server.jboss.groupId>
|
|
<app.server.jboss.artifactId>jboss-as-dist</app.server.jboss.artifactId>
|
|
<app.server.jboss.version>${eap6.version}</app.server.jboss.version>
|
|
<app.server.jboss.unpacked.folder.name>jboss-eap-6.4</app.server.jboss.unpacked.folder.name>
|
|
|
|
<fuse.installer.groupId>com.redhat.fuse.eap</fuse.installer.groupId>
|
|
<fuse.installer.artifactId>fuse-eap-installer</fuse.installer.artifactId>
|
|
<fuse.installer.version>${fuse63.version}</fuse.installer.version>
|
|
|
|
<app.server.oidc.adapter.artifactId>keycloak-eap6-adapter-dist</app.server.oidc.adapter.artifactId>
|
|
<app.server.saml.adapter.artifactId>keycloak-saml-eap6-adapter-dist</app.server.saml.adapter.artifactId>
|
|
|
|
<skip.apply.offline.cli>true</skip.apply.offline.cli>
|
|
<skip.configure.clustered.scenario>true</skip.configure.clustered.scenario>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian-servers-app-server-spi</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.wildfly.arquillian</groupId>
|
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian-util</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>install-adapters-online-standalone</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>${basedir}/src/main/resources/config/install-adapters-online.${script.suffix}</executable>
|
|
<workingDirectory>${app.server.jboss.home}/bin</workingDirectory>
|
|
<environmentVariables>
|
|
<JAVA_HOME>${app.server.java.home}</JAVA_HOME>
|
|
<JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
|
|
<SAML_SUPPORTED>${app.server.saml.adapter.supported}</SAML_SUPPORTED>
|
|
<CLI_PATH>${basedir}/src/main/resources/config/cli/</CLI_PATH>
|
|
</environmentVariables>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>install-adapters-online-standalone-ha</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>${basedir}/src/main/resources/config/install-adapters-online-ha.${script.suffix}</executable>
|
|
<workingDirectory>${app.server.jboss.home}/bin</workingDirectory>
|
|
<environmentVariables>
|
|
<JAVA_HOME>${app.server.java.home}</JAVA_HOME>
|
|
<JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
|
|
<CLI_PATH>${basedir}/src/main/resources/config/cli/</CLI_PATH>
|
|
</environmentVariables>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>add-secured-deployments-eap6</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>${basedir}/src/main/resources/config/add-secured-deployments.${script.suffix}</executable>
|
|
<workingDirectory>${app.server.jboss.home}/bin</workingDirectory>
|
|
<environmentVariables>
|
|
<JAVA_HOME>${app.server.java.home}</JAVA_HOME>
|
|
<JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
|
|
<CLI_PATH>${basedir}/src/main/resources/config/cli/</CLI_PATH>
|
|
</environmentVariables>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>fuse-installer</id>
|
|
<activation>
|
|
<os>
|
|
<family>unix</family>
|
|
</os>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-fuse63-version</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireProperty>
|
|
<property>fuse63.version</property>
|
|
</requireProperty>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>backup-configs-fuse</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${app.server.jboss.home}/standalone-default</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${app.server.jboss.home}/standalone</directory>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-hawtio-jsons</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${app.server.jboss.home}/standalone-fuse/configuration</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>${basedir}/src/main/resources/config/fuse</directory>
|
|
<includes>
|
|
<include>keycloak-hawtio.json</include>
|
|
<include>keycloak-hawtio-client.json</include>
|
|
</includes>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-fuse-installer</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>copy</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>${fuse.installer.groupId}</groupId>
|
|
<artifactId>${fuse.installer.artifactId}</artifactId>
|
|
<version>${fuse.installer.version}</version>
|
|
<type>jar</type>
|
|
<outputDirectory>${app.server.jboss.home}</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>install-fuse</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
<configuration>
|
|
<executable>${basedir}/src/main/resources/config/fuse/install-fuse.${script.suffix}</executable>
|
|
<workingDirectory>${app.server.jboss.home}/standalone-fuse</workingDirectory>
|
|
<environmentVariables>
|
|
<JAVA_HOME>${app.server.java.home}</JAVA_HOME>
|
|
<JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
|
|
<FUSE_INSTALLER_NAME>${fuse.installer.artifactId}-${fuse.installer.version}.jar</FUSE_INSTALLER_NAME>
|
|
</environmentVariables>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>add-hawtio-to-standalone-fuse</id>
|
|
<phase>process-test-resources</phase>
|
|
<goals>
|
|
<goal>transform</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformationSets>
|
|
<transformationSet>
|
|
<dir>${app.server.jboss.home}/standalone-fuse/configuration</dir>
|
|
<includes>
|
|
<include>standalone.xml</include>
|
|
</includes>
|
|
<stylesheet>${basedir}/src/main/resources/config/fuse/add-hawtio.xsl</stylesheet>
|
|
<outputDir>${app.server.jboss.home}/standalone-fuse/configuration</outputDir>
|
|
</transformationSet>
|
|
</transformationSets>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>move-configs-fuse</id>
|
|
<phase>process-test-sources</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<echo message="Rename ./standalone to ./standalone-fuse" />
|
|
<move file="${app.server.jboss.home}/standalone"
|
|
tofile="${app.server.jboss.home}/standalone-fuse" />
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>restore-configs-after-fuse-installation</id>
|
|
<phase>process-test-sources</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<echo message="Rename ./standalone-default to ./standalone" />
|
|
<move file="${app.server.jboss.home}/standalone-default"
|
|
tofile="${app.server.jboss.home}/standalone" />
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|