Merge "Replace json_templater usage"
[integration/csit.git] / plans / so / integration-etsi-testing / so-simulators / package / docker / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <parent>
4         <artifactId>package</artifactId>
5         <groupId>org.onap.so.simulators</groupId>
6         <version>1.0-SNAPSHOT</version>
7     </parent>
8     <modelVersion>4.0.0</modelVersion>
9     <artifactId>docker</artifactId>
10     <packaging>pom</packaging>
11     <name>${project.artifactId}</name>
12     <build>
13         <finalName>${project.artifactId}-${project.version}</finalName>
14         <plugins>
15             <plugin>
16                 <groupId>io.fabric8</groupId>
17                 <artifactId>docker-maven-plugin</artifactId>
18                 <version>0.28.0</version>
19                 <configuration>
20                     <verbose>true</verbose>
21                     <apiVersion>1.23</apiVersion>
22                     <pullRegistry>${docker.pull.registry}</pullRegistry>
23                     <pushRegistry>${docker.push.registry}</pushRegistry>
24                     <images>
25                         <image>
26                             <name>jobs/workaround-job-container</name>
27                             <build>
28                                 <cleanup>try</cleanup>
29                                 <dockerFileDir>docker-files</dockerFileDir>
30                                 <dockerFile>Dockerfile.workaround-job-container</dockerFile>
31                             </build>
32                         </image>
33                         <image>
34                             <name>simulators/sdc-simulator</name>
35                             <build>
36                                 <cleanup>try</cleanup>
37                                 <dockerFileDir>docker-files</dockerFileDir>
38                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
39                                 <tags>
40                                     <tag>${project.version}</tag>
41                                 </tags>
42                                 <assembly>
43                                     <inline>
44                                         <dependencySets>
45                                             <dependencySet>
46                                                 <includes>
47                                                     <include>org.onap.so.simulators:sdc-simulator</include>
48                                                 </includes>
49                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
50                                             </dependencySet>
51                                         </dependencySets>
52                                     </inline>
53                                 </assembly>
54                             </build>
55                         </image>
56                         <image>
57                             <name>simulators/aai-simulator</name>
58                             <build>
59                                 <cleanup>try</cleanup>
60                                 <dockerFileDir>docker-files</dockerFileDir>
61                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
62                                 <tags>
63                                     <tag>${project.version}</tag>
64                                 </tags>
65                                 <assembly>
66                                     <inline>
67                                         <dependencySets>
68                                             <dependencySet>
69                                                 <includes>
70                                                     <include>org.onap.so.simulators:aai-simulator</include>
71                                                 </includes>
72                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
73                                             </dependencySet>
74                                         </dependencySets>
75                                     </inline>
76                                 </assembly>
77                             </build>
78                         </image>
79                     </images>
80                 </configuration>
81                 <executions>
82                     <execution>
83                         <id>clean-images</id>
84                         <phase>pre-clean</phase>
85                         <goals>
86                             <goal>remove</goal>
87                         </goals>
88                         <configuration>
89                             <removeAll>true</removeAll>
90                         </configuration>
91                     </execution>
92                     <execution>
93                         <id>generate-images</id>
94                         <phase>generate-sources</phase>
95                         <goals>
96                             <goal>build</goal>
97                         </goals>
98                     </execution>
99                 </executions>
100             </plugin>
101             <plugin>
102                 <groupId>org.apache.maven.plugins</groupId>
103                 <artifactId>maven-deploy-plugin</artifactId>
104                 <version>2.8</version>
105                 <configuration>
106                     <skip>true</skip>
107                 </configuration>
108             </plugin>
109         </plugins>
110     </build>
111     <dependencies>
112         <dependency>
113             <groupId>org.onap.so.simulators</groupId>
114             <artifactId>sdc-simulator</artifactId>
115             <version>${project.version}</version>
116         </dependency>
117         <dependency>
118             <groupId>org.onap.so.simulators</groupId>
119             <artifactId>aai-simulator</artifactId>
120             <version>${project.version}</version>
121         </dependency>
122     </dependencies>
123 </project>