Update version to 1.7.1
[sdc.git] / sdc-os-chef / 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
4     <modelVersion>4.0.0</modelVersion>
5
6     <artifactId>sdc-os-chef</artifactId>
7     <packaging>pom</packaging>
8
9
10     <parent>
11         <groupId>org.openecomp.sdc</groupId>
12         <artifactId>sdc-main</artifactId>
13         <version>1.7.1-SNAPSHOT</version>
14     </parent>
15
16
17     <build>
18         <plugins>
19             <plugin>
20                 <groupId>com.github.sylvainlaurent.maven</groupId>
21                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
22                 <executions>
23                     <execution>
24                         <id>validate</id>
25                         <phase>validate</phase>
26                         <goals>
27                             <goal>validate</goal>
28                         </goals>
29                         <configuration>
30                             <validationSets>
31                                 <validationSet>
32                                     <includes>
33                                         <include>**/*.y*ml</include>
34                                     </includes>
35                                 </validationSet>
36                                 <validationSet>
37                                     <includes>
38                                         <include>**/*.json</include>
39                                     </includes>
40                                 </validationSet>
41                             </validationSets>
42                             <skip>${skipYamlJsonValidator}</skip>
43                         </configuration>
44                     </execution>
45                 </executions>
46             </plugin>
47         </plugins>
48     </build>
49
50     <profiles>
51         <profile>
52             <id>docker</id>
53             <activation>
54                 <activeByDefault>false</activeByDefault>
55             </activation>
56             <build>
57                 <plugins>
58                     <plugin>
59                         <groupId>io.fabric8</groupId>
60                         <artifactId>docker-maven-plugin</artifactId>
61                         <configuration>
62                             <apiVersion>1.23</apiVersion>
63                             <registry>nexus3.onap.org:10001</registry>
64                             <authConfig>
65                                 <pull>
66                                     <username>docker</username>
67                                     <password>docker</password>
68                                 </pull>
69                             </authConfig>
70                             <images>
71
72                                 <!-- Build cassandra image -->
73                                 <image>
74                                     <name>onap/sdc-cassandra</name>
75                                     <alias>sdc-cassandra</alias>
76                                     <build>
77                                         <cleanup>try</cleanup>
78                                         <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
79                                         <tags>
80                                             <tag>${docker.tag}</tag>
81                                             <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
82                                         </tags>
83                                     </build>
84                                 </image>
85
86                             </images>
87                         </configuration>
88                         <executions>
89                             <execution>
90                                 <id>clean-images</id>
91                                 <phase>pre-clean</phase>
92                                 <goals>
93                                     <goal>remove</goal>
94                                 </goals>
95                                 <configuration>
96                                     <removeAll>true</removeAll>
97                                     <image>onap/sdc-cassandra</image>
98                                 </configuration>
99                             </execution>
100
101                             <execution>
102                                 <id>generate-images</id>
103                                 <phase>package</phase>
104                                 <goals>
105                                     <goal>build</goal>
106                                 </goals>
107                             </execution>
108
109                             <execution>
110                                 <id>push-images</id>
111                                 <phase>deploy</phase>
112                                 <goals>
113                                     <goal>push</goal>
114                                 </goals>
115                                 <configuration>
116                                     <image>onap/sdc-cassandra</image>
117                                 </configuration>
118                             </execution>
119                         </executions>
120                     </plugin>
121                 </plugins>
122             </build>
123         </profile>
124     </profiles>
125 </project>