| <?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.3-SNAPSHOT</version> |
| </parent> |
| <artifactId>falcon-webapp</artifactId> |
| <description>Apache Falcon Web Application</description> |
| <name>Apache Falcon Web Application</name> |
| <packaging>war</packaging> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-common</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-prism</artifactId> |
| <version>${project.version}</version> |
| <classifier>classes</classifier> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-process</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-oozie-adaptor</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-feed</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-retention</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-metrics</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-rerun</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-replication</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-test-util</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-server</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-client</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-json</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.googlecode.json-simple</groupId> |
| <artifactId>json-simple</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty-plus</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-all</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.aspectj</groupId> |
| <artifactId>aspectjrt</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.aspectj</groupId> |
| <artifactId>aspectjweaver</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-oozie-el-extension</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-hadoop-webapp</artifactId> |
| <type>war</type> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.1.1</version> |
| <configuration> |
| <webResources> |
| <resource> |
| <directory>src/main/webapp/WEB-INF/embedded</directory> |
| <targetPath>WEB-INF</targetPath> |
| </resource> |
| </webResources> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/webapps</outputDirectory> |
| <resources> |
| <resource> |
| <directory>src/conf</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.8</version> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.falcon</groupId> |
| <artifactId>falcon-hadoop-webapp</artifactId> |
| <version>${project.version}</version> |
| <type>war</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}/webapps</outputDirectory> |
| <destFileName>hadoop.war</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <configuration> |
| <target> |
| <delete dir="../target/store" /> |
| <delete dir="target/webapps/oozie/data" /> |
| <copy file="../hadoop-webapp/target/oozie.war" toDir="target/webapps" /> |
| <delete dir="../target/store" /> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>process-resources</phase> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.15</version> |
| <configuration> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| <forkMode>always</forkMode> |
| </configuration> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>verify</id> |
| <goals> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>maven-jetty-plugin</artifactId> |
| <version>${jetty.version}</version> |
| <configuration> |
| <connectors> |
| <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
| <port>41000</port> |
| <maxIdleTime>60000</maxIdleTime> |
| </connector> |
| </connectors> |
| <webApp>${project.build.directory}/falcon-webapp-${project.version}</webApp> |
| <useTestClasspath>true</useTestClasspath> |
| <contextHandlers> |
| <contextHandler implementation="org.mortbay.jetty.webapp.WebAppContext"> |
| <war>${project.build.directory}/webapps/oozie.war</war> |
| <contextPath>/oozie</contextPath> |
| </contextHandler> |
| <contextHandler implementation="org.mortbay.jetty.webapp.WebAppContext"> |
| <war>${project.build.directory}/webapps/hadoop.war</war> |
| <contextPath>/hadoop</contextPath> |
| </contextHandler> |
| </contextHandlers> |
| <systemProperties> |
| <systemProperty> |
| <name>hadoop.conf.dir</name> |
| <value>${project.build.directory}/webapps/hadoop/conf</value> |
| </systemProperty> |
| <systemProperty> |
| <name>hadoop.tmp.dir</name> |
| <value>${project.build.directory}/tmp-hadoop-${user.name}</value> |
| </systemProperty> |
| <systemProperty> |
| <name>hadoop.log.dir</name> |
| <value>${project.build.directory}/logs</value> |
| </systemProperty> |
| <systemProperty> |
| <name>oozie.home.dir</name> |
| <value>${project.build.directory}/webapps/oozie</value> |
| </systemProperty> |
| <systemProperty> |
| <name>oozie.data.dir</name> |
| <value>${project.build.directory}/webapps/oozie/data</value> |
| </systemProperty> |
| </systemProperties> |
| <stopKey>falcon-stop</stopKey> |
| <stopPort>41001</stopPort> |
| </configuration> |
| <executions> |
| <execution> |
| <id>start-jetty</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <skip>${skipCheck}</skip> |
| <daemon>true</daemon> |
| </configuration> |
| </execution> |
| <execution> |
| <id>stop-jetty</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>distributed</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.1.1</version> |
| <configuration> |
| <packagingExcludes>WEB-INF/classes/deploy.properties</packagingExcludes> |
| <webResources> |
| <resource> |
| <directory>src/main/webapp/WEB-INF/distributed</directory> |
| <targetPath>WEB-INF</targetPath> |
| </resource> |
| </webResources> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |