1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 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.
18 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <groupId>org.openo.common-services.microservice-bus</groupId>
21 <artifactId>distributions-parent</artifactId>
22 <version>1.0.0-SNAPSHOT</version>
24 <modelVersion>4.0.0</modelVersion>
25 <artifactId>msb-core-standalone</artifactId>
26 <name>openo/msb/msb-core/distributions/standalone</name>
27 <packaging>pom</packaging>
28 <version>1.0.0-SNAPSHOT</version>
31 <packageid>msb-standalone</packageid>
32 <linux64id>linux64</linux64id>
33 <win64id>win64</win64id>
34 <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
35 <win64outputdir>target/assembly/${win64id}</win64outputdir>
40 <groupId>org.openo.common-services.microservice-bus</groupId>
41 <artifactId>apiroute-standalone</artifactId>
42 <version>${project.version}</version>
44 <optional>true</optional>
48 <groupId>org.openo.common-services.microservice-bus</groupId>
49 <artifactId>redis</artifactId>
51 <classifier>win64</classifier>
52 <version>${project.version}</version>
53 <optional>true</optional>
56 <groupId>org.openo.common-services.microservice-bus</groupId>
57 <artifactId>redis</artifactId>
59 <classifier>linux64</classifier>
60 <version>${project.version}</version>
61 <optional>true</optional>
64 <groupId>org.openo.common-services.microservice-bus</groupId>
65 <artifactId>redis-ext</artifactId>
67 <version>${project.version}</version>
68 <optional>true</optional>
72 <groupId>org.openo.common-services.microservice-bus</groupId>
73 <artifactId>openresty</artifactId>
75 <classifier>win64</classifier>
76 <version>${project.version}</version>
77 <optional>true</optional>
80 <groupId>org.openo.common-services.microservice-bus</groupId>
81 <artifactId>openresty</artifactId>
83 <classifier>linux64</classifier>
84 <version>${project.version}</version>
85 <optional>true</optional>
89 <groupId>org.openo.common-services.microservice-bus</groupId>
90 <artifactId>openresty-ext</artifactId>
92 <version>${project.version}</version>
93 <optional>true</optional>
102 <artifactId>maven-resources-plugin</artifactId>
105 <id>copy-resources-dockerfile</id>
106 <phase>prepare-package</phase>
108 <goal>copy-resources</goal>
111 <outputDirectory>${version.output}</outputDirectory>
112 <includeEmptyDirs>true</includeEmptyDirs>
115 <directory>${dockerFileDir}</directory>
116 <filtering>false</filtering>
118 <include>**/*</include>
122 <overwrite>true</overwrite>
126 <id>copy-msb-resources-${linux64id}</id>
127 <phase>prepare-package</phase>
129 <goal>copy-resources</goal>
132 <outputDirectory>${linux64outputdir}</outputDirectory>
133 <includeEmptyDirs>true</includeEmptyDirs>
136 <directory>src/assembly/resource/</directory>
137 <filtering>false</filtering>
139 <include>**/*</include>
142 <exclude>**/*.bat</exclude>
146 <overwrite>true</overwrite>
151 <id>copy-msb-resources-${win64id}</id>
152 <phase>prepare-package</phase>
154 <goal>copy-resources</goal>
157 <outputDirectory>${win64outputdir}</outputDirectory>
158 <includeEmptyDirs>true</includeEmptyDirs>
161 <directory>src/assembly/resource/</directory>
162 <filtering>false</filtering>
164 <include>**/*</include>
167 <exclude>**/*.sh</exclude>
171 <overwrite>true</overwrite>
178 <groupId>org.apache.maven.plugins</groupId>
179 <artifactId>maven-dependency-plugin</artifactId>
182 <id>unpacktolinux64</id>
186 <phase>prepare-package</phase>
190 <groupId>org.openo.common-services.microservice-bus</groupId>
191 <artifactId>apiroute-standalone</artifactId>
195 <groupId>org.openo.common-services.microservice-bus</groupId>
196 <artifactId>redis</artifactId>
198 <classifier>linux64</classifier>
201 <groupId>org.openo.common-services.microservice-bus</groupId>
202 <artifactId>redis-ext</artifactId>
206 <groupId>org.openo.common-services.microservice-bus</groupId>
207 <artifactId>openresty</artifactId>
209 <classifier>linux64</classifier>
212 <groupId>org.openo.common-services.microservice-bus</groupId>
213 <artifactId>openresty-ext</artifactId>
217 <excludes>**/*.bat,*.cmd</excludes>
218 <outputDirectory>${linux64outputdir}</outputDirectory>
219 <overWriteReleases>false</overWriteReleases>
220 <overWriteSnapshots>true</overWriteSnapshots>
221 <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
225 <id>unpacktowin64</id>
229 <phase>prepare-package</phase>
233 <groupId>org.openo.common-services.microservice-bus</groupId>
234 <artifactId>apiroute-standalone</artifactId>
238 <groupId>org.openo.common-services.microservice-bus</groupId>
239 <artifactId>redis</artifactId>
241 <classifier>win64</classifier>
244 <groupId>org.openo.common-services.microservice-bus</groupId>
245 <artifactId>redis-ext</artifactId>
249 <groupId>org.openo.common-services.microservice-bus</groupId>
250 <artifactId>openresty</artifactId>
252 <classifier>win64</classifier>
255 <groupId>org.openo.common-services.microservice-bus</groupId>
256 <artifactId>openresty-ext</artifactId>
260 <excludes>*.sh,*/*.sh,*/*/*.sh</excludes>
261 <outputDirectory>${win64outputdir}</outputDirectory>
262 <overWriteReleases>false</overWriteReleases>
263 <overWriteSnapshots>true</overWriteSnapshots>
264 <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-antrun-plugin</artifactId>
275 <id>distribution</id>
276 <phase>package</phase>
281 <target name="distribution">
282 <tar destfile="${version.output}/${packageid}-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip">
283 <tarfileset dir="target/assembly/linux64" filemode="0644" dirmode="0755">
284 <exclude name="**/*.sh"/>
285 <exclude name="openresty/nginx/sbin/nginx"/>
286 <exclude name="redis/redis-*"/>
288 <tarfileset dir="target/assembly/linux64" filemode="0755" dirmode="0755">
289 <include name="**/*.sh"/>
290 <include name="openresty/nginx/sbin/nginx"/>
291 <include name="redis/redis-*"/>
294 <attachartifact file="${version.output}/${packageid}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/>
297 <zip destfile="${version.output}/${packageid}-${project.version}-win64.zip" update="true">
298 <zipfileset dir="target/assembly/win64" includes="**"/>
300 <attachartifact file="${version.output}/${packageid}-${project.version}-win64.zip" classifier="win64" type="zip"/>