cartographer-rest-ftests
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.commonjava.cartographer</groupId>
<artifactId>cartographer-rest-ftests</artifactId>
<version>0.12.2</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013 Red Hat, Inc. (jdcasey@commonjava.org)
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 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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.commonjava.cartographer</groupId>
<artifactId>cartographer-parent</artifactId>
<version>0.12.2</version>
</parent>
<artifactId>cartographer-rest-ftests</artifactId>
<dependencies>
<dependency>
<groupId>org.commonjava.cartographer.deploy</groupId>
<artifactId>cartographer-standalone-rest</artifactId>
</dependency>
<dependency>
<groupId>org.commonjava.cartographer</groupId>
<artifactId>cartographer-tck</artifactId>
</dependency>
<dependency>
<groupId>org.commonjava.cartographer</groupId>
<artifactId>cartographer-rest-client-java</artifactId>
</dependency>
<dependency>
<groupId>org.commonjava.indy</groupId>
<artifactId>indy-client-core-java</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>org.commonjava.cartographer</groupId>
<artifactId>cartographer</artifactId>
</dependency>
<dependency>
<groupId>org.commonjava.cartographer</groupId>
<artifactId>cartographer-api</artifactId>
</dependency>
<dependency>
<groupId>org.commonjava.propulsor</groupId>
<artifactId>propulsor-core</artifactId>
</dependency>
<dependency>
<groupId>org.commonjava.util</groupId>
<artifactId>jhttpc</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
<properties>
<it-docker-skip>true</it-docker-skip>
<dockerUser>commonjava</dockerUser>
<!-- <indyImage>docker.io/${dockerUser}/indy-min:latest</indyImage> -->
<indyImage>docker.io/${dockerUser}/indy-savant:latest</indyImage>
<indyWaitFor>Indy listening on 0.0.0.0:8080</indyWaitFor>
<dockerNetwork>default</dockerNetwork>
<dockerNetworkMode>bridge</dockerNetworkMode>
<dockerStartTimeout>180000</dockerStartTimeout>
<indy-port>8080</indy-port>
<indy-host>${docker.container.indy.ip}</indy-host>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.15.16</version>
<configuration>
<images>
<image>
<alias>indy</alias>
<name>${indyImage}</name>
<run>
<wait>
<log>${indyWaitFor}</log>
<time>${dockerStartTimeout}</time>
</wait>
<ports>
<port>indy-http:80</port>
</ports>
<log>
<file>${project.build.directory}/indy.log</file>
</log>
<network>
<mode>${dockerNetworkMode}</mode>
<name>${dockerNetwork}</name>
<alias>indy</alias>
</network>
</run>
</image>
</images>
</configuration>
<executions>
<execution>
<id>docker-maint</id>
<goals>
<goal>start</goal>
<goal>stop</goal>
<goal>remove</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>record-docker-properties</id>
<goals>
<goal>run</goal>
</goals>
<phase>pre-integration-test</phase>
<configuration>
<target>
<!--suppress MavenModelInspection -->
<echo file="${project.build.directory}/docker.properties">
<![CDATA[
indy.host=${indy-host}
indy.port=${indy-port}
]]>
</echo>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>functional-tests</id>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<excludedGroups>org.commonjava.maven.cartographer.ftest.testutil.DockerDriven</excludedGroups>
<dependenciesToScan>
<dependency>org.commonjava.cartographer:cartographer-tck</dependency>
</dependenciesToScan>
</configuration>
</execution>
<execution>
<id>integration-tests</id>
<configuration>
<skip>${it-docker-skip}</skip>
<systemPropertiesFile>${project.build.directory}/docker.properties</systemPropertiesFile>
<groups>org.commonjava.maven.cartographer.ftest.testutil.DockerDriven</groups>
<testSourceDirectory>src/main/java</testSourceDirectory>
<testClassesDirectory>${project.build.outputDirectory}</testClassesDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>docker</id>
<properties>
<it-docker-skip>false</it-docker-skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>ci</id>
<properties>
<dockerNetworkMode>custom</dockerNetworkMode>
<dockerNetwork>ci-network</dockerNetwork>
<indy-port>8080</indy-port>
<indy-host>${docker.container.indy.net.ci-network.ip}</indy-host>
</properties>
</profile>
<profile>
<id>run-its</id>
<build>
<plugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>