|
| 1 | +<?xml version="1.0"?> |
| 2 | +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 3 | + license agreements. See the NOTICE file distributed with this work for additional |
| 4 | + information regarding copyright ownership. The ASF licenses this file to |
| 5 | + You under the Apache License, Version 2.0 (the "License"); you may not use |
| 6 | + this file except in compliance with the License. You may obtain a copy of |
| 7 | + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 8 | + by applicable law or agreed to in writing, software distributed under the |
| 9 | + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 10 | + OF ANY KIND, either express or implied. See the License for the specific |
| 11 | + language governing permissions and limitations under the License. --> |
| 12 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 13 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 14 | +<modelVersion>4.0.0</modelVersion> |
| 15 | + |
| 16 | +<parent> |
| 17 | + <artifactId>arrow-java-root</artifactId> |
| 18 | + <groupId>org.apache.arrow</groupId> |
| 19 | + <version>0.1-decimal</version> |
| 20 | +</parent> |
| 21 | + |
| 22 | +<artifactId>arrow-format</artifactId> |
| 23 | +<packaging>jar</packaging> |
| 24 | +<name>Arrow Format</name> |
| 25 | + |
| 26 | + <properties> |
| 27 | + <fbs.version>1.2.0-3f79e055</fbs.version> |
| 28 | + <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version> |
| 29 | + <maven-dependency-plugin.version>2.10</maven-dependency-plugin.version> |
| 30 | + <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version> |
| 31 | + </properties> |
| 32 | + |
| 33 | + <dependencies> |
| 34 | + <dependency> |
| 35 | + <groupId>com.vlkan</groupId> |
| 36 | + <artifactId>flatbuffers</artifactId> |
| 37 | + <version>${fbs.version}</version> |
| 38 | + </dependency> |
| 39 | + </dependencies> |
| 40 | + |
| 41 | + <build> |
| 42 | + <extensions> |
| 43 | + <!-- provides os.detected.classifier (i.e. linux-x86_64, osx-x86_64) property --> |
| 44 | + <extension> |
| 45 | + <groupId>kr.motd.maven</groupId> |
| 46 | + <artifactId>os-maven-plugin</artifactId> |
| 47 | + <version>${os-maven-plugin.version}</version> |
| 48 | + </extension> |
| 49 | + </extensions> |
| 50 | + |
| 51 | + <plugins> |
| 52 | + <plugin> |
| 53 | + <groupId>org.apache.maven.plugins</groupId> |
| 54 | + <artifactId>maven-dependency-plugin</artifactId> |
| 55 | + <version>${maven-dependency-plugin.version}</version> |
| 56 | + <executions> |
| 57 | + <execution> |
| 58 | + <id>copy-flatc</id> |
| 59 | + <phase>generate-sources</phase> |
| 60 | + <goals> |
| 61 | + <goal>copy</goal> |
| 62 | + </goals> |
| 63 | + <configuration> |
| 64 | + <artifactItems> |
| 65 | + <artifactItem> |
| 66 | + <groupId>com.vlkan</groupId> |
| 67 | + <artifactId>flatc-${os.detected.classifier}</artifactId> |
| 68 | + <version>${fbs.version}</version> |
| 69 | + <type>exe</type> |
| 70 | + <overWrite>true</overWrite> |
| 71 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 72 | + </artifactItem> |
| 73 | + </artifactItems> |
| 74 | + </configuration> |
| 75 | + </execution> |
| 76 | + </executions> |
| 77 | + </plugin> |
| 78 | + <plugin> |
| 79 | + <groupId>org.codehaus.mojo</groupId> |
| 80 | + <artifactId>exec-maven-plugin</artifactId> |
| 81 | + <version>1.4.0</version> |
| 82 | + <executions> |
| 83 | + <execution> |
| 84 | + <id>script-chmod</id> |
| 85 | + <goals> |
| 86 | + <goal>exec</goal> |
| 87 | + </goals> |
| 88 | + <phase>generate-sources</phase> |
| 89 | + <configuration> |
| 90 | + <executable>chmod</executable> |
| 91 | + <arguments> |
| 92 | + <argument>+x</argument> |
| 93 | + <argument>${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe</argument> |
| 94 | + </arguments> |
| 95 | + </configuration> |
| 96 | + </execution> |
| 97 | + <execution> |
| 98 | + <goals> |
| 99 | + <goal>exec</goal> |
| 100 | + </goals> |
| 101 | + <phase>generate-sources</phase> |
| 102 | + <configuration> |
| 103 | + <executable>${project.build.directory}/flatc-${os.detected.classifier}-${fbs.version}.exe</executable> |
| 104 | + <arguments> |
| 105 | + <argument>-j</argument> |
| 106 | + <argument>-o</argument> |
| 107 | + <argument>target/generated-sources/</argument> |
| 108 | + <argument>../../format/Message.fbs</argument> |
| 109 | + </arguments> |
| 110 | + </configuration> |
| 111 | + </execution> |
| 112 | + </executions> |
| 113 | + </plugin> |
| 114 | + <plugin> |
| 115 | + <groupId>com.mycila</groupId> |
| 116 | + <artifactId>license-maven-plugin</artifactId> |
| 117 | + <version>2.3</version> |
| 118 | + <configuration> |
| 119 | + <header>${basedir}/../../header</header> |
| 120 | + <includes> |
| 121 | + <include>**/*.java</include> |
| 122 | + </includes> |
| 123 | + </configuration> |
| 124 | + <executions> |
| 125 | + <execution> |
| 126 | + <phase>process-sources</phase> |
| 127 | + <goals> |
| 128 | + <goal>format</goal> |
| 129 | + </goals> |
| 130 | + </execution> |
| 131 | + </executions> |
| 132 | + </plugin> |
| 133 | + <plugin> |
| 134 | + <groupId>org.codehaus.mojo</groupId> |
| 135 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 136 | + <version>1.9.1</version> |
| 137 | + <executions> |
| 138 | + <execution> |
| 139 | + <id>add-sources-as-resources</id> |
| 140 | + <phase>generate-sources</phase> |
| 141 | + <goals> |
| 142 | + <goal>add-source</goal> |
| 143 | + </goals> |
| 144 | + <configuration> |
| 145 | + <sources> |
| 146 | + <source>${project.build.directory}/generated-sources</source> |
| 147 | + </sources> |
| 148 | + </configuration> |
| 149 | + </execution> |
| 150 | + </executions> |
| 151 | + </plugin> |
| 152 | + <plugin> |
| 153 | + <groupId>org.apache.maven.plugins</groupId> |
| 154 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 155 | + <configuration> |
| 156 | + <skip>true</skip> |
| 157 | + </configuration> |
| 158 | + </plugin> |
| 159 | + </plugins> |
| 160 | + |
| 161 | +</build> |
| 162 | +</project> |
| 163 | + |
0 commit comments