4 Copyright 2017-2020 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.
20 <project xmlns="http://maven.apache.org/POM/4.0.0"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <groupId>org.onap.holmes.rule-management</groupId>
25 <artifactId>holmes-rulemgt-parent</artifactId>
26 <version>1.3.5-SNAPSHOT</version>
29 <artifactId>holmes-rulemgt-standalone</artifactId>
30 <modelVersion>4.0.0</modelVersion>
31 <name>holmes-rulemgt/holmes-rulemgt-standalone</name>
32 <packaging>pom</packaging>
35 <holmes.rule.project.version>${project.version}</holmes.rule.project.version>
36 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
37 <build.number>${maven.build.timestamp}</build.number>
42 <groupId>org.onap.holmes.rule-management</groupId>
43 <artifactId>holmes-rulemgt</artifactId>
44 <version>${project.version}</version>
47 <groupId>org.onap.holmes.rule-management</groupId>
48 <artifactId>holmes-rulemgt-frontend</artifactId>
49 <version>${project.version}</version>
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-dependency-plugin</artifactId>
61 <id>copy-dependencies</id>
62 <phase>process-resources</phase>
64 <goal>copy-dependencies</goal>
69 <outputDirectory>${linux64outputdir}/lib</outputDirectory>
70 <includeScope>runtime</includeScope>
74 <artifactId>maven-resources-plugin</artifactId>
77 <id>copy-resources-${linux64id}</id>
78 <phase>process-resources</phase>
80 <goal>copy-resources</goal>
83 <outputDirectory>${linux64outputdir}</outputDirectory>
86 <directory>src/main/assembly/</directory>
87 <filtering>false</filtering>
89 <include>**/*</include>
92 <exclude>**/*.bat</exclude>
96 <directory>../rulemgt/src/main/resources</directory>
97 <filtering>false</filtering>
100 <overwrite>true</overwrite>
104 <id>copy-dockerfile</id>
105 <phase>process-resources</phase>
107 <goal>copy-resources</goal>
110 <outputDirectory>target/version</outputDirectory>
113 <directory>src/main/assembly/</directory>
114 <filtering>false</filtering>
116 <include>Dockerfile</include>
120 <overwrite>true</overwrite>
124 <id>copy-nginx-conf-file</id>
125 <phase>process-resources</phase>
127 <goal>copy-resources</goal>
130 <outputDirectory>target/version</outputDirectory>
133 <directory>src/main/assembly/</directory>
134 <filtering>false</filtering>
136 <include>nginx-*.conf</include>
137 <include>**/holmes-frontend*.*</include>
138 <include>**/*.pem</include>
142 <overwrite>true</overwrite>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-dependency-plugin</artifactId>
152 <id>copy-artifacts-${linux64id}</id>
156 <phase>prepare-package</phase>
160 <groupId>org.onap.holmes.rule-management</groupId>
161 <artifactId>holmes-rulemgt-frontend</artifactId>
163 <overWrite>true</overWrite>
164 <outputDirectory>target/version</outputDirectory>
165 <destFileName>holmes-rulemgt-frontend-${project.version}.tar.gz</destFileName>
173 <groupId>org.apache.maven.plugins</groupId>
174 <artifactId>maven-assembly-plugin</artifactId>
180 <descriptor>linux64-assembly.xml</descriptor>
182 <appendAssemblyId>true</appendAssemblyId>
183 <outputDirectory>target/version</outputDirectory>
185 <phase>package</phase>
187 <goal>attached</goal>
193 <groupId>org.codehaus.gmaven</groupId>
194 <artifactId>groovy-maven-plugin</artifactId>
197 <phase>validate</phase>
203 println project.properties['holmes.rule.project.version'];
205 if (project.properties['holmes.rule.project.version'] != null) {
206 versionArray = project.properties['holmes.rule.project.version'].split('-');
209 project.properties['project.docker.latesttag.version'] = versionArray[0] + "-STAGING-latest";
210 project.properties['project.docker.latesttag.version.with.timestamp'] = versionArray[0] + "-STAGING-${build.number}";
212 println 'New Tag for docker:' +
213 project.properties['project.docker.latesttag.version'];
228 <groupId>io.fabric8</groupId>
229 <artifactId>docker-maven-plugin</artifactId>
230 <version>0.16.5</version>
231 <inherited>false</inherited>
235 <name>onap/holmes/rule-management</name>
237 <cleanup>try</cleanup>
238 <dockerFileDir>${basedir}/target/version/</dockerFileDir>
239 <dockerFile>${basedir}/target/version/Dockerfile</dockerFile>
241 <tag>${project.version}</tag>
242 <tag>${project.version}-${build.number}</tag>
243 <tag>${project.docker.latesttag.version}</tag>
244 <tag>${project.docker.latesttag.version.with.timestamp}</tag>
252 <id>generate-images</id>
253 <phase>package</phase>
261 <phase>deploy</phase>