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