| <?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 |
| 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>trevni-java</artifactId> |
| <groupId>org.apache.avro</groupId> |
| <version>1.8.3-SNAPSHOT</version> |
| <relativePath>../</relativePath> |
| </parent> |
| |
| <artifactId>trevni-avro</artifactId> |
| <name>Trevni Java Avro</name> |
| <url>http://avro.apache.org/</url> |
| <description>Trevni Java Avro</description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>trevni-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>trevni-core</artifactId> |
| <classifier>tests</classifier> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>main</id> |
| <goals><goal>jar</goal></goals> |
| <phase>package</phase> |
| </execution> |
| <execution> |
| <id>with-classifier</id> |
| <goals><goal>jar</goal></goals> |
| <phase>package</phase> |
| <configuration> |
| <classifier>${envClassifier}</classifier> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>hadoop1</id> |
| <activation> |
| <property> |
| <name>hadoop.version</name> |
| <value>1</value> |
| </property> |
| </activation> |
| <properties> |
| <envClassifier>hadoop1</envClassifier> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-core</artifactId> |
| <version>${hadoop1.version}</version> |
| <!-- hadoop's execution environment provides its own jars, usurping any others. |
| So we should not include it here --> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro-mapred</artifactId> |
| <version>${project.version}</version> |
| <classifier>hadoop1</classifier> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <id>hadoop2</id> |
| <activation> |
| <property> |
| <name>hadoop.version</name> |
| <value>!1</value> <!-- if hadoop.version is not 1 (or not set) --> |
| </property> |
| </activation> |
| <properties> |
| <envClassifier>hadoop2</envClassifier> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <version>${hadoop2.version}</version> |
| <!-- hadoop's execution environment provides its own jars, usurping any others. |
| So we should not include it here --> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro-mapred</artifactId> |
| <version>${project.version}</version> |
| <classifier>hadoop2</classifier> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro</artifactId> |
| <version>${project.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| </project> |
| |