Skip to content

Commit

Permalink
feat: introduce hugegraph-dist module (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon824 authored May 16, 2022
1 parent 6287b0e commit 7c39453
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
75 changes: 75 additions & 0 deletions hugegraph-dist/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<module>hugegraph-hubble</module>
<module>hugegraph-loader</module>
<module>hugegraph-tools</module>
<module>hugegraph-dist</module>
</modules>

<properties>
Expand Down

0 comments on commit 7c39453

Please sign in to comment.