| <?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/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-main</artifactId> |
| <version>0.5-incubating</version> |
| </parent> |
| <artifactId>falcon-oozie-adaptor</artifactId> |
| <description>Apache Falcon Oozie Adaptor Module</description> |
| <name>Apache Falcon Oozie Adaptor</name> |
| <packaging>jar</packaging> |
| |
| <profiles> |
| <profile> |
| <id>hadoop-1</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-core</artifactId> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.5</version> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.basedir}/src/versioned-src/v1/java</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>hadoop-2</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-oozie-el-extension</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-messaging</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-common</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-test-util</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-client</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-client</artifactId> |
| <outputDirectory>${project.build.directory}/oozie-schemas</outputDirectory> |
| <includes>**/*.xsd</includes> |
| <excludes>**/*.class</excludes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.jvnet.jaxb2.maven2</groupId> |
| <artifactId>maven-jaxb2-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>coord-gen</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <forceRegenerate>true</forceRegenerate> |
| <generatePackage>org.apache.falcon.oozie.coordinator</generatePackage> |
| <schemas> |
| <schema> |
| <dependencyResource> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-client</artifactId> |
| <resource>oozie-coordinator-0.3.xsd</resource> |
| </dependencyResource> |
| </schema> |
| </schemas> |
| </configuration> |
| </execution> |
| <execution> |
| <id>wf-gen</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <!-- Uses workflow xsd from unpacked oozie client jar to customize jaxb binding. |
| jaxb binding is required to avoid 'Property "Any" is already defined' error--> |
| <forceRegenerate>true</forceRegenerate> |
| <generatePackage>org.apache.falcon.oozie.workflow</generatePackage> |
| <bindingDirectory>src/main/resources/binding</bindingDirectory> |
| <schemaDirectory>${project.build.directory}/oozie-schemas</schemaDirectory> |
| <schemaIncludes> |
| <include>oozie-workflow-0.3.xsd</include> |
| </schemaIncludes> |
| <debug>true</debug> |
| </configuration> |
| </execution> |
| <execution> |
| <id>hive-gen</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <forceRegenerate>true</forceRegenerate> |
| <generatePackage>org.apache.falcon.oozie.hive</generatePackage> |
| <schemas> |
| <schema> |
| <dependencyResource> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-client</artifactId> |
| <resource>hive-action-0.2.xsd</resource> |
| </dependencyResource> |
| </schema> |
| </schemas> |
| </configuration> |
| </execution> |
| <execution> |
| <id>bundle-gen</id> |
| <goals> |
| <goal>generate</goal> |
| </goals> |
| <configuration> |
| <forceRegenerate>true</forceRegenerate> |
| <generatePackage>org.apache.falcon.oozie.bundle</generatePackage> |
| <schemas> |
| <schema> |
| <dependencyResource> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-client</artifactId> |
| <resource>oozie-bundle-0.1.xsd</resource> |
| </dependencyResource> |
| </schema> |
| </schemas> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.6</source> |
| <target>1.6</target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |