blob: 5be64736f9f813824405e3e8e909affa637981c6 [file] [log] [blame]
andre.schmid4188b202020-08-21 11:40:56 +01001<?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.0-SNAPSHOT</version>
28 </parent>
29 <modelVersion>4.0.0</modelVersion>
30
31 <artifactId>etsi-nfv-nsd-csar-plugin</artifactId>
32
33 <properties>
34 <sdc.version>1.7.0-SNAPSHOT</sdc.version>
35 <hamcrest.version>2.2</hamcrest.version>
36 </properties>
37
38 <dependencies>
39 <!--catalog-be dependencies-->
40 <dependency>
41 <groupId>org.openecomp.sdc</groupId>
42 <artifactId>catalog-be</artifactId>
43 <version>${sdc.version}</version>
44 <classifier>classes</classifier>
45 </dependency>
46
47 <!--test dependencies-->
48 <dependency>
49 <groupId>org.hamcrest</groupId>
50 <artifactId>hamcrest</artifactId>
51 <version>${hamcrest.version}</version>
52 <scope>test</scope>
53 </dependency>
54 <dependency>
55 <groupId>org.hamcrest</groupId>
56 <artifactId>hamcrest-library</artifactId>
57 <version>${hamcrest.version}</version>
58 <scope>test</scope>
59 </dependency>
60 </dependencies>
61
62 <profiles>
63 <profile>
64 <id>docker-staging</id>
65 <properties>
66 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
67 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
68 </properties>
69 </profile>
70 <profile>
71 <id>docker</id>
72 <activation>
73 <activeByDefault>false</activeByDefault>
74 </activation>
75 <build>
76 <plugins>
77 <plugin>
78 <groupId>io.fabric8</groupId>
79 <artifactId>docker-maven-plugin</artifactId>
80 <configuration>
81 <apiVersion>1.23</apiVersion>
82 <registry>nexus3.onap.org:10001</registry>
83 <authConfig>
84 <pull>
85 <username>docker</username>
86 <password>docker</password>
87 </pull>
88 </authConfig>
89 <images>
90 <image>
91 <name>onap/sdc-catalog-be-plugin/etsi-nfv-nsd-csar</name>
92 <alias>catalog-be-plugin-etsi-nfv-nsd-csar</alias>
93 <build>
94 <cleanup>try</cleanup>
95 <from>alpine:3.8</from>
96 <assembly>
97 <descriptorRef>artifact</descriptorRef>
98 <targetDir>/plugins</targetDir>
99 </assembly>
100 <tags>
101 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
102 <tag>${project.version}-${maven.build.timestamp}</tag>
103 </tags>
104 </build>
105 </image>
106 </images>
107 </configuration>
108 <executions>
109 <execution>
110 <id>clean-images</id>
111 <phase>pre-clean</phase>
112 <goals>
113 <goal>remove</goal>
114 </goals>
115 </execution>
116 <execution>
117 <id>generate-images</id>
118 <phase>package</phase>
119 <goals>
120 <goal>build</goal>
121 </goals>
122 </execution>
123 <execution>
124 <id>push-images</id>
125 <phase>deploy</phase>
126 <goals>
127 <goal>push</goal>
128 </goals>
129 </execution>
130 </executions>
131 </plugin>
132 </plugins>
133 </build>
134 </profile>
135 </profiles>
136
137</project>