2017-07-20 08:23:10 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<parent>
|
|
|
|
<artifactId>integration-arquillian-tests-other</artifactId>
|
|
|
|
<groupId>org.keycloak.testsuite</groupId>
|
2021-07-30 12:55:12 +00:00
|
|
|
<version>16.0.0-SNAPSHOT</version>
|
2017-07-20 08:23:10 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>integration-arquillian-tests-springboot</artifactId>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<adapter.container>tomcat</adapter.container>
|
2017-11-27 00:01:34 +00:00
|
|
|
|
2019-04-16 13:58:10 +00:00
|
|
|
<maven.settings.file/>
|
2019-10-24 08:27:28 +00:00
|
|
|
<springboot.version.option>1.5</springboot.version.option>
|
2018-01-09 12:14:04 +00:00
|
|
|
|
2019-04-16 13:58:10 +00:00
|
|
|
<app.server.debug.port>5006</app.server.debug.port>
|
|
|
|
<app.server.debug.suspend>n</app.server.debug.suspend>
|
|
|
|
<maven.binary.path>mvn</maven.binary.path>
|
2019-04-25 08:51:10 +00:00
|
|
|
|
|
|
|
<!-- For now springboot doesn't work with auth server ssl enabled -->
|
|
|
|
<auth.server.ssl.required>false</auth.server.ssl.required>
|
2017-07-20 08:23:10 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-test-helper</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2020-02-26 09:25:59 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2017-07-20 08:23:10 +00:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>test-springboot</id>
|
2019-04-25 08:51:10 +00:00
|
|
|
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>!settings.path</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
2017-07-20 08:23:10 +00:00
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.bazaarvoice.maven.plugins</groupId>
|
|
|
|
<artifactId>process-exec-maven-plugin</artifactId>
|
|
|
|
<version>0.7</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2019-04-16 13:58:10 +00:00
|
|
|
<!-- This step is necessary to correctly initialize spring-boot-app for current scenario -->
|
|
|
|
<id>spring-boot-clean-install</id>
|
2017-07-20 08:23:10 +00:00
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2019-04-16 13:58:10 +00:00
|
|
|
<name>springboot-initialize</name>
|
|
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
|
|
|
<waitAfterLaunch>0</waitAfterLaunch>
|
2017-07-20 08:23:10 +00:00
|
|
|
<arguments>
|
2019-04-16 13:58:10 +00:00
|
|
|
<argument>${maven.binary.path}</argument>
|
|
|
|
<argument>clean</argument>
|
|
|
|
<argument>install</argument>
|
2017-11-28 13:44:08 +00:00
|
|
|
<argument>-B</argument>
|
2017-07-20 08:23:10 +00:00
|
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
2017-11-27 00:01:34 +00:00
|
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
2019-10-24 08:27:28 +00:00
|
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
2020-03-24 22:10:34 +00:00
|
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
2017-07-20 08:23:10 +00:00
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-11-28 13:44:08 +00:00
|
|
|
<execution>
|
|
|
|
<id>spring-boot-application-process</id>
|
2019-04-16 13:58:10 +00:00
|
|
|
<phase>process-test-resources</phase>
|
2017-11-28 13:44:08 +00:00
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<name>springboot</name>
|
2019-04-16 13:58:10 +00:00
|
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
2017-11-28 13:44:08 +00:00
|
|
|
<healthcheckUrl>http://localhost:8280/index.html</healthcheckUrl>
|
2018-12-04 12:50:56 +00:00
|
|
|
<waitAfterLaunch>900</waitAfterLaunch>
|
|
|
|
<arguments>
|
2019-04-16 13:58:10 +00:00
|
|
|
<argument>${maven.binary.path}</argument>
|
2018-12-04 12:50:56 +00:00
|
|
|
<argument>spring-boot:run</argument>
|
|
|
|
<argument>-B</argument>
|
|
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
2019-10-24 08:27:28 +00:00
|
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
2019-04-16 13:58:10 +00:00
|
|
|
<argument>-Dapp.server.debug.port=${app.server.debug.port}</argument>
|
|
|
|
<argument>-Dapp.server.debug.suspend=${app.server.debug.suspend}</argument>
|
2020-03-24 22:10:34 +00:00
|
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
2018-12-04 12:50:56 +00:00
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>kill-processes</id>
|
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>stop-all</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
2019-04-25 08:51:10 +00:00
|
|
|
<id>test-springboot-with-settings</id>
|
|
|
|
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>settings.path</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
|
2018-12-04 12:50:56 +00:00
|
|
|
<properties>
|
2019-04-25 08:51:10 +00:00
|
|
|
<repo.argument>-Dno-repo</repo.argument>
|
2018-12-04 12:50:56 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.bazaarvoice.maven.plugins</groupId>
|
|
|
|
<artifactId>process-exec-maven-plugin</artifactId>
|
|
|
|
<version>0.7</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2019-04-16 13:58:10 +00:00
|
|
|
<!-- This step is necessary to correctly initialize spring-boot-app for current scenario -->
|
|
|
|
<id>spring-boot-clean-install</id>
|
2018-12-04 12:50:56 +00:00
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2019-04-16 13:58:10 +00:00
|
|
|
<name>springboot-initialize</name>
|
|
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
|
|
|
<waitAfterLaunch>0</waitAfterLaunch>
|
2018-12-04 12:50:56 +00:00
|
|
|
<arguments>
|
2019-04-16 13:58:10 +00:00
|
|
|
<argument>${maven.binary.path}</argument>
|
|
|
|
<argument>clean</argument>
|
|
|
|
<argument>install</argument>
|
2018-12-04 12:50:56 +00:00
|
|
|
<argument>-s</argument>
|
2019-04-25 08:51:10 +00:00
|
|
|
<argument>${settings.path}</argument>
|
2019-04-16 13:58:10 +00:00
|
|
|
<argument>-B</argument>
|
2018-12-04 12:50:56 +00:00
|
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
2019-10-24 08:27:28 +00:00
|
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
2020-03-24 22:10:34 +00:00
|
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
2019-04-25 08:51:10 +00:00
|
|
|
<argument>${repo.argument}</argument>
|
2018-12-04 12:50:56 +00:00
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>spring-boot-application-process</id>
|
2019-04-16 13:58:10 +00:00
|
|
|
<phase>process-test-resources</phase>
|
2018-12-04 12:50:56 +00:00
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<name>springboot</name>
|
2019-04-16 13:58:10 +00:00
|
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
2018-12-04 12:50:56 +00:00
|
|
|
<healthcheckUrl>http://localhost:8280/index.html</healthcheckUrl>
|
|
|
|
<waitAfterLaunch>900</waitAfterLaunch>
|
2017-11-28 13:44:08 +00:00
|
|
|
<arguments>
|
2019-04-16 13:58:10 +00:00
|
|
|
<argument>${maven.binary.path}</argument>
|
2017-11-28 13:44:08 +00:00
|
|
|
<argument>spring-boot:run</argument>
|
|
|
|
<argument>-B</argument>
|
|
|
|
<argument>-s</argument>
|
2019-04-25 08:51:10 +00:00
|
|
|
<argument>${settings.path}</argument>
|
2017-06-30 13:31:30 +00:00
|
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
2019-10-24 08:27:28 +00:00
|
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
2019-04-16 13:58:10 +00:00
|
|
|
<argument>-Dapp.server.debug.port=${app.server.debug.port}</argument>
|
|
|
|
<argument>-Dapp.server.debug.suspend=${app.server.debug.suspend}</argument>
|
2020-03-24 22:10:34 +00:00
|
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
2019-04-25 08:51:10 +00:00
|
|
|
<argument>${repo.argument}</argument>
|
2017-06-30 13:31:30 +00:00
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
<execution>
|
|
|
|
<id>kill-processes</id>
|
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>stop-all</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2017-11-27 00:01:34 +00:00
|
|
|
<profile>
|
2019-04-16 13:58:10 +00:00
|
|
|
<id>springboot21</id>
|
2017-11-27 00:01:34 +00:00
|
|
|
<properties>
|
2019-10-24 08:27:28 +00:00
|
|
|
<springboot.version.option>2.1</springboot.version.option>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>springboot22</id>
|
|
|
|
<properties>
|
|
|
|
<springboot.version.option>2.2</springboot.version.option>
|
2017-11-27 00:01:34 +00:00
|
|
|
</properties>
|
|
|
|
</profile>
|
2019-04-25 08:51:10 +00:00
|
|
|
|
2020-06-08 07:12:45 +00:00
|
|
|
<profile>
|
|
|
|
<id>springboot23</id>
|
|
|
|
<properties>
|
|
|
|
<springboot.version.option>2.3</springboot.version.option>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2019-04-25 08:51:10 +00:00
|
|
|
<profile>
|
|
|
|
<id>turn-on-repo-url</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>repo.url</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<repo.argument>-Drepo.url=${repo.url}</repo.argument>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2017-07-20 08:23:10 +00:00
|
|
|
</profiles>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|