1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ============LICENSE_START=======================================================
5 ~ ================================================================================
6 ~ Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
7 ~ ================================================================================
8 ~ Licensed under the Apache License, Version 2.0 (the "License");
9 ~ you may not use this file except in compliance with the License.
10 ~ You may obtain a copy of the License at
12 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~ Unless required by applicable law or agreed to in writing, software
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 ~ See the License for the specific language governing permissions and
18 ~ limitations under the License.
19 ~ ============LICENSE_END=========================================================
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 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.oparent</groupId>
28 <artifactId>oparent</artifactId>
29 <version>2.0.0</version>
31 <groupId>org.onap.dcaegen2.platform.mod</groupId>
32 <artifactId>ui</artifactId>
33 <version>1.0.0-SNAPSHOT</version>
36 <dockerfile-maven-plugin.version>1.4.10</dockerfile-maven-plugin.version>
37 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
43 <groupId>com.spotify</groupId>
44 <artifactId>dockerfile-maven-plugin</artifactId>
45 <version>${dockerfile-maven-plugin.version}</version>
47 <contextDirectory>${project.basedir}</contextDirectory>
48 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
50 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
51 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
57 <phase>package</phase>
63 <id>tag-and-push-image-latest</id>
64 <phase>package</phase>
70 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
72 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
76 <id>tag-and-push-image-with-version</id>
77 <phase>package</phase>
83 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
84 <tag>${project.version}</tag>
85 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>