/
pom.xml
109 lines (98 loc) · 3.42 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?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">
<modelVersion>4.0.0</modelVersion>
<!--
Integration test demo which makes some small tests for Jolokia
Call it with: 'mvn verify'
The test does the following:
* Creates a Docker data container with 'jolokia.war' and 'jolokia-it.war' as described in
assembly descriptor src/main/docker-assembly.xml
* Starts (and optionally pull) the jolokia/tomcat-7.0 container with the data container linked to it
* Waits until Tomcat is up (i.e. until it is reachable via an HTTP request)
* Runs an integration test via maven-failsafe-plugin, using rest-assured for accessing the deployed app.
* Prints out some version information about the contaner running (in order prove that's not a fake ;-)
* Stops and removes the containers.
-->
<parent>
<groupId>io.fabric8.dmp.itests</groupId>
<artifactId>dmp-it-parent</artifactId>
<version>0.43.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>dmp-it-docker-compose</artifactId>
<version>0.43.0</version>
<url>http://www.jolokia.org</url>
<properties>
<server.name>tomcat</server.name>
<server.version>7</server.version>
</properties>
<dependencies>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-war</artifactId>
<version>1.3.5</version>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<images>
<image>
<alias>jolokia-war</alias>
<!-- Data image containing jolokia.war -->
<name>${project.groupId}/${project.artifactId}:latest</name>
<!-- <build> the image-->
<build>
<assembly>
<inline>
<id>jolokia</id>
<dependencySets>
<dependencySet>
<includes>
<include>org.jolokia:jolokia-war</include>
</includes>
<outputDirectory>.</outputDirectory>
<outputFileNameMapping>jolokia.war</outputFileNameMapping>
</dependencySet>
</dependencySets>
</inline>
</assembly>
</build>
<!-- The <run> part is taken from compose -->
<external>
<type>compose</type>
</external>
</image>
</images>
</configuration>
<executions>
<execution>
<id>build</id>
<goals>
<goal>build</goal>
</goals>
<phase>install</phase>
</execution>
<execution>
<id>start</id>
<goals>
<goal>start</goal>
</goals>
<phase>install</phase>
</execution>
<execution>
<id>stop</id>
<goals>
<goal>stop</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>