| <?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.oozie</groupId> |
| <artifactId>oozie-main</artifactId> |
| <version>3.1.4</version> |
| </parent> |
| <artifactId>oozie-core</artifactId> |
| <description>Oozie Core</description> |
| <name>Oozie Core</name> |
| <packaging>jar</packaging> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-client</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-persistence</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-jdbc</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-persistence-jdbc</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.persistence</groupId> |
| <artifactId>persistence-api</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.oozie</groupId> |
| <artifactId>oozie-sharelib</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.googlecode.json-simple</groupId> |
| <artifactId>json-simple</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-el</groupId> |
| <artifactId>commons-el</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jdom</groupId> |
| <artifactId>jdom</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-dbcp</groupId> |
| <artifactId>commons-dbcp</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>hsqldb</groupId> |
| <artifactId>hsqldb</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.python</groupId> |
| <artifactId>jython</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.antlr</groupId> |
| <artifactId>antlr-runtime</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- |
| Oozie web-app module must exclude it. |
| --> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet.jsp</groupId> |
| <artifactId>jsp-api</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.mail</groupId> |
| <artifactId>mail</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-auth</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.icegreen</groupId> |
| <artifactId>greenmail</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>postgresql</groupId> |
| <artifactId>postgresql</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <testResources> |
| <testResource> |
| <directory>${basedir}/src/test/resources</directory> |
| </testResource> |
| </testResources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <descriptors> |
| <descriptor>../src/main/assemblies/empty.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>create-mrapp-generated-classpath</id> |
| <phase>generate-test-resources</phase> |
| <goals> |
| <goal>build-classpath</goal> |
| </goals> |
| <configuration> |
| <!-- needed to run the unit test for DS to generate the required classpath |
| that is required in the env of the launch container in the mini mr/yarn cluster --> |
| <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>process-classes</phase> |
| <configuration> |
| <target> |
| <path id="cp"> |
| <path refid="maven.test.classpath" /> |
| <path refid="maven.compile.classpath" /> |
| <path refid="maven.dependency.classpath" /> |
| </path> |
| <taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask"> |
| <classpath refid="cp" /> |
| </taskdef> |
| <fileset id="enhance.path.ref" dir="../core/target/classes"> |
| <include name="**/JsonWorkflowJob.class" /> |
| <include name="**/JsonWorkflowAction.class" /> |
| <include name="**/JsonCoordinatorJob.class" /> |
| <include name="**/JsonCoordinatorAction.class" /> |
| <include name="**/JsonSLAEvent.class" /> |
| <include name="**/JsonBundleJob.class"/> |
| |
| <include name="**/WorkflowJobBean.class" /> |
| <include name="**/WorkflowActionBean.class" /> |
| <include name="**/CoordinatorJobBean.class" /> |
| <include name="**/CoordinatorActionBean.class" /> |
| <include name="**/SLAEventBean.class" /> |
| <include name="**/BundleJobBean.class"/> |
| <include name="**/BundleActionBean.class"/> |
| </fileset> |
| <openjpac> |
| <classpath refid="cp" /> |
| <fileset refid="enhance.path.ref" /> |
| </openjpac> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>src/test/resources/PigMain.txt</exclude> |
| <exclude>src/test/resources/test-ioutils.txt</exclude> |
| <exclude>.gitignore</exclude> |
| <exclude>./SecurityAuth.audit</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>generateDocs</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>generateDocs</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <linksource>true</linksource> |
| <quiet>true</quiet> |
| <verbose>false</verbose> |
| <source>${maven.compile.source}</source> |
| <charset>${maven.compile.encoding}</charset> |
| <groups> |
| <group> |
| <title>Action Executor API</title> |
| <packages> |
| org.apache.oozie.action |
| </packages> |
| </group> |
| <group> |
| <title>Local Oozie (for application development/testing)</title> |
| <packages> |
| org.apache.oozie.local |
| </packages> |
| </group> |
| </groups> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>javadoc</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>hadoop20</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>hadoop20</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/Kerberos*.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>oozieci</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>oozieci</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/TestRerun.java</exclude> |
| <exclude>**/TestCallableQueueService.java</exclude> |
| <exclude>**/TestPigActionExecutor.java</exclude> |
| <exclude>**/TestCallableQueueService.java</exclude> |
| <exclude>**/TestSshActionExecutor.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>test-jar-all</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| <property> |
| <name>testJarAll</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>test-jar-simple</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>testJarSimple</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| <configuration> |
| <includes> |
| <include>**/XTestCase.class</include> |
| <include>**/XTestCase$1.class</include> |
| <include>**/XFsTestCase.class</include> |
| <include>**/MiniOozieTestCase.class</include> |
| <include>**/XTestCase$Predicate.class</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <!-- Include MySQL JDBC driver --> |
| <profile> |
| <id>mysql</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>mysql</name> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <!-- Include Oracle JDBC driver --> |
| <!-- Oracle JDBC driver is not available in any public Maven repository --> |
| <!-- It must be manually installed in the local Maven cache --> |
| <profile> |
| <id>oracle</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>oracle</name> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>com.oracle</groupId> |
| <artifactId>ojdbc6</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| <profile> |
| <id>mr1</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| <property> |
| <name>!mr2</name> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-core</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <id>mr2</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>mr2</name> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-minicluster</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| |
| </profiles> |
| |
| </project> |
| |