4 Copyright 2017-2023 ZTE Corporation.
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
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <groupId>org.onap.holmes.engine-management</groupId>
24 <artifactId>holmes-engine-parent</artifactId>
25 <version>1.3.8-SNAPSHOT</version>
28 <artifactId>holmes-engine-d-standalone</artifactId>
29 <modelVersion>4.0.0</modelVersion>
30 <name>holmes-engine/holmes-engine-d-standalone</name>
31 <packaging>pom</packaging>
34 <holmes.engine.project.version>${project.version}</holmes.engine.project.version>
35 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
36 <build.number>${maven.build.timestamp}</build.number>
41 <groupId>org.onap.holmes.engine-management</groupId>
42 <artifactId>holmes-engine-d</artifactId>
43 <version>${project.version}</version>
50 <groupId>org.apache.maven.plugins</groupId>
51 <artifactId>maven-dependency-plugin</artifactId>
54 <id>copy-dependencies</id>
55 <phase>process-resources</phase>
57 <goal>copy-dependencies</goal>
62 <outputDirectory>${linux64outputdir}/lib</outputDirectory>
63 <overWriteIfNewer>true</overWriteIfNewer>
64 <includeScope>runtime</includeScope>
68 <artifactId>maven-resources-plugin</artifactId>
71 <id>copy-resources-${linux64id}</id>
72 <phase>process-resources</phase>
74 <goal>copy-resources</goal>
77 <outputDirectory>${linux64outputdir}</outputDirectory>
80 <directory>src/main/assembly/</directory>
81 <filtering>false</filtering>
83 <include>**/*</include>
86 <exclude>**/*.bat</exclude>
90 <directory>../engine-d/src/main/resources</directory>
92 <exclude>logback-spring.xml</exclude>
94 <filtering>false</filtering>
97 <overwrite>true</overwrite>
101 <id>copy-dockerfile</id>
102 <phase>process-resources</phase>
104 <goal>copy-resources</goal>
107 <outputDirectory>target/version</outputDirectory>
110 <directory>src/main/assembly/</directory>
111 <filtering>false</filtering>
113 <include>Dockerfile</include>
117 <overwrite>true</overwrite>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-assembly-plugin</artifactId>
129 <tarLongFileMode>gnu</tarLongFileMode>
131 <descriptor>linux64-assembly.xml</descriptor>
133 <appendAssemblyId>true</appendAssemblyId>
134 <outputDirectory>target/version</outputDirectory>
136 <phase>package</phase>
144 <groupId>org.codehaus.gmaven</groupId>
145 <artifactId>groovy-maven-plugin</artifactId>
148 <phase>validate</phase>
154 println project.properties['holmes.engine.project.version'];
156 if (project.properties['holmes.engine.project.version'] != null) {
157 versionArray = project.properties['holmes.engine.project.version'].split('-');
160 project.properties['project.docker.latesttag.version'] = versionArray[0] + "-STAGING-latest";
161 project.properties['project.docker.latesttag.version.with.timestamp'] = versionArray[0] + "-STAGING-${build.number}";
163 println 'New Tag for docker:' +
164 project.properties['project.docker.latesttag.version'];
179 <groupId>io.fabric8</groupId>
180 <artifactId>docker-maven-plugin</artifactId>
181 <version>0.16.5</version>
182 <inherited>false</inherited>
186 <name>onap/holmes/engine-management</name>
188 <cleanup>try</cleanup>
189 <dockerFileDir>${basedir}/target/version/</dockerFileDir>
190 <dockerFile>${basedir}/target/version/Dockerfile</dockerFile>
192 <tag>${project.version}</tag>
193 <tag>${project.version}-${build.number}</tag>
194 <tag>${project.docker.latesttag.version}</tag>
195 <tag>${project.docker.latesttag.version.with.timestamp}</tag>
203 <id>generate-images</id>
204 <phase>package</phase>
212 <phase>deploy</phase>