Update version to 1.13.6-SNAPSHOT
[sdc.git] / catalog-be-plugins / backend-all-plugins / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 ONAP SDC
4 ================================================================================
5 Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10         *
11      http://www.apache.org/licenses/LICENSE-2.0
12         *
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 ================================================================================
20 -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <parent>
26         <artifactId>catalog-be-plugins</artifactId>
27         <groupId>org.openecomp.sdc</groupId>
28         <version>1.13.6-SNAPSHOT</version>
29     </parent>
30
31     <packaging>pom</packaging>
32     <modelVersion>4.0.0</modelVersion>
33
34     <artifactId>backend-all-plugins</artifactId>
35
36     <properties>
37         <docker.skip.build>true</docker.skip.build>
38         <docker.skip.push>true</docker.skip.push>
39         <docker.skip.tag>true</docker.skip.tag>
40         <docker.skip>true</docker.skip>
41     </properties>
42     <dependencies>
43         <dependency>
44             <groupId>org.openecomp.sdc</groupId>
45             <artifactId>etsi-nfv-nsd-csar-plugin</artifactId>
46             <type>jar</type>
47             <version>${project.version}</version>
48         </dependency>
49     </dependencies>
50     <profiles>
51         <profile>
52             <id>docker</id>
53             <activation>
54                 <activeByDefault>false</activeByDefault>
55             </activation>
56             <properties>
57                 <skip.staging.artifacts>true</skip.staging.artifacts>
58                 <docker.skip.build>false</docker.skip.build>
59                 <docker.skip.tag>false</docker.skip.tag>
60                 <docker.skip.push>false</docker.skip.push>
61                 <docker.skip>false</docker.skip>
62             </properties>
63             <build>
64                 <plugins>
65                     <plugin>
66                         <groupId>io.fabric8</groupId>
67                         <artifactId>docker-maven-plugin</artifactId>
68                         <configuration>
69                             <verbose>${verbose}</verbose>
70                             <apiVersion>${docker.api.version}</apiVersion>
71                             <registry>${docker.registry}</registry>
72                             <verbose>${verbose}</verbose>
73                             <authConfig>
74                                 <pull>
75                                     <username>${docker.username}</username>
76                                     <password>${docker.password}</password>
77                                 </pull>
78                             </authConfig>
79                             <images>
80                                 <!-- Build backend image -->
81                                 <image>
82                                     <name>${docker.namespace}/sdc-backend-all-plugins</name>
83                                     <alias>sdc-backend-all-plugins</alias>
84                                     <build>
85                                         <cleanup>try</cleanup>
86                                         <dockerFile>backend-all-plugins/Dockerfile</dockerFile>
87                                         <tags>
88                                             <tag>latest</tag>
89                                             <tag>
90                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
91                                             </tag>
92                                             <tag>
93                                                 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
94                                             </tag>
95                                         </tags>
96                                         <assembly>
97                                             <descriptor>
98                                                 backend-all-plugins/backend-all-plugins-files.xml
99                                             </descriptor>
100                                             <name>onap-sdc-backend-all-plugins</name>
101                                         </assembly>
102                                     </build>
103                                 </image>
104                             </images>
105                         </configuration>
106                         <executions>
107                             <execution>
108                                 <id>clean-images</id>
109                                 <phase>pre-clean</phase>
110                                 <goals>
111                                     <goal>remove</goal>
112                                 </goals>
113                             </execution>
114                             <execution>
115                                 <id>generate-images</id>
116                                 <phase>install</phase>
117                                 <goals>
118                                     <goal>build</goal>
119                                 </goals>
120                             </execution>
121                             <execution>
122                                 <id>push-images</id>
123                                 <phase>deploy</phase>
124                                 <goals>
125                                     <goal>push</goal>
126                                 </goals>
127                             </execution>
128                         </executions>
129                     </plugin>
130                 </plugins>
131             </build>
132         </profile>
133     </profiles>
134 </project>