| <?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-server</artifactId> |
| <groupId>org.apache.hugegraph</groupId> |
| <version>${revision}</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>hugegraph-test</artifactId> |
| |
| <properties> |
| <skip.dump>true</skip.dump> |
| </properties> |
| |
| <dependencies> |
| <!-- Jacoco report-aggregate just statistics its directly dependent module, |
| so must explicitly import each submodule --> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hugegraph-core</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hugegraph-api</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hugegraph-cassandra</artifactId> |
| <version>${revision}</version> |
| </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-hbase</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-postgresql</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hugegraph</groupId> |
| <artifactId>hugegraph-dist</artifactId> |
| <version>${revision}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.tinkerpop</groupId> |
| <artifactId>gremlin-test</artifactId> |
| <version>${tinkerpop.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tinkerpop</groupId> |
| <artifactId>gremlin-groovy-test</artifactId> |
| <version>3.2.11</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.glassfish.jersey.test-framework.providers</groupId> |
| <artifactId>jersey-test-framework-provider-grizzly2</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>8.0.28</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.janeluo</groupId> |
| <artifactId>ikanalyzer</artifactId> |
| <version>2012_u6</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>lucene-analyzers-common</artifactId> |
| <groupId>org.apache.lucene</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>lucene-core</artifactId> |
| <groupId>org.apache.lucene</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- JMH --> |
| <dependency> |
| <groupId>org.openjdk.jmh</groupId> |
| <artifactId>jmh-core</artifactId> |
| <version>${jmh.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.openjdk.jmh</groupId> |
| <artifactId>jmh-generator-annprocess</artifactId> |
| <version>${jmh.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.20</version> |
| <executions> |
| <execution> |
| <id>core-test</id> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/CoreTestSuite.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>unit-test</id> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/UnitTestSuite.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>api-test</id> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/ApiTestSuite.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>tinkerpop-structure-test</id> |
| <configuration> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/StructureStandardTest.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>tinkerpop-process-test</id> |
| <configuration> |
| <!-- TinkerPop process ReadTest.Traversals.class need write/read disk --> |
| <argLine>-Dbuild.dir=${project.build.directory}</argLine> |
| <testSourceDirectory>${basedir}/src/main/java/ |
| </testSourceDirectory> |
| <testClassesDirectory>${basedir}/target/classes/ |
| </testClassesDirectory> |
| <includes> |
| <include>**/ProcessStandardTest.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${top.level.dir}</directory> |
| <excludes> |
| <exclude>${final.name}/**</exclude> |
| <exclude>*.tar.gz</exclude> |
| <exclude>*.zip</exclude> |
| <exclude>*.tar</exclude> |
| </excludes> |
| <followSymlinks>false</followSymlinks> |
| </fileset> |
| <fileset> |
| <directory>${final.name}</directory> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>0.8.8</version> |
| <configuration> |
| <excludes> |
| <exclude>org/apache/hugegraph/traversal/algorithm/*.class</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <id>pre-test</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>pull-test-data</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>dump</goal> |
| </goals> |
| <configuration> |
| <destFile>${project.build.directory}/jacoco-it.exec</destFile> |
| <address>${app.host}</address> |
| <port>${app.port}</port> |
| <reset>false</reset> |
| <skip>${skip.dump}</skip> |
| </configuration> |
| </execution> |
| <execution> |
| <id>post-test</id> |
| <phase>test</phase> |
| <goals> |
| <goal>report-aggregate</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/../target/site/jacoco</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <finalName>microbenchmarks</finalName> |
| <transformers> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.openjdk.jmh.Main</mainClass> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| <resources> |
| <resource> |
| <directory>src/main/resources/</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>memory</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <properties> |
| <backend>memory</backend> |
| <serializer>text</serializer> |
| </properties> |
| </profile> |
| <profile> |
| <id>cassandra</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <backend>cassandra</backend> |
| <serializer>cassandra</serializer> |
| </properties> |
| </profile> |
| <profile> |
| <id>scylladb</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <backend>scylladb</backend> |
| <serializer>scylladb</serializer> |
| </properties> |
| </profile> |
| <profile> |
| <id>rocksdb</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <backend>rocksdb</backend> |
| <serializer>binary</serializer> |
| </properties> |
| </profile> |
| <profile> |
| <id>mysql</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <backend>mysql</backend> |
| <serializer>mysql</serializer> |
| </properties> |
| </profile> |
| <profile> |
| <id>palo</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <backend>palo</backend> |
| <serializer>palo</serializer> |
| </properties> |
| </profile> |
| <profile> |
| <id>hbase</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <backend>hbase</backend> |
| <serializer>hbase</serializer> |
| </properties> |
| </profile> |
| <profile> |
| <id>postgresql</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <backend>postgresql</backend> |
| <serializer>postgresql</serializer> |
| </properties> |
| </profile> |
| </profiles> |
| </project> |