Merge "Drools-apps CSIT randomly fails deploying policies"
[integration/csit.git] / plans / usecases-pnf-sw-upgrade / pnf-sw-upgrade / sorch / simulator / 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/aai-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>${project.parent.groupId}:aai-simulator</include>
48                                                 </includes>
49                                                 <outputFileNameMapping>app.jar</outputFileNameMapping>
50                                             </dependencySet>
51                                         </dependencySets>
52                                     </inline>
53                                 </assembly>
54                             </build>
55                         </image>
56                     </images>
57                 </configuration>
58                 <executions>
59                     <execution>
60                         <id>clean-images</id>
61                         <phase>pre-clean</phase>
62                         <goals>
63                             <goal>remove</goal>
64                         </goals>
65                         <configuration>
66                             <removeAll>true</removeAll>
67                         </configuration>
68                     </execution>
69                     <execution>
70                         <id>generate-images</id>
71                         <phase>generate-sources</phase>
72                         <goals>
73                             <goal>build</goal>
74                         </goals>
75                     </execution>
76                 </executions>
77             </plugin>
78             <plugin>
79                 <groupId>org.apache.maven.plugins</groupId>
80                 <artifactId>maven-deploy-plugin</artifactId>
81                 <version>2.8</version>
82                 <configuration>
83                     <skip>true</skip>
84                 </configuration>
85             </plugin>
86         </plugins>
87     </build>
88     <dependencies>
89         <dependency>
90             <groupId>${project.parent.groupId}</groupId>
91             <artifactId>aai-simulator</artifactId>
92             <version>${project.version}</version>
93         </dependency>
94     </dependencies>
95 </project>