1 <?xml version="1.0" encoding="UTF-8"?>
4 Copyright 2016 2015-2016 ZTE, Inc. and others. All rights reserved.
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 email: meng.zhaoxing1@zte.com.cn
22 <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">
24 <groupId>org.openo.common-services.microservice-bus</groupId>
25 <artifactId>distributions-parent</artifactId>
26 <version>1.0.0-SNAPSHOT</version>
28 <modelVersion>4.0.0</modelVersion>
29 <artifactId>msb-core-standalone</artifactId>
30 <name>openo/msb/msb-core/distributions/standalone</name>
31 <packaging>pom</packaging>
32 <version>1.0.0-SNAPSHOT</version>
35 <packageid>msb-standalone</packageid>
36 <linux64id>linux64</linux64id>
37 <win64id>win64</win64id>
38 <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
39 <win64outputdir>target/assembly/${win64id}</win64outputdir>
44 <groupId>org.openo.common-services.microservice-bus</groupId>
45 <artifactId>apiroute-standalone</artifactId>
46 <version>${project.version}</version>
48 <optional>true</optional>
52 <groupId>org.openo.common-services.microservice-bus</groupId>
53 <artifactId>redis</artifactId>
55 <classifier>win64</classifier>
56 <version>${project.version}</version>
57 <optional>true</optional>
60 <groupId>org.openo.common-services.microservice-bus</groupId>
61 <artifactId>redis</artifactId>
63 <classifier>linux64</classifier>
64 <version>${project.version}</version>
65 <optional>true</optional>
68 <groupId>org.openo.common-services.microservice-bus</groupId>
69 <artifactId>redis-ext</artifactId>
71 <version>${project.version}</version>
72 <optional>true</optional>
76 <groupId>org.openo.common-services.microservice-bus</groupId>
77 <artifactId>openresty</artifactId>
79 <classifier>win64</classifier>
80 <version>${project.version}</version>
81 <optional>true</optional>
84 <groupId>org.openo.common-services.microservice-bus</groupId>
85 <artifactId>openresty</artifactId>
87 <classifier>linux64</classifier>
88 <version>${project.version}</version>
89 <optional>true</optional>
93 <groupId>org.openo.common-services.microservice-bus</groupId>
94 <artifactId>openresty-ext</artifactId>
96 <version>${project.version}</version>
97 <optional>true</optional>
100 <groupId>org.openo.common-services.microservice-bus</groupId>
101 <artifactId>eag-openresty-ext</artifactId>
103 <version>${project.version}</version>
104 <optional>true</optional>
113 <artifactId>maven-resources-plugin</artifactId>
116 <id>copy-resources-dockerfile</id>
117 <phase>prepare-package</phase>
119 <goal>copy-resources</goal>
122 <outputDirectory>${version.output}</outputDirectory>
123 <includeEmptyDirs>true</includeEmptyDirs>
126 <directory>${dockerFileDir}</directory>
127 <filtering>false</filtering>
129 <include>**/*</include>
133 <overwrite>true</overwrite>
137 <id>copy-msb-resources-${linux64id}</id>
138 <phase>prepare-package</phase>
140 <goal>copy-resources</goal>
143 <outputDirectory>${linux64outputdir}</outputDirectory>
144 <includeEmptyDirs>true</includeEmptyDirs>
147 <directory>src/assembly/resource/</directory>
148 <filtering>false</filtering>
150 <include>**/*</include>
153 <exclude>**/*.bat</exclude>
157 <overwrite>true</overwrite>
162 <id>copy-msb-resources-${win64id}</id>
163 <phase>prepare-package</phase>
165 <goal>copy-resources</goal>
168 <outputDirectory>${win64outputdir}</outputDirectory>
169 <includeEmptyDirs>true</includeEmptyDirs>
172 <directory>src/assembly/resource/</directory>
173 <filtering>false</filtering>
175 <include>**/*</include>
178 <exclude>**/*.sh</exclude>
182 <overwrite>true</overwrite>
189 <groupId>org.apache.maven.plugins</groupId>
190 <artifactId>maven-dependency-plugin</artifactId>
193 <id>unpacktolinux64</id>
197 <phase>prepare-package</phase>
201 <groupId>org.openo.common-services.microservice-bus</groupId>
202 <artifactId>apiroute-standalone</artifactId>
206 <groupId>org.openo.common-services.microservice-bus</groupId>
207 <artifactId>redis</artifactId>
209 <classifier>linux64</classifier>
212 <groupId>org.openo.common-services.microservice-bus</groupId>
213 <artifactId>redis-ext</artifactId>
217 <groupId>org.openo.common-services.microservice-bus</groupId>
218 <artifactId>openresty</artifactId>
220 <classifier>linux64</classifier>
223 <groupId>org.openo.common-services.microservice-bus</groupId>
224 <artifactId>openresty-ext</artifactId>
228 <excludes>**/*.bat,*.cmd</excludes>
229 <outputDirectory>${linux64outputdir}</outputDirectory>
230 <overWriteReleases>false</overWriteReleases>
231 <overWriteSnapshots>true</overWriteSnapshots>
232 <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
237 <id>eag-unpacktolinux64</id>
241 <phase>prepare-package</phase>
245 <groupId>org.openo.common-services.microservice-bus</groupId>
246 <artifactId>openresty</artifactId>
248 <classifier>linux64</classifier>
251 <groupId>org.openo.common-services.microservice-bus</groupId>
252 <artifactId>eag-openresty-ext</artifactId>
256 <excludes>**/*.bat,*.cmd</excludes>
257 <outputDirectory>${linux64outputdir}/eag</outputDirectory>
258 <overWriteReleases>false</overWriteReleases>
259 <overWriteSnapshots>true</overWriteSnapshots>
260 <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
265 <id>unpacktowin64</id>
269 <phase>prepare-package</phase>
273 <groupId>org.openo.common-services.microservice-bus</groupId>
274 <artifactId>apiroute-standalone</artifactId>
278 <groupId>org.openo.common-services.microservice-bus</groupId>
279 <artifactId>redis</artifactId>
281 <classifier>win64</classifier>
284 <groupId>org.openo.common-services.microservice-bus</groupId>
285 <artifactId>redis-ext</artifactId>
289 <groupId>org.openo.common-services.microservice-bus</groupId>
290 <artifactId>openresty</artifactId>
292 <classifier>win64</classifier>
295 <groupId>org.openo.common-services.microservice-bus</groupId>
296 <artifactId>openresty-ext</artifactId>
300 <excludes>*.sh,*/*.sh,*/*/*.sh</excludes>
301 <outputDirectory>${win64outputdir}</outputDirectory>
302 <overWriteReleases>false</overWriteReleases>
303 <overWriteSnapshots>true</overWriteSnapshots>
304 <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
309 <id>eag-unpacktowin64</id>
313 <phase>prepare-package</phase>
317 <groupId>org.openo.common-services.microservice-bus</groupId>
318 <artifactId>openresty</artifactId>
320 <classifier>win64</classifier>
323 <groupId>org.openo.common-services.microservice-bus</groupId>
324 <artifactId>eag-openresty-ext</artifactId>
328 <excludes>*.sh,*/*.sh,*/*/*.sh</excludes>
329 <outputDirectory>${win64outputdir}/eag</outputDirectory>
330 <overWriteReleases>false</overWriteReleases>
331 <overWriteSnapshots>true</overWriteSnapshots>
332 <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-antrun-plugin</artifactId>
344 <id>prepare-eag-openresty-linux</id>
345 <phase>prepare-package</phase>
351 <copy todir="${linux64outputdir}/eag/">
352 <fileset dir="${linux64outputdir}/eag/openresty"/>
355 dir="${linux64outputdir}/eag/openresty"
356 includeemptydirs="true"/>
362 <id>prepare-eag-openresty-win</id>
363 <phase>prepare-package</phase>
369 <copy todir="${win64outputdir}/eag/">
370 <fileset dir="${win64outputdir}/eag/openresty"/>
373 dir="${win64outputdir}/eag/openresty"
374 includeemptydirs="true"/>
381 <id>distribution</id>
382 <phase>package</phase>
387 <target name="distribution">
388 <tar destfile="${version.output}/${packageid}-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip">
389 <tarfileset dir="target/assembly/linux64" filemode="0644" dirmode="0755">
390 <exclude name="**/*.sh"/>
391 <exclude name="openresty/nginx/sbin/nginx"/>
392 <exclude name="redis/redis-*"/>
394 <tarfileset dir="target/assembly/linux64" filemode="0755" dirmode="0755">
395 <include name="**/*.sh"/>
396 <include name="openresty/nginx/sbin/nginx"/>
397 <include name="redis/redis-*"/>
400 <attachartifact file="${version.output}/${packageid}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/>
403 <zip destfile="${version.output}/${packageid}-${project.version}-win64.zip" update="true">
404 <zipfileset dir="target/assembly/win64" includes="**"/>
406 <attachartifact file="${version.output}/${packageid}-${project.version}-win64.zip" classifier="win64" type="zip"/>