161 lines
7.1 KiB
XML
161 lines
7.1 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</artifactId>
|
|
<version>3.4.2.Final-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>integration-arquillian-server-wildfly-balancer</artifactId>
|
|
<packaging>pom</packaging>
|
|
<name>Wildfly Load Balancer</name>
|
|
|
|
<properties>
|
|
<wildfly.balancer.home>${project.build.directory}/unpacked/wildfly-${wildfly.version}</wildfly.balancer.home>
|
|
<wildfly.balancer.worker.io-threads>${jboss.default.worker.io-threads}</wildfly.balancer.worker.io-threads>
|
|
<wildfly.balancer.worker.task-max-threads>${jboss.default.worker.task-max-threads}</wildfly.balancer.worker.task-max-threads>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-wildfly</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-dist</artifactId>
|
|
<version>${wildfly.version}</version>
|
|
<type>zip</type>
|
|
<outputDirectory>${project.build.directory}/unpacked</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>io-worker-threads</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>transform</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformationSets>
|
|
<transformationSet>
|
|
<dir>${wildfly.balancer.home}/standalone/configuration</dir>
|
|
<includes>
|
|
<include>standalone.xml</include>
|
|
</includes>
|
|
<stylesheet>src/main/xslt/io.xsl</stylesheet>
|
|
<outputDir>${wildfly.balancer.home}/standalone/configuration</outputDir>
|
|
<parameters>
|
|
<parameter>
|
|
<name>worker.io-threads</name>
|
|
<value>${wildfly.balancer.worker.io-threads}</value>
|
|
</parameter>
|
|
<parameter>
|
|
<name>worker.task-max-threads</name>
|
|
<value>${wildfly.balancer.worker.task-max-threads}</value>
|
|
</parameter>
|
|
</parameters>
|
|
</transformationSet>
|
|
</transformationSets>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>configure-mod-cluster</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>transform</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformationSets>
|
|
<transformationSet>
|
|
<dir>${wildfly.balancer.home}/standalone/configuration</dir>
|
|
<includes>
|
|
<include>standalone.xml</include>
|
|
</includes>
|
|
<stylesheet>src/main/xslt/mod_cluster.xsl</stylesheet>
|
|
<outputDir>${wildfly.balancer.home}/standalone/configuration</outputDir>
|
|
</transformationSet>
|
|
</transformationSets>
|
|
</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>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>community</id>
|
|
<activation>
|
|
<property>
|
|
<name>!product</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|