Adding infrastructure for sdnc simulator
[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                     </images>
103                 </configuration>
104                 <executions>
105                     <execution>
106                         <id>clean-images</id>
107                         <phase>pre-clean</phase>
108                         <goals>
109                             <goal>remove</goal>
110                         </goals>
111                         <configuration>
112                             <removeAll>true</removeAll>
113                         </configuration>
114                     </execution>
115                     <execution>
116                         <id>generate-images</id>
117                         <phase>generate-sources</phase>
118                         <goals>
119                             <goal>build</goal>
120                         </goals>
121                     </execution>
122                 </executions>
123             </plugin>
124             <plugin>
125                 <groupId>org.apache.maven.plugins</groupId>
126                 <artifactId>maven-deploy-plugin</artifactId>
127                 <version>2.8</version>
128                 <configuration>
129                     <skip>true</skip>
130                 </configuration>
131             </plugin>
132         </plugins>
133     </build>
134     <dependencies>
135         <dependency>
136             <groupId>${project.parent.groupId}</groupId>
137             <artifactId>sdc-simulator</artifactId>
138             <version>${project.version}</version>
139         </dependency>
140         <dependency>
141             <groupId>${project.parent.groupId}</groupId>
142             <artifactId>aai-simulator</artifactId>
143             <version>${project.version}</version>
144         </dependency>
145         <dependency>
146             <groupId>${project.parent.groupId}</groupId>
147             <artifactId>sdnc-simulator</artifactId>
148             <version>${project.version}</version>
149         </dependency>
150     </dependencies>
151 </project>