9334a095ce67ac12064970bb4f92ad25945fdb81
[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                         <image>
80                             <name>simulators/sdnc-simulator</name>
81                             <build>
82                                 <cleanup>try</cleanup>
83                                 <dockerFileDir>docker-files</dockerFileDir>
84                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
85                                 <tags>
86                                     <tag>${project.version}</tag>
87                                 </tags>
88                                 <assembly>
89                                     <inline>
90                                         <dependencySets>
91                                             <dependencySet>
92                                                 <includes>
93                                                     <include>org.onap.so.simulators:sdnc-simulator</include>
94                                                 </includes>
95                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
96                                             </dependencySet>
97                                         </dependencySets>
98                                     </inline>
99                                 </assembly>
100                             </build>
101                         </image>
102                         <image>
103                             <name>simulators/vnfm-simulator</name>
104                             <build>
105                                 <cleanup>try</cleanup>
106                                 <dockerFileDir>docker-files</dockerFileDir>
107                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
108                                 <tags>
109                                     <tag>${project.version}</tag>
110                                 </tags>
111                                 <assembly>
112                                     <inline>
113                                         <dependencySets>
114                                             <dependencySet>
115                                                 <includes>
116                                                     <include>org.onap.so.simulators.vnfm:vnfm-service</include>
117                                                 </includes>
118                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
119                                             </dependencySet>
120                                         </dependencySets>
121                                     </inline>
122                                 </assembly>
123                             </build>
124                         </image>
125                     </images>
126                 </configuration>
127                 <executions>
128                     <execution>
129                         <id>clean-images</id>
130                         <phase>pre-clean</phase>
131                         <goals>
132                             <goal>remove</goal>
133                         </goals>
134                         <configuration>
135                             <removeAll>true</removeAll>
136                         </configuration>
137                     </execution>
138                     <execution>
139                         <id>generate-images</id>
140                         <phase>generate-sources</phase>
141                         <goals>
142                             <goal>build</goal>
143                         </goals>
144                     </execution>
145                 </executions>
146             </plugin>
147             <plugin>
148                 <groupId>org.apache.maven.plugins</groupId>
149                 <artifactId>maven-deploy-plugin</artifactId>
150                 <version>2.8</version>
151                 <configuration>
152                     <skip>true</skip>
153                 </configuration>
154             </plugin>
155         </plugins>
156     </build>
157     <dependencies>
158         <dependency>
159             <groupId>${project.parent.groupId}</groupId>
160             <artifactId>sdc-simulator</artifactId>
161             <version>${project.version}</version>
162         </dependency>
163         <dependency>
164             <groupId>${project.parent.groupId}</groupId>
165             <artifactId>aai-simulator</artifactId>
166             <version>${project.version}</version>
167         </dependency>
168         <dependency>
169             <groupId>${project.parent.groupId}</groupId>
170             <artifactId>sdnc-simulator</artifactId>
171             <version>${project.version}</version>
172         </dependency>
173         <dependency>
174             <groupId>org.onap.so.simulators.vnfm</groupId>
175             <artifactId>vnfm-service</artifactId>
176             <version>${project.version}</version>
177         </dependency>
178     </dependencies>
179 </project>