blob: 47c5c1c1f33f131cd3f03860a0303e400a054fc4 [file]
<!--
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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>tinkerpop</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>tinkergraph-gremlin</artifactId>
<name>Apache TinkerPop :: TinkerGraph Gremlin</name>
<dependencies>
<dependency>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-test</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<directory>${basedir}/target</directory>
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<!--
Adds a minimal TinkerGraph jar with the "min" classifier stripping out sample data files which bloat
up the jar. This jar will not be able to load these files via TinkerFactory convenience methods.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>min-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>min</classifier>
<excludes>
<exclude>org/apache/tinkerpop/gremlin/tinkergraph/structure/air-routes.kryo</exclude>
<exclude>org/apache/tinkerpop/gremlin/tinkergraph/structure/grateful-dead.kryo</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>io</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>io</name>
</property>
</activation>
<properties>
<io.tmp.dir>${project.build.directory}/test-case-data/TinkerGraphTest/tinkerpop-io</io.tmp.dir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/IoDataGenerationTest.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<id>copy-all-from-tmp-to-data</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>../data</outputDirectory>
<resources>
<resource>
<directory>${io.tmp.dir}</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*-normalized*.json</exclude>
<exclude>**/sample.kryo</exclude>
<exclude>**/*v1d0*</exclude>
<exclude>**/*v2d0*</exclude>
<exclude>**/*v3d0*</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-gratefuldead-to-tinkergraph-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>src/main/resources/org/apache/tinkerpop/gremlin/tinkergraph/structure</outputDirectory>
<resources>
<resource>
<directory>${io.tmp.dir}</directory>
<filtering>false</filtering>
<includes>
<include>grateful-dead.kryo</include>
<include>air-routes.kryo</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-gio-from-tmp-to-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
../gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/gryo
</outputDirectory>
<resources>
<resource>
<directory>${io.tmp.dir}</directory>
<filtering>false</filtering>
<includes>
<include>**/*v*d*.kryo</include>
</includes>
</resource>
</resources>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>kryo</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</execution>
<execution>
<id>copy-gio-from-tmp-to-gremlinserver</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
../gremlin-server/data
</outputDirectory>
<resources>
<resource>
<directory>${io.tmp.dir}</directory>
<filtering>false</filtering>
<includes>
<include>**/sample.kryo</include>
</includes>
</resource>
</resources>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>kryo</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</execution>
<execution>
<id>copy-graphson-from-tmp-to-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
../gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphson
</outputDirectory>
<resources>
<resource>
<directory>${io.tmp.dir}</directory>
<filtering>false</filtering>
<includes>
<include>**/*v*d*.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-graphml-from-tmp-to-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
../gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/structure/io/graphml
</outputDirectory>
<resources>
<resource>
<directory>${io.tmp.dir}</directory>
<filtering>false</filtering>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>