| <?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 |
| |
| https://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 |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <artifactId>avro-parent</artifactId> |
| <groupId>org.apache.avro</groupId> |
| <version>1.9.1</version> |
| <relativePath>../</relativePath> |
| </parent> |
| |
| <artifactId>avro-thrift</artifactId> |
| |
| <name>Apache Avro Thrift Compatibility</name> |
| <description>Permit serialization of Thrift-generated classes as Avro data.</description> |
| <packaging>bundle</packaging> |
| |
| <properties> |
| <main.basedir>${project.parent.parent.basedir}</main.basedir> |
| <osgi.import> |
| !org.apache.avro.thrift*, |
| org.apache.avro*;version="${project.version}", |
| org.apache.thrift*, |
| * |
| </osgi.import> |
| <osgi.export>org.apache.avro.thrift*;version="${project.version}"</osgi.export> |
| </properties> |
| |
| <profiles> |
| <profile> |
| <id>thrift-generate</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>${antrun-plugin.version}</version> |
| <executions> |
| <execution> |
| <phase>generate-test-sources</phase> |
| <configuration> |
| <tasks> |
| <mkdir dir="target/thrift-tmp"/> |
| <exec executable="thrift"> |
| <arg value="--gen"/> |
| <arg value="java:beans"/> |
| <arg value="-o"/> |
| <arg value="target/thrift-tmp"/> |
| <arg value="src/test/thrift/test.thrift"/> |
| </exec> |
| <copy todir="src/test/java" overwrite="true"> |
| <fileset dir="target/thrift-tmp/gen-javabean"/> |
| </copy> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestEntries> |
| <Automatic-Module-Name>org.apache.avro.thrift</Automatic-Module-Name> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>avro</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>${thrift.version}</version> |
| </dependency> |
| </dependencies> |
| |
| </project> |