232 lines
No EOL
11 KiB
XML
232 lines
No EOL
11 KiB
XML
<?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>
|
|
<version>11.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>integration-arquillian-tests-springboot</artifactId>
|
|
|
|
<properties>
|
|
<adapter.container>tomcat</adapter.container>
|
|
|
|
<maven.settings.file/>
|
|
<springboot.version.option>1.5</springboot.version.option>
|
|
|
|
<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>
|
|
|
|
<!-- For now springboot doesn't work with auth server ssl enabled -->
|
|
<auth.server.ssl.required>false</auth.server.ssl.required>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-test-helper</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest-all</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>test-springboot</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>!settings.path</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.bazaarvoice.maven.plugins</groupId>
|
|
<artifactId>process-exec-maven-plugin</artifactId>
|
|
<version>0.7</version>
|
|
<executions>
|
|
<execution>
|
|
<!-- This step is necessary to correctly initialize spring-boot-app for current scenario -->
|
|
<id>spring-boot-clean-install</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>start</goal>
|
|
</goals>
|
|
<configuration>
|
|
<name>springboot-initialize</name>
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
|
<waitAfterLaunch>0</waitAfterLaunch>
|
|
<arguments>
|
|
<argument>${maven.binary.path}</argument>
|
|
<argument>clean</argument>
|
|
<argument>install</argument>
|
|
<argument>-B</argument>
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>spring-boot-application-process</id>
|
|
<phase>process-test-resources</phase>
|
|
<goals>
|
|
<goal>start</goal>
|
|
</goals>
|
|
<configuration>
|
|
<name>springboot</name>
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
|
<healthcheckUrl>http://localhost:8280/index.html</healthcheckUrl>
|
|
<waitAfterLaunch>900</waitAfterLaunch>
|
|
<arguments>
|
|
<argument>${maven.binary.path}</argument>
|
|
<argument>spring-boot:run</argument>
|
|
<argument>-B</argument>
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
|
<argument>-Dapp.server.debug.port=${app.server.debug.port}</argument>
|
|
<argument>-Dapp.server.debug.suspend=${app.server.debug.suspend}</argument>
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
|
</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>
|
|
<id>test-springboot-with-settings</id>
|
|
|
|
<activation>
|
|
<property>
|
|
<name>settings.path</name>
|
|
</property>
|
|
</activation>
|
|
|
|
<properties>
|
|
<repo.argument>-Dno-repo</repo.argument>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.bazaarvoice.maven.plugins</groupId>
|
|
<artifactId>process-exec-maven-plugin</artifactId>
|
|
<version>0.7</version>
|
|
<executions>
|
|
<execution>
|
|
<!-- This step is necessary to correctly initialize spring-boot-app for current scenario -->
|
|
<id>spring-boot-clean-install</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>start</goal>
|
|
</goals>
|
|
<configuration>
|
|
<name>springboot-initialize</name>
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
|
<waitAfterLaunch>0</waitAfterLaunch>
|
|
<arguments>
|
|
<argument>${maven.binary.path}</argument>
|
|
<argument>clean</argument>
|
|
<argument>install</argument>
|
|
<argument>-s</argument>
|
|
<argument>${settings.path}</argument>
|
|
<argument>-B</argument>
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
|
<argument>${repo.argument}</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>spring-boot-application-process</id>
|
|
<phase>process-test-resources</phase>
|
|
<goals>
|
|
<goal>start</goal>
|
|
</goals>
|
|
<configuration>
|
|
<name>springboot</name>
|
|
<workingDir>../../../../test-apps/spring-boot-adapter-app</workingDir>
|
|
<healthcheckUrl>http://localhost:8280/index.html</healthcheckUrl>
|
|
<waitAfterLaunch>900</waitAfterLaunch>
|
|
<arguments>
|
|
<argument>${maven.binary.path}</argument>
|
|
<argument>spring-boot:run</argument>
|
|
<argument>-B</argument>
|
|
<argument>-s</argument>
|
|
<argument>${settings.path}</argument>
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
|
<argument>-Dspringboot-version=${springboot.version.option}</argument>
|
|
<argument>-Dapp.server.debug.port=${app.server.debug.port}</argument>
|
|
<argument>-Dapp.server.debug.suspend=${app.server.debug.suspend}</argument>
|
|
<argument>-Dinsecure.repositories=WARN</argument>
|
|
<argument>${repo.argument}</argument>
|
|
</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>
|
|
<id>springboot21</id>
|
|
<properties>
|
|
<springboot.version.option>2.1</springboot.version.option>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>springboot22</id>
|
|
<properties>
|
|
<springboot.version.option>2.2</springboot.version.option>
|
|
</properties>
|
|
</profile>
|
|
|
|
<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>
|
|
</profiles>
|
|
|
|
|
|
</project> |