forked from hugegraph/hugegraph-sync
219 lines
9.0 KiB
XML
219 lines
9.0 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="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">
|
|
<parent>
|
|
<artifactId>hugegraph</artifactId>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<version>${revision}</version>
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<name>hugegraph-dist</name>
|
|
<artifactId>hugegraph-dist</artifactId>
|
|
|
|
<properties>
|
|
<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>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-core</artifactId>
|
|
<version>${revision}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>metrics-core</artifactId>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-api</artifactId>
|
|
<version>${revision}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>metrics-core</artifactId>
|
|
<groupId>com.codahale.metrics</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-cassandra</artifactId>
|
|
<version>${revision}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>metrics-core</artifactId>
|
|
<groupId>io.dropwizard.metrics</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-scylladb</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-rocksdb</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-mysql</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-palo</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-hbase</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.hugegraph</groupId>
|
|
<artifactId>hugegraph-postgresql</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.tinkerpop</groupId>
|
|
<artifactId>gremlin-console</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.github.jeremyh</groupId>
|
|
<artifactId>jBCrypt</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>${basedir}/src/assembly/static</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
<resource>
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
<filtering>false</filtering>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.4</version>
|
|
<executions>
|
|
<execution>
|
|
<id>assembly-hugegraph</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<attach>false</attach>
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
<outputDirectory>${top.level.dir}
|
|
</outputDirectory>
|
|
<descriptor>
|
|
${assembly.descriptor.dir}/assembly.xml
|
|
</descriptor>
|
|
<finalName>${final.name}</finalName>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${top.level.dir}</directory>
|
|
<includes>
|
|
<include>*.tar.gz</include>
|
|
<include>.flattened-pom.xml</include>
|
|
<!--<include>${final.name}/**</include>-->
|
|
</includes>
|
|
<followSymlinks>false</followSymlinks>
|
|
</fileset>
|
|
<fileset>
|
|
<directory>${final.name}</directory>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>download-swagger-ui</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<echo file="${project.basedir}/dist.sh">
|
|
wget --version 1>/dev/null || exit
|
|
wget https://github.com/swagger-api/swagger-ui/archive/refs/tags/v4.15.5.tar.gz
|
|
tar zxvf v4.15.5.tar.gz
|
|
echo "window.onload = function() { window.ui = SwaggerUIBundle({
|
|
url:'/openapi.json',dom_id:'#swagger-ui',deepLinking:true,layout:'StandaloneLayout',
|
|
presets:[SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ],
|
|
plugins:[SwaggerUIBundle.plugins.DownloadUrl]});};" > swagger-ui-4.15.5/dist/swagger-initializer.js
|
|
cp -r swagger-ui-4.15.5/dist ../${final.name}/swagger-ui
|
|
</echo>
|
|
<exec executable="${shell-executable}" dir="${project.basedir}" failonerror="true">
|
|
<arg line="./dist.sh"/>
|
|
</exec>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<tar destfile="${final.destfile}" compression="gzip">
|
|
<tarfileset dir="${top.level.dir}/" filemode="755">
|
|
<include name="${final.name}/**"/>
|
|
</tarfileset>
|
|
</tar>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|