forked from hugegraph/hugegraph-sync
149 lines
6.3 KiB
XML
149 lines
6.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with this
|
|
work for additional information regarding copyright ownership. The ASF
|
|
licenses this file to You under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
License for the specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>hugegraph-pd-root</artifactId>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<version>${revision}</version>
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>hg-pd-dist</artifactId>
|
|
|
|
<properties>
|
|
<dist.dir>${project.parent.basedir}/dist</dist.dir>
|
|
<shell-executable>bash</shell-executable>
|
|
<assembly.dir>${project.basedir}/src/assembly</assembly.dir>
|
|
<assembly.descriptor.dir>${assembly.dir}/descriptor</assembly.descriptor.dir>
|
|
<assembly.static.dir>${assembly.dir}/static</assembly.static.dir>
|
|
<final.name>hugegraph-pd-${project.parent.version}</final.name>
|
|
<executable.jar.name>hugegraph-pd</executable.jar.name>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-pd</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.4</version>
|
|
<executions>
|
|
<execution>
|
|
<id>assembly-hugegraph-pd</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<attach>false</attach>
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
<outputDirectory>${dist.dir}</outputDirectory>
|
|
<descriptors>
|
|
<descriptor>
|
|
${assembly.descriptor.dir}/server-assembly.xml
|
|
</descriptor>
|
|
</descriptors>
|
|
<finalName>${final.name}</finalName>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${dist.dir}</directory>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>clean</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.3</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
|
|
classpathref="maven.plugin.classpath"/>
|
|
<if>
|
|
<contains string="${os.name}" substring="Linux"/>
|
|
<then>
|
|
<echo file="${dist.dir}/dist.sh">
|
|
tar -zcvf \
|
|
${dist.dir}/${final.name}.tar.gz \
|
|
${final.name} || exit 1
|
|
rm -f ${dist.dir}/dist.sh
|
|
rm -rf ${dist.dir}/${final.name}
|
|
echo
|
|
echo "HugeGraph dist tar.gz available at:
|
|
${dist.dir}/${final.name}.tar.gz"
|
|
echo
|
|
</echo>
|
|
<exec executable="${shell-executable}"
|
|
dir="${dist.dir}" failonerror="true">
|
|
<arg line="./dist.sh"/>
|
|
</exec>
|
|
</then>
|
|
</if>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ant-contrib</groupId>
|
|
<artifactId>ant-contrib</artifactId>
|
|
<version>1.0b3</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ant</groupId>
|
|
<artifactId>ant</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|