2016-12-22 21:18:24 +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">
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
2017-01-10 12:30:58 +00:00
|
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
|
|
<artifactId>integration-arquillian-tests-other</artifactId>
|
2021-05-06 12:39:32 +00:00
|
|
|
<version>14.0.0-SNAPSHOT</version>
|
2016-12-22 21:18:24 +00:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
2020-12-30 14:50:34 +00:00
|
|
|
|
2016-12-22 21:18:24 +00:00
|
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
|
|
<artifactId>server-config-migration</artifactId>
|
|
|
|
|
|
|
|
<name>Keycloak Migration TestSuite For Server Config</name>
|
|
|
|
|
|
|
|
<properties>
|
2017-10-11 10:20:06 +00:00
|
|
|
<skip.add.user.json>true</skip.add.user.json>
|
2019-02-15 20:00:46 +00:00
|
|
|
<skip.copy.example.wars>true</skip.copy.example.wars>
|
2017-10-11 10:20:06 +00:00
|
|
|
<skip.rename.configs>false</skip.rename.configs>
|
2020-12-30 14:50:34 +00:00
|
|
|
<skip.remove.warnings>false</skip.remove.warnings>
|
|
|
|
|
2016-12-22 21:18:24 +00:00
|
|
|
<jbossHome>${project.build.directory}/keycloak-${project.version}</jbossHome>
|
2017-03-16 09:49:42 +00:00
|
|
|
<migrated.version>1.8.1</migrated.version>
|
2017-10-11 10:20:06 +00:00
|
|
|
<master.version>${project.version}</master.version>
|
2020-12-30 14:50:34 +00:00
|
|
|
|
2017-10-11 10:20:06 +00:00
|
|
|
<!-- example how to test 'product' config migration
|
|
|
|
<jbossHome>${project.build.directory}/rh-sso-7.1</jbossHome>
|
|
|
|
<migrated.version>1.9.8.Final-redhat-1</migrated.version>
|
|
|
|
<master.version>3.3.0.CR2-redhat-1</master.version>
|
|
|
|
-->
|
2016-12-22 21:18:24 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss</groupId>
|
|
|
|
<artifactId>jboss-dmr</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-02-14 14:15:53 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-dist</artifactId>
|
|
|
|
<type>zip</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-12-22 21:18:24 +00:00
|
|
|
</dependencies>
|
2017-10-11 10:20:06 +00:00
|
|
|
|
2016-12-22 21:18:24 +00:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>unpack-keycloak-server-dist</id>
|
2017-03-16 09:49:42 +00:00
|
|
|
<phase>process-resources</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-server-dist</artifactId>
|
2017-10-11 10:20:06 +00:00
|
|
|
<version>${master.version}</version>
|
2016-12-22 21:18:24 +00:00
|
|
|
<type>zip</type>
|
|
|
|
<overWrite>true</overWrite>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-10-11 10:20:06 +00:00
|
|
|
|
2016-12-22 21:18:24 +00:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>copy-standalone-resources</id>
|
2017-03-16 09:49:42 +00:00
|
|
|
<phase>compile</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
<outputDirectory>${jbossHome}/standalone/configuration</outputDirectory>
|
2020-12-30 14:50:34 +00:00
|
|
|
<resources>
|
2016-12-22 21:18:24 +00:00
|
|
|
<resource>
|
|
|
|
<directory>src/test/resources/standalone</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
</resource>
|
2020-12-30 14:50:34 +00:00
|
|
|
</resources>
|
|
|
|
</configuration>
|
2016-12-22 21:18:24 +00:00
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>copy-domain-resources</id>
|
2017-03-16 09:49:42 +00:00
|
|
|
<phase>compile</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
<outputDirectory>${jbossHome}/domain/configuration</outputDirectory>
|
2020-12-30 14:50:34 +00:00
|
|
|
<resources>
|
2016-12-22 21:18:24 +00:00
|
|
|
<resource>
|
|
|
|
<directory>src/test/resources/domain</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
</resource>
|
2020-12-30 14:50:34 +00:00
|
|
|
</resources>
|
|
|
|
</configuration>
|
2016-12-22 21:18:24 +00:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-10-11 10:20:06 +00:00
|
|
|
|
2017-03-16 09:49:42 +00:00
|
|
|
<plugin>
|
2017-10-11 10:20:06 +00:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2017-03-16 09:49:42 +00:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>rename-migrated-resources</id>
|
2017-03-16 09:49:42 +00:00
|
|
|
<phase>generate-test-sources</phase>
|
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>run</goal>
|
2017-03-16 09:49:42 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<skip>${skip.rename.configs}</skip>
|
|
|
|
<target>
|
|
|
|
<echo>For migration from versions above 2.1.0 there is no keycloak-server.json supported.</echo>
|
|
|
|
<move file="${jbossHome}/standalone/configuration/keycloak-server-${migrated.version}.json"
|
|
|
|
tofile="${jbossHome}/standalone/configuration/keycloak-server.json"
|
|
|
|
verbose="true"
|
|
|
|
failonerror="false"/>
|
|
|
|
<move file="${jbossHome}/domain/configuration/keycloak-server-${migrated.version}.json"
|
|
|
|
tofile="${jbossHome}/domain/configuration/keycloak-server.json"
|
|
|
|
verbose="true"
|
|
|
|
failonerror="false"/>
|
|
|
|
<move file="${jbossHome}/standalone/configuration/standalone-${migrated.version}.xml"
|
|
|
|
tofile="${jbossHome}/standalone/configuration/standalone.xml"
|
|
|
|
verbose="true"/>
|
|
|
|
<move file="${jbossHome}/standalone/configuration/standalone-ha-${migrated.version}.xml"
|
|
|
|
tofile="${jbossHome}/standalone/configuration/standalone-ha.xml"
|
|
|
|
verbose="true"/>
|
|
|
|
<move file="${jbossHome}/domain/configuration/domain-${migrated.version}.xml"
|
|
|
|
tofile="${jbossHome}/domain/configuration/domain.xml"
|
|
|
|
verbose="true"/>
|
|
|
|
<move file="${jbossHome}/domain/configuration/host-master-${migrated.version}.xml"
|
|
|
|
tofile="${jbossHome}/domain/configuration/host-master.xml"
|
|
|
|
verbose="true"/>
|
|
|
|
</target>
|
2017-03-16 09:49:42 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2020-12-30 14:50:34 +00:00
|
|
|
<execution>
|
|
|
|
<!-- KEYCLOAK-17156: Remove com.sun.net.ssl.internal.ssl.Provider.isFIPS() illegal reflective access warnings
|
|
|
|
possibly present in "master-standalone*.txt" and "migrated-standalone*.txt" files -->
|
|
|
|
<id>remove-illegal-reflective-access-warnings-from-txt-files</id>
|
|
|
|
<!-- Needs to be called after 'process-test-resources' phase, but before the 'test' phase itself! -->
|
|
|
|
<phase>process-test-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<skip>${skip.remove.warnings}</skip>
|
|
|
|
<target>
|
|
|
|
<copy todir="${project.build.directory}">
|
|
|
|
<fileset dir="${project.build.directory}">
|
|
|
|
<include name="**/master-standalone*.txt"/>
|
|
|
|
<include name="**/migrated-standalone*.txt"/>
|
|
|
|
</fileset>
|
|
|
|
<mapper type="glob" from="*" to="*.unfiltered"/>
|
|
|
|
</copy>
|
|
|
|
<move todir="${project.build.directory}" overwrite="true">
|
|
|
|
<fileset dir="${project.build.directory}">
|
|
|
|
<include name="**/*.unfiltered"/>
|
|
|
|
</fileset>
|
|
|
|
<filterchain>
|
|
|
|
<linecontains negate="true">
|
|
|
|
<contains value="WARNING:"/>
|
|
|
|
</linecontains>
|
|
|
|
</filterchain>
|
|
|
|
<mapper type="regexp" from="^(.*)\.unfiltered$" to="\1"/>
|
|
|
|
</move>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<executions>
|
2017-03-16 09:49:42 +00:00
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>read-master-standalone</id>
|
|
|
|
<phase>process-classes</phase>
|
2017-03-16 09:49:42 +00:00
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2017-03-16 09:49:42 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-standalone.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/master-standalone.txt</outputFile>
|
2017-03-16 09:49:42 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-12-22 21:18:24 +00:00
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>read-master-standalone-ha</id>
|
|
|
|
<phase>process-classes</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2016-12-22 21:18:24 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-standalone-ha.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/master-standalone-ha.txt</outputFile>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-11-07 11:46:13 +00:00
|
|
|
<execution>
|
|
|
|
<id>read-master-domain-core-service</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-core-service.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/master-domain-core-service.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>read-master-domain-extension</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-extension.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/master-domain-extension.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>read-master-domain-interface</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-interface.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/master-domain-interface.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<execution>
|
|
|
|
<id>read-master-domain-standalone</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-standalone.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/master-domain-standalone.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>read-master-domain-clustered</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-clustered.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/master-domain-clustered.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
2016-12-22 21:18:24 +00:00
|
|
|
<execution>
|
|
|
|
<id>migrate-standalone</id>
|
2017-10-11 10:20:06 +00:00
|
|
|
<phase>process-test-sources</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2016-12-22 21:18:24 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=migrate-standalone.cli</argument>
|
|
|
|
</arguments>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>migrate-standalone-ha</id>
|
|
|
|
<phase>process-test-sources</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2016-12-22 21:18:24 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=migrate-standalone-ha.cli</argument>
|
|
|
|
</arguments>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>migrate-domain-standalone</id>
|
|
|
|
<phase>process-test-sources</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2016-12-22 21:18:24 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=migrate-domain-standalone.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>migrate-domain-clustered</id>
|
|
|
|
<phase>process-test-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=migrate-domain-clustered.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>remove-temp-data-standalone</id>
|
|
|
|
<phase>process-test-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>rm</executable>
|
|
|
|
<workingDirectory>${jbossHome}/standalone</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>-rf</argument>
|
|
|
|
<argument>data</argument>
|
|
|
|
<argument>log</argument>
|
|
|
|
<argument>tmp</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>remove-temp-data-domain</id>
|
|
|
|
<phase>process-test-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>rm</executable>
|
|
|
|
<workingDirectory>${jbossHome}/domain</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>-rf</argument>
|
|
|
|
<argument>data/auto-start</argument>
|
|
|
|
<argument>data/kernel</argument>
|
|
|
|
<argument>log</argument>
|
|
|
|
<argument>servers</argument>
|
|
|
|
</arguments>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2020-12-30 14:50:34 +00:00
|
|
|
|
2016-12-22 21:18:24 +00:00
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>read-migrated-standalone</id>
|
|
|
|
<phase>process-test-resources</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2016-12-22 21:18:24 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-standalone.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/migrated-standalone.txt</outputFile>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>read-migrated-standalone-ha</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2016-12-22 21:18:24 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-standalone-ha.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/migrated-standalone-ha.txt</outputFile>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-11-07 11:46:13 +00:00
|
|
|
<execution>
|
|
|
|
<id>read-migrated-domain-core-service</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-core-service.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/migrated-domain-core-service.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>read-migrated-domain-extension</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-extension.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/migrated-domain-extension.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>read-migrated-domain-interface</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-interface.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/migrated-domain-interface.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2016-12-22 21:18:24 +00:00
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>read-migrated-domain-standalone</id>
|
2016-12-22 21:18:24 +00:00
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
2017-10-11 10:20:06 +00:00
|
|
|
<goal>exec</goal>
|
2016-12-22 21:18:24 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-standalone.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/migrated-domain-standalone.txt</outputFile>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>read-migrated-domain-clustered</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>./jboss-cli.sh</executable>
|
|
|
|
<workingDirectory>${jbossHome}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>--file=${project.build.directory}/classes/cli/read-domain-clustered.cli</argument>
|
|
|
|
</arguments>
|
|
|
|
<outputFile>${project.build.directory}/migrated-domain-clustered.txt</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.wildfly.plugins</groupId>
|
|
|
|
<artifactId>wildfly-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<jbossHome>${jbossHome}</jbossHome>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>start-stop-standalone</id>
|
2016-12-22 21:18:24 +00:00
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
<goal>shutdown</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<serverConfig>standalone.xml</serverConfig>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>start-stop-standalone-ha</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
<goal>shutdown</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2017-10-11 10:20:06 +00:00
|
|
|
<serverConfig>standalone-ha.xml</serverConfig>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
2017-10-11 10:20:06 +00:00
|
|
|
<id>start-stop-domain</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
2016-12-22 21:18:24 +00:00
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
<goal>shutdown</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<serverType>DOMAIN</serverType>
|
|
|
|
<domainConfig>domain.xml</domainConfig>
|
2017-01-03 17:39:06 +00:00
|
|
|
<server-args>
|
|
|
|
<server-arg>--host-config=host-master.xml</server-arg>
|
|
|
|
</server-args>
|
2016-12-22 21:18:24 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2017-10-11 10:20:06 +00:00
|
|
|
|
2019-04-25 15:54:29 +00:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>product</id>
|
|
|
|
<properties>
|
|
|
|
<jbossHome>${project.build.directory}/${product.name}-${product.filename.version}</jbossHome>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
2016-12-22 21:18:24 +00:00
|
|
|
</project>
|