fix odl patches
[ccsdk/distribution.git] / saltstack-server / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.onap.ccsdk.distribution</groupId>
7         <artifactId>distribution-root</artifactId>
8         <version>1.6.1-SNAPSHOT</version>
9     </parent>
10
11     <artifactId>saltstack-server</artifactId>
12     <packaging>pom</packaging>
13
14     <name>ccsdk-distribution :: ${project.artifactId}</name>
15     <description>Creates base saltstack-server Docker container</description>
16
17     <properties>
18         <image.name>onap/ccsdk-saltstack-server-image</image.name>
19     </properties>
20
21     <build>
22         <plugins>
23
24             <plugin>
25                 <groupId>org.codehaus.gmaven</groupId>
26                 <artifactId>groovy-maven-plugin</artifactId>
27                 <version>2.1.1</version>
28                 <executions>
29                     <execution>
30                         <phase>validate</phase>
31                         <goals>
32                             <goal>execute</goal>
33                         </goals>
34                         <configuration>
35                             <source>${basedir}/../src/main/scripts/TagVersion.groovy</source>
36                         </configuration>
37                     </execution>
38                 </executions>
39             </plugin>
40
41             <plugin>
42                 <artifactId>maven-resources-plugin</artifactId>
43                 <version>2.6</version>
44                 <executions>
45                     <execution>
46                         <id>copy-dockerfile</id>
47                         <goals>
48                             <goal>copy-resources</goal>
49                         </goals><!-- here the phase you need -->
50                         <phase>validate</phase>
51                         <configuration>
52                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
53                             <resources>
54                                 <resource>
55                                     <directory>src/main/docker</directory>
56                                     <includes>
57                                         <include>Dockerfile</include>
58                                     </includes>
59                                     <filtering>true</filtering>
60                                 </resource>
61                             </resources>
62                         </configuration>
63                     </execution>
64                 </executions>
65             </plugin>
66         </plugins>
67     </build>
68
69     <profiles>
70         <profile>
71             <id>docker</id>
72             <build>
73                 <plugins>
74                     <plugin>
75                         <groupId>io.fabric8</groupId>
76                         <artifactId>docker-maven-plugin</artifactId>
77                         <version>0.34.0</version>
78                         <inherited>false</inherited>
79                         <configuration>
80                             <images>
81                                 <image>
82                                     <name>${image.name}</name>
83                                     <build>
84                                         <cleanup>try</cleanup>
85                                         <noCache>true</noCache>
86                                         <contextDir>${basedir}/target/docker-stage</contextDir>
87                                         <dockerFile>Dockerfile</dockerFile>
88                                         <tags>
89                                             <tag>${project.docker.latestminortag.version}</tag>
90                                             <tag>${project.docker.latestfulltag.version}</tag>
91                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
92                                         </tags>
93                                     </build>
94                                 </image>
95                             </images>
96                             <verbose>${docker.verbose}</verbose>
97                             <skipPush>${docker.skip.push}</skipPush>
98                         </configuration>
99                         <executions>
100                             <execution>
101                                 <id>build-push-images</id>
102                                 <goals>
103                                     <goal>build</goal>
104                                     <goal>push</goal>
105                                 </goals>
106                             </execution>
107                         </executions>
108                     </plugin>
109                 </plugins>
110             </build>
111         </profile>
112     </profiles>
113 </project>