Merge "Update directory to new scripts/sdc-dcae-d"
[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>simulators/sdc-simulator</name>
31                             <build>
32                                 <cleanup>try</cleanup>
33                                 <dockerFileDir>docker-files</dockerFileDir>
34                                 <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
35                                 <tags>
36                                     <tag>${project.version}</tag>
37                                 </tags>
38                                 <assembly>
39                                     <inline>
40                                         <dependencySets>
41                                             <dependencySet>
42                                                 <includes>
43                                                     <include>org.onap.so.simulators:sdc-simulator</include>
44                                                 </includes>
45                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
46                                             </dependencySet>
47                                         </dependencySets>
48                                     </inline>
49                                 </assembly>
50                             </build>
51                         </image>
52                     </images>
53                 </configuration>
54
55                 <executions>
56                     <execution>
57                         <id>clean-images</id>
58                         <phase>pre-clean</phase>
59                         <goals>
60                             <goal>remove</goal>
61                         </goals>
62                         <configuration>
63                             <removeAll>true</removeAll>
64                         </configuration>
65                     </execution>
66
67                     <execution>
68                         <id>generate-images</id>
69                         <phase>generate-sources</phase>
70                         <goals>
71                             <goal>build</goal>
72                         </goals>
73                     </execution>
74
75
76                 </executions>
77
78             </plugin>
79             <plugin>
80                 <groupId>org.apache.maven.plugins</groupId>
81                 <artifactId>maven-deploy-plugin</artifactId>
82                 <version>2.8</version>
83                 <configuration>
84                     <skip>true</skip>
85                 </configuration>
86             </plugin>
87         </plugins>
88     </build>
89
90     <dependencies>
91
92         <dependency>
93             <groupId>org.onap.so.simulators</groupId>
94             <artifactId>sdc-simulator</artifactId>
95             <version>${project.version}</version>
96         </dependency>
97     </dependencies>
98
99
100 </project>