| <?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>hudi-metaserver</artifactId> |
| <groupId>org.apache.hudi</groupId> |
| <version>0.13.1</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>hudi-metaserver-server</artifactId> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <main.basedir>${project.parent.basedir}</main.basedir> |
| <mybatis.version>3.4.6</mybatis.version> |
| <HikariCP.version>4.0.3</HikariCP.version> |
| <mysql-connector-java.version>8.0.22</mysql-connector-java.version> |
| </properties> |
| |
| <dependencies> |
| <!-- Apache License 2.0 https://github.com/mybatis/mybatis-3/blob/master/LICENSE--> |
| <dependency> |
| <groupId>org.mybatis</groupId> |
| <artifactId>mybatis</artifactId> |
| <version>${mybatis.version}</version> |
| </dependency> |
| <!-- Apache License 2.0 https://github.com/brettwooldridge/HikariCP/blob/dev/LICENSE--> |
| <dependency> |
| <groupId>com.zaxxer</groupId> |
| <artifactId>HikariCP</artifactId> |
| <version>${HikariCP.version}</version> |
| </dependency> |
| <!-- The GNU General Public License, Version 2 https://github.com/mysql/mysql-connector-j/blob/release/8.0/LICENSE--> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>${mysql-connector-java.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>thrift-gen-source</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.thrift.tools</groupId> |
| <artifactId>maven-thrift-plugin</artifactId> |
| <version>${maven-thrift-plugin.version}</version> |
| <configuration> |
| <thriftExecutable>${thrift.home}/bin/thrift</thriftExecutable> |
| <thriftSourceRoot>${project.parent.basedir}/src/main/thrift</thriftSourceRoot> |
| <outputDirectory>${project.parent.basedir}/target/generated-sources/gen-java</outputDirectory> |
| <generator>java</generator> |
| </configuration> |
| <executions> |
| <execution> |
| <id>thrift-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.6.0</version> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>m1-mac</id> |
| <properties> |
| <thrift.install.env>m1_mac</thrift.install.env> |
| </properties> |
| <activation> |
| <os> |
| <family>mac</family> |
| <arch>aarch64</arch> |
| </os> |
| </activation> |
| </profile> |
| </profiles> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.6.0</version> |
| <executions> |
| <execution> |
| <id>thrift-install-and-generate-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <executable>${project.parent.basedir}/src/main/thrift/bin/thrift_binary.sh</executable> |
| <arguments> |
| <argument>${thrift.install.env}</argument> |
| </arguments> |
| <skip>false</skip> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |