| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.graphar</groupId> |
| <artifactId>graphar-root</artifactId> |
| <version>${graphar.version}</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>java</artifactId> |
| <packaging>jar</packaging> |
| <version>0.13.0.dev-SNAPSHOT</version> |
| |
| <name>java</name> |
| |
| <properties> |
| <native.library.name>java</native.library.name> |
| <maven.compiler.source>8</maven.compiler.source> |
| <maven.compiler.target>8</maven.compiler.target> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <maven-antrun-plugin.version>3.0.0</maven-antrun-plugin.version> |
| <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
| <maven-shade-plugin.version>3.3.0</maven-shade-plugin.version> |
| <fastffi.revision>0.1.2</fastffi.revision> |
| <arrow.version>13.0.0</arrow.version> |
| <maven-source-plugin.version>2.2.1</maven-source-plugin.version> |
| <maven.javadoc.version>3.4.0</maven.javadoc.version> |
| <javadoc.output.directory>graphar-javadoc</javadoc.output.directory> |
| <javadoc.output.destDir>graphar-javadoc</javadoc.output.destDir> |
| <buildGarCPP>ON</buildGarCPP> |
| </properties> |
| |
| <dependencies> |
| <!-- The FFI annotation --> |
| <dependency> |
| <groupId>com.alibaba.fastffi</groupId> |
| <artifactId>ffi</artifactId> |
| <version>${fastffi.revision}</version> |
| </dependency> |
| <!-- The FFI annotation processor for code generation --> |
| <dependency> |
| <groupId>com.alibaba.fastffi</groupId> |
| <artifactId>annotation-processor</artifactId> |
| <version>${fastffi.revision}</version> |
| </dependency> |
| <!-- The runtime component of LLVM4JNI --> |
| <dependency> |
| <groupId>com.alibaba.fastffi</groupId> |
| <artifactId>llvm4jni-runtime</artifactId> |
| <version>${fastffi.revision}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.alibaba.fastffi</groupId> |
| <artifactId>llvm4jni</artifactId> |
| <version>${fastffi.revision}</version> |
| <classifier>${os.detected.classifier}</classifier> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.alibaba.fastffi</groupId> |
| <artifactId>llvm</artifactId> |
| <classifier>${os.detected.classifier}</classifier> |
| <version>${fastffi.revision}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-c-data</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-vector</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-memory-netty</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-dataset</artifactId> |
| <version>${arrow.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.13.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| <version>1.7.25</version> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <extensions> |
| <extension> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>1.7.0</version> |
| </extension> |
| </extensions> |
| <plugins> |
| <plugin> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>1.7.0</version> |
| <executions> |
| <execution> |
| <phase>initialize</phase> |
| <goals> |
| <goal>detect</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>make-and-link-bitcode</id> |
| <phase>compile</phase> |
| <goals><goal>run</goal></goals> |
| <configuration> |
| <target> |
| <property name="compile_classpath" refid="maven.compile.classpath"/> |
| <property name="build_gar_cpp" value="${buildGarCPP}"/> |
| <ant antfile="${basedir}/build.xml"> |
| <target name="run-llvm4jni" /> |
| </ant> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.8.0</version> |
| <configuration> |
| <compilerVersion>1.8</compilerVersion> |
| <source>1.8</source> |
| <target>1.8</target> |
| <compilerArgs> |
| <arg>-Afastffi.strictTypeCheck=true</arg> |
| </compilerArgs> |
| </configuration> |
| </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>${uberjar.name}</finalName> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.openjdk.jmh.Main</mainClass> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| </transformers> |
| <filters> |
| <filter> |
| <!-- |
| Shading signed JARs will fail without this. |
| http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar |
| --> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <environmentVariables> |
| <LD_LIBRARY_PATH>${project.basedir}/target/native</LD_LIBRARY_PATH> |
| </environmentVariables> |
| <argLine>-Djava.library.path=${project.basedir}/target/native</argLine> |
| </configuration> |
| </plugin> |
| </plugins> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>2.5</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <version>2.8.1</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-install-plugin</artifactId> |
| <version>2.5.1</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>3.2.2</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <classifier>${os.detected.classifier}</classifier> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-install-plugin</artifactId> |
| <version>2.5.2</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>${maven.javadoc.version}</version> |
| <configuration> |
| <groups> |
| <group> |
| <title>GarphAr</title> |
| <packages>org.apache.graphar*</packages> |
| </group> |
| </groups> |
| <sourceFileExcludes> |
| <sourceFileExclude>**/*GenGen.java</sourceFileExclude> |
| <sourceFileExclude>**/Unused*.java</sourceFileExclude> |
| </sourceFileExcludes> |
| <reportOutputDirectory>${javadoc.output.directory}</reportOutputDirectory> |
| <destDir>${javadoc.output.destDir}</destDir> |
| <failOnError>false</failOnError> |
| <failOnWarnings>false</failOnWarnings> |
| <locale>en_US</locale> |
| </configuration> |
| <executions> |
| <execution> |
| <id>attach-javadocs</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.6</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>3.7.1</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>2.2.1</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>3.0.0-M5</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>3.0.0</version> |
| </plugin> |
| <plugin> |
| <groupId>com.diffplug.spotless</groupId> |
| <artifactId>spotless-maven-plugin</artifactId> |
| <version>${spotless-maven-plugin.version}</version> |
| <configuration> |
| <java> |
| <googleJavaFormat> |
| <version>1.7</version> |
| <style>AOSP</style> |
| </googleJavaFormat> |
| </java> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| </project> |