| <?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> |
| |
| <groupId>com.baidu.hugegraph</groupId> |
| <artifactId>hugegraph-commons</artifactId> |
| <version>2.0.1</version> |
| <packaging>pom</packaging> |
| |
| <name>hugegraph-commons</name> |
| <url>https://github.com/hugegraph/hugegraph-commons</url> |
| <description> |
| hugegraph-commons is a common module for HugeGraph-Common and HugeGraph-Rpc with their peripheral components. |
| It includes rpc frame, locks, configurations, events, iterators, rest and some |
| numeric or collection util classes to simplify the development of HugeGraph and its components. |
| </description> |
| |
| <parent> |
| <groupId>org.sonatype.oss</groupId> |
| <artifactId>oss-parent</artifactId> |
| <version>7</version> |
| </parent> |
| |
| <licenses> |
| <license> |
| <name>The Apache Software License, Version 2.0</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| <distribution>repo</distribution> |
| </license> |
| </licenses> |
| |
| <scm> |
| <url>https://github.com/hugegraph/hugegraph-commons</url> |
| <connection>https://github.com/hugegraph/hugegraph-commons</connection> |
| <developerConnection>https://github.com/hugegraph/hugegraph-commons</developerConnection> |
| </scm> |
| |
| <developers> |
| <developer> |
| <name>lizhangmei</name> |
| <email>javaloveme@gmail.com</email> |
| </developer> |
| <developer> |
| <name>zhoney</name> |
| <email>zhangyi89817@126.com</email> |
| </developer> |
| <developer> |
| <name>liningrui</name> |
| <email>liningrui@vip.qq.com</email> |
| </developer> |
| </developers> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <top.level.dir>${project.basedir}/..</top.level.dir> |
| <compiler.source>1.8</compiler.source> |
| <compiler.target>1.8</compiler.target> |
| <log4j2.version>2.17.0</log4j2.version> |
| <commons.configuration.version>1.10</commons.configuration.version> |
| <commons.configuration2.version>2.1.1</commons.configuration2.version> |
| <commons.collections.version>3.2.2</commons.collections.version> |
| <commons.io.version>2.7</commons.io.version> |
| <commons.codec.version>1.11</commons.codec.version> |
| <guava.version>25.1-jre</guava.version> |
| <javax.json.version>1.0</javax.json.version> |
| <jsr305.version>3.0.1</jsr305.version> |
| <javassist.version>3.21.0-GA</javassist.version> |
| <jersey.version>2.22</jersey.version> |
| <jersey.hk2.version>2.27</jersey.hk2.version> |
| <jackson.version>2.12.1</jackson.version> |
| <junit.version>4.12</junit.version> |
| <mockito.version>2.25.1</mockito.version> |
| </properties> |
| |
| <modules> |
| <module>hugegraph-common</module> |
| <module>hugegraph-rpc</module> |
| </modules> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.1</version> |
| <configuration> |
| <source>${compiler.source}</source> |
| <target>${compiler.target}</target> |
| <compilerArguments> |
| <Xmaxerrs>500</Xmaxerrs> |
| </compilerArguments> |
| <compilerArgs> |
| <arg>-Xlint:unchecked</arg> |
| </compilerArgs> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>3.1.0</version> |
| <configuration> |
| <configLocation>checkstyle.xml</configLocation> |
| <encoding>UTF-8</encoding> |
| <consoleOutput>true</consoleOutput> |
| <failsOnError>true</failsOnError> |
| <linkXRef>false</linkXRef> |
| <includeTestSourceDirectory>false</includeTestSourceDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <id>validate</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.6</version> |
| <configuration> |
| <archive> |
| <index>true</index> |
| <manifest> |
| <addDefaultImplementationEntries> |
| false |
| </addDefaultImplementationEntries> |
| <addDefaultSpecificationEntries> |
| true |
| </addDefaultSpecificationEntries> |
| </manifest> |
| <manifestEntries> |
| <!-- Must be on one line, otherwise the automatic |
| upgrade script cannot replace the version number --> |
| <Implementation-Version>2.0.1.0</Implementation-Version> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>0.8.2</version> |
| <executions> |
| <execution> |
| <id>pre-unit-test</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>post-unit-test</id> |
| <phase>test</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>release</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>2.2.1</version> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>2.9.1</version> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-gpg-plugin</artifactId> |
| <version>1.5</version> |
| <executions> |
| <execution> |
| <id>sign-artifacts</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>sign</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <!-- Prevent `gpg` from using pinentry programs --> |
| <gpgArguments> |
| <arg>--pinentry-mode</arg> |
| <arg>loopback</arg> |
| </gpgArguments> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |