blob: c29e5c75831ae46c6beeaf05490d50f3be07faab [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-toolchain</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hugegraph-dist</artifactId>
<properties>
<release.name>${project.parent.artifactId}</release.name>
<final.name>${release.name}-${project.version}</final.name>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo file="${project.basedir}/dist.sh">
ls ${project.parent.basedir}/hugegraph-hubble/*
ls ${project.parent.basedir}/hugegraph-loader/*
ls ${project.parent.basedir}/hugegraph-tools/*
\cp -r ${project.parent.basedir}/hugegraph-hubble/hugegraph-hubble ${project.basedir}
\cp -r ${project.parent.basedir}/hugegraph-loader/hugegraph-loader-${project.version} ${project.basedir}
\cp -r ${project.parent.basedir}/hugegraph-tools/hugegraph-tools-${project.version} ${project.basedir}
tar -zcvf ${project.parent.basedir}/${final.name}.tar.gz \
hugegraph-hubble hugegraph-loader-* hugegraph-tools-* || exit 1
md5sum ${project.parent.basedir}/${final.name}.tar.gz
echo -n "hugegraph-toolchain tar.gz available at: "
echo "${project.parent.basedir}/${final.name}.tar.gz"
rm -f ${project.basedir}/dist.sh
</echo>
<exec executable="${shell-executable}" dir="${project.basedir}" failonerror="true">
<arg line="./dist.sh"/>
</exec>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<filesets>
<fileset>
<directory>${project.parent.basedir}</directory>
<includes>
<include>${final.name}.tar.gz</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
</project>