Automate workaround to trigger ETSI flow
[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
10     <artifactId>docker</artifactId>
11     <packaging>pom</packaging>
12     <name>${project.artifactId}</name>
13
14     <build>
15         <finalName>${project.artifactId}-${project.version}</finalName>
16         <plugins>
17             <plugin>
18                 <groupId>io.fabric8</groupId>
19                 <artifactId>docker-maven-plugin</artifactId>
20                 <version>0.28.0</version>
21
22                 <configuration>
23                     <verbose>true</verbose>
24                     <apiVersion>1.23</apiVersion>
25                     <pullRegistry>${docker.pull.registry}</pullRegistry>
26                     <pushRegistry>${docker.push.registry}</pushRegistry>
27
28                     <images>
29                         <image>
30                             <name>jobs/workaround-job-container</name>
31                             <build>
32                                 <cleanup>try</cleanup>
33                                 <dockerFileDir>docker-files</dockerFileDir>
34                                 <dockerFile>Dockerfile.workaround-job-container</dockerFile>
35                             </build>
36                         </image>
37                         <image>
38                             <name>simulators/sdc-simulator</name>
39                             <build>
40                                 <cleanup>try</cleanup>
41                                 <dockerFileDir>docker-files</dockerFileDir>
42                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
43                                 <tags>
44                                     <tag>${project.version}</tag>
45                                 </tags>
46                                 <assembly>
47                                     <inline>
48                                         <dependencySets>
49                                             <dependencySet>
50                                                 <includes>
51                                                     <include>org.onap.so.simulators:sdc-simulator</include>
52                                                 </includes>
53                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
54                                             </dependencySet>
55                                         </dependencySets>
56                                     </inline>
57                                 </assembly>
58                             </build>
59                         </image>
60                     </images>
61                 </configuration>
62
63                 <executions>
64                     <execution>
65                         <id>clean-images</id>
66                         <phase>pre-clean</phase>
67                         <goals>
68                             <goal>remove</goal>
69                         </goals>
70                         <configuration>
71                             <removeAll>true</removeAll>
72                         </configuration>
73                     </execution>
74
75                     <execution>
76                         <id>generate-images</id>
77                         <phase>generate-sources</phase>
78                         <goals>
79                             <goal>build</goal>
80                         </goals>
81                     </execution>
82
83
84                 </executions>
85
86             </plugin>
87             <plugin>
88                 <groupId>org.apache.maven.plugins</groupId>
89                 <artifactId>maven-deploy-plugin</artifactId>
90                 <version>2.8</version>
91                 <configuration>
92                     <skip>true</skip>
93                 </configuration>
94             </plugin>
95         </plugins>
96     </build>
97
98     <dependencies>
99
100         <dependency>
101             <groupId>org.onap.so.simulators</groupId>
102             <artifactId>sdc-simulator</artifactId>
103             <version>${project.version}</version>
104         </dependency>
105     </dependencies>
106
107
108 </project>