Skip to content
Permalink
Browse files
feat: introduce hugegraph-dist module (#279)
  • Loading branch information
simon824 committed May 16, 2022
1 parent 6287b0e commit 7c39453ddf9855681fca304f4bd409d4a3952ab0
Showing 2 changed files with 76 additions and 0 deletions.
@@ -0,0 +1,75 @@
<?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/hubble-dist/*
ls ${project.parent.basedir}/hugegraph-loader/*
ls ${project.parent.basedir}/hugegraph-tools/*

\cp -r ${project.parent.basedir}/hugegraph-hubble/hubble-dist/hugegraph-hubble-${project.version} ${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>
@@ -41,6 +41,7 @@
<module>hugegraph-hubble</module>
<module>hugegraph-loader</module>
<module>hugegraph-tools</module>
<module>hugegraph-dist</module>
</modules>

<properties>

0 comments on commit 7c39453

Please sign in to comment.