Update to latest Frankfurt parent pom version
[sdnc/oam.git] / installation / ansible-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/maven-v4_0_0.xsd">
3
4     <parent>
5         <groupId>org.onap.ccsdk.parent</groupId>
6         <artifactId>odlparent-lite</artifactId>
7         <version>1.5.10-SNAPSHOT</version>
8     </parent>
9     <modelVersion>4.0.0</modelVersion>
10     <packaging>pom</packaging>
11     <groupId>org.onap.sdnc.oam</groupId>
12     <artifactId>installation-ansible-server</artifactId>
13     <version>1.8.5-SNAPSHOT</version>
14
15     <name>sdnc-oam :: installation :: ${project.artifactId}</name>
16     <description>Creates ansible-server Docker container</description>
17
18     <properties>
19         <image.name>onap/sdnc-ansible-server-image</image.name>
20         <sdnc.project.version>${project.version}</sdnc.project.version>
21         <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
22         <ccsdk.docker.version>0.7.3</ccsdk.docker.version>
23         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
24         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
25     </properties>
26
27
28     <build>
29         <plugins>
30             <plugin>
31                 <groupId>org.codehaus.groovy.maven</groupId>
32                 <artifactId>gmaven-plugin</artifactId>
33                 <executions>
34                     <execution>
35                         <phase>validate</phase>
36                         <goals>
37                             <goal>execute</goal>
38                         </goals>
39                         <configuration>
40                             <source>${basedir}/../TagVersion.groovy</source>
41                         </configuration>
42                     </execution>
43                 </executions>
44             </plugin>
45
46             <plugin>
47                 <artifactId>maven-resources-plugin</artifactId>
48                 <version>2.6</version>
49                 <executions>
50                     <execution>
51                         <id>copy-files</id>
52                         <goals>
53                             <goal>copy-resources</goal>
54                         </goals><!-- here the phase you need -->
55                         <phase>validate</phase>
56                         <configuration>
57                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
58                             <resources>
59                                 <resource>
60                                     <directory>src/main</directory>
61                                     <includes>
62                                         <include>**/*</include>
63                                     </includes>
64                                     <filtering>false</filtering>
65                                 </resource>
66                             </resources>
67                         </configuration>
68                     </execution>
69                 </executions>
70             </plugin>
71         </plugins>
72     </build>
73
74     <profiles>
75         <profile>
76             <id>docker</id>
77             <build>
78                 <plugins>
79                     <plugin>
80                         <groupId>io.fabric8</groupId>
81                         <artifactId>docker-maven-plugin</artifactId>
82                         <version>0.28.0</version>
83                         <inherited>false</inherited>
84                         <configuration>
85                             <images>
86                                 <image>
87                                     <name>${image.name}</name>
88                                     <build>
89                                         <cleanup>try</cleanup>
90                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
91                                         <dockerFile>Dockerfile</dockerFile>
92                                         <tags>
93                                             <tag>${project.docker.latestminortag.version}</tag>
94                                             <tag>${project.docker.latestfulltag.version}</tag>
95                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
96                                         </tags>
97                                     </build>
98                                 </image>
99                             </images>
100                         </configuration>
101                         <executions>
102                             <execution>
103                                 <id>generate-images</id>
104                                 <phase>package</phase>
105                                 <goals>
106                                     <goal>build</goal>
107                                 </goals>
108                             </execution>
109
110                             <execution>
111                                 <id>push-images</id>
112                                 <phase>deploy</phase>
113                                 <goals>
114                                     <goal>build</goal>
115                                     <goal>push</goal>
116                                 </goals>
117                             </execution>
118                         </executions>
119                     </plugin>
120                 </plugins>
121             </build>
122         </profile>
123     </profiles>
124     <organization>
125         <name>ONAP</name>
126     </organization>
127 </project>