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>
|
2017-12-21 12:57:06 +00:00
|
|
|
<version>4.0.0.CR1-SNAPSHOT</version>
|
2017-07-20 08:23:10 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>integration-arquillian-tests-springboot</artifactId>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<exclude.springboot>**/springboot/**/*Test.java</exclude.springboot>
|
|
|
|
|
|
|
|
<adapter.container>tomcat</adapter.container>
|
2017-11-27 00:01:34 +00:00
|
|
|
|
|
|
|
<repo.argument />
|
2017-11-28 13:44:08 +00:00
|
|
|
<maven.settings.file />
|
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>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>${exclude.springboot}</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>test-springboot</id>
|
|
|
|
<properties>
|
|
|
|
<exclude.springboot>-</exclude.springboot>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.bazaarvoice.maven.plugins</groupId>
|
|
|
|
<artifactId>process-exec-maven-plugin</artifactId>
|
|
|
|
<version>0.7</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>spring-boot-application-process</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<name>springboot</name>
|
|
|
|
<workingDir>../../../../test-apps/spring-boot-adapter</workingDir>
|
2017-11-28 13:44:08 +00:00
|
|
|
<healthcheckUrl>http://localhost:8280/index.html</healthcheckUrl>
|
|
|
|
<waitAfterLaunch>360</waitAfterLaunch>
|
2017-07-20 08:23:10 +00:00
|
|
|
<arguments>
|
|
|
|
<argument>mvn</argument>
|
|
|
|
<argument>spring-boot:run</argument>
|
2017-11-28 13:44:08 +00:00
|
|
|
<argument>-B</argument>
|
2017-07-20 08:23:10 +00:00
|
|
|
<argument>-Dkeycloak.version=${project.version}</argument>
|
|
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
2017-11-27 00:01:34 +00:00
|
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
|
|
|
|
<argument>${repo.argument}</argument>
|
2017-07-20 08:23:10 +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
|
|
|
|
2017-11-28 13:44:08 +00:00
|
|
|
<profile>
|
|
|
|
<id>test-springboot-prod</id>
|
|
|
|
<properties>
|
|
|
|
<exclude.springboot>-</exclude.springboot>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.bazaarvoice.maven.plugins</groupId>
|
|
|
|
<artifactId>process-exec-maven-plugin</artifactId>
|
|
|
|
<version>0.7</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>spring-boot-application-process</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<name>springboot</name>
|
|
|
|
<workingDir>../../../../test-apps/spring-boot-adapter</workingDir>
|
|
|
|
<healthcheckUrl>http://localhost:8280/index.html</healthcheckUrl>
|
|
|
|
<waitAfterLaunch>360</waitAfterLaunch>
|
|
|
|
<arguments>
|
|
|
|
<argument>mvn</argument>
|
|
|
|
<argument>spring-boot:run</argument>
|
|
|
|
<argument>-B</argument>
|
|
|
|
<argument>-s</argument>
|
|
|
|
<argument>${maven.settings.file}</argument>
|
|
|
|
<argument>-Dkeycloak.version=${project.version}</argument>
|
|
|
|
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
|
|
|
|
<argument>-Dmaven.repo.local=${settings.localRepository}</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>
|
|
|
|
|
2017-11-27 00:01:34 +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>
|