| <!-- |
| 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>3.1.2-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> |
| <!-- provided scope for gremlin-groovy because it is only used for purpose of scriptengine plugin in |
| the console and server - in which case that jar should already be present --> |
| <dependency> |
| <groupId>org.apache.tinkerpop</groupId> |
| <artifactId>gremlin-groovy</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tinkerpop</groupId> |
| <artifactId>gremlin-groovy-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> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>io</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>io</name> |
| </property> |
| </activation> |
| |
| <properties> |
| <io.tmp.dir>${project.build.directory}/tinkerpop-io</io.tmp.dir> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.17</version> |
| <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> |
| </excludes> |
| </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>**/*.kryo</include> |
| </includes> |
| <excludes> |
| <exclude>**/sample.kryo</exclude> |
| </excludes> |
| </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>**/*.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> |