166 lines
4.8 KiB
XML
166 lines
4.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-kubernetes</artifactId>
|
|
<version>2.0.1-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>spring-cloud-kubernetes-integration-tests</artifactId>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>Spring Cloud Kubernetes :: Integration Tests</name>
|
|
<description>Integration tests where SCK applications are run inside a Kubernetes
|
|
cluster
|
|
</description>
|
|
|
|
<properties>
|
|
<java.version>1.8</java.version>
|
|
<fmp.version>3.5.42</fmp.version>
|
|
<arquillian-cube.version>1.18.2</arquillian-cube.version>
|
|
<arquillian.version>1.4.0.Final</arquillian.version>
|
|
<rest-assured.version>3.2.0</rest-assured.version>
|
|
<okhttptests.version>3.12.12</okhttptests.version>
|
|
<docker-java.version>3.2.2</docker-java.version>
|
|
|
|
<!--
|
|
The port on localhost where the application will listen to from outside the cluster
|
|
Will be used to construct a NodePort
|
|
-->
|
|
<nodeport.value>32222</nodeport.value>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>${maven-deploy-plugin.version}</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>fmp</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>fabric8-maven-plugin</artifactId>
|
|
<version>${fmp.version}</version>
|
|
<configuration>
|
|
<!--
|
|
FMP can work with Openshift as well, so here we explicitly force it
|
|
to work with vanilla Kubernetes and Docker builds
|
|
-->
|
|
<buildStrategy>docker</buildStrategy>
|
|
<mode>kubernetes</mode>
|
|
<pushRegistry>${image.registry}</pushRegistry>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>fabric8</id>
|
|
<goals>
|
|
<goal>resource</goal>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>it</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<service.host>localhost</service.host>
|
|
<service.port>${nodeport.value}</service.port>
|
|
<service.secure>false</service.secure>
|
|
</systemPropertyVariables>
|
|
<classesDirectory>${project.build.outputDirectory}
|
|
</classesDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian</groupId>
|
|
<artifactId>arquillian-bom</artifactId>
|
|
<version>${arquillian.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.rest-assured</groupId>
|
|
<artifactId>rest-assured</artifactId>
|
|
<version>${rest-assured.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>okhttp</artifactId>
|
|
<version>${okhttptests.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>logging-interceptor</artifactId>
|
|
<version>${okhttptests.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.docker-java</groupId>
|
|
<artifactId>docker-java-core</artifactId>
|
|
<version>${docker-java.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.docker-java</groupId>
|
|
<artifactId>docker-java-transport-httpclient5</artifactId>
|
|
<version>${docker-java.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
|
|
|
<modules>
|
|
<module>simple-core</module>
|
|
<module>simple-configmap</module>
|
|
<!-- <module>istio</module>-->
|
|
<module>discovery</module>
|
|
<module>load-balancer</module>
|
|
<!-- Add this module back once we convert everything over to kind -->
|
|
<!-- <module>spring-cloud-kubernetes-configuration-watcher-it</module>-->
|
|
</modules>
|
|
</project>
|