| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed 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. See accompanying LICENSE file. |
| --> |
| <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.hadoop</groupId> |
| <artifactId>hadoop-project-dist</artifactId> |
| <version>3.0.0-SNAPSHOT</version> |
| <relativePath>../../hadoop-project-dist</relativePath> |
| </parent> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfsdb</artifactId> |
| <version>3.0.0-SNAPSHOT</version> |
| <name>Apache Hadoop HDFSDB</name> |
| <description>Apache Hadoop HDFSDB</description> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>native-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>compile</phase> |
| <goals> |
| <goal>javah</goal> |
| </goals> |
| <configuration> |
| <javahPath>${env.JAVA_HOME}/bin/javah</javahPath> |
| <javahClassNames> |
| <javahClassName>org.apache.hadoop.hdfs.hdfsdb.NativeObject</javahClassName> |
| <javahClassName>org.apache.hadoop.hdfs.hdfsdb.DB</javahClassName> |
| <javahClassName>org.apache.hadoop.hdfs.hdfsdb.Iterator</javahClassName> |
| <javahClassName>org.apache.hadoop.hdfs.hdfsdb.Options</javahClassName> |
| <javahClassName>org.apache.hadoop.hdfs.hdfsdb.ReadOptions</javahClassName> |
| <javahClassName>org.apache.hadoop.hdfs.hdfsdb.WriteOptions</javahClassName> |
| <javahClassName>org.apache.hadoop.hdfs.hdfsdb.WriteBatch</javahClassName> |
| </javahClassNames> |
| <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>make</id> |
| <phase>compile</phase> |
| <goals><goal>run</goal></goals> |
| <configuration> |
| <target> |
| <mkdir dir="${project.build.directory}/native"/> |
| <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true"> |
| <arg line="${basedir}/src/main/native"/> |
| </exec> |
| <exec executable="make" dir="${project.build.directory}/native" failonerror="true"/> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |