2011-12-08 19:25:28 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Licensed 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.
|
|
|
|
|
|
|
|
|
|
|
|
-->
|
2012-05-28 14:51:05 +00:00
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
2011-12-08 19:25:28 +00:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-project</artifactId>
|
2012-03-28 07:37:06 +00:00
|
|
|
<version>3.0.0-SNAPSHOT</version>
|
2011-12-08 19:25:28 +00:00
|
|
|
<relativePath>../../hadoop-project</relativePath>
|
|
|
|
</parent>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-hdfs-httpfs</artifactId>
|
2012-03-28 07:37:06 +00:00
|
|
|
<version>3.0.0-SNAPSHOT</version>
|
2011-12-08 19:25:28 +00:00
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
|
|
<name>Apache Hadoop HttpFS</name>
|
|
|
|
<description>Apache Hadoop HttpFS</description>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<httpfs.source.repository>REPO NOT AVAIL</httpfs.source.repository>
|
|
|
|
<httpfs.source.repository>REPO NOT AVAIL</httpfs.source.repository>
|
|
|
|
<httpfs.source.revision>REVISION NOT AVAIL</httpfs.source.revision>
|
|
|
|
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
|
|
|
|
<httpfs.build.timestamp>${maven.build.timestamp}</httpfs.build.timestamp>
|
|
|
|
<httpfs.tomcat.dist.dir>
|
|
|
|
${project.build.directory}/${project.artifactId}-${project.version}/share/hadoop/httpfs/tomcat
|
|
|
|
</httpfs.tomcat.dist.dir>
|
2012-07-26 13:39:05 +00:00
|
|
|
<kerberos.realm>LOCALHOST</kerberos.realm>
|
|
|
|
<test.exclude.kerberos.test>**/TestHttpFSWithKerberos.java</test.exclude.kerberos.test>
|
2012-09-04 22:55:40 +00:00
|
|
|
<tomcat.download.url>http://archive.apache.org/dist/tomcat/tomcat-6/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.tar.gz</tomcat.download.url>
|
2011-12-08 19:25:28 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-all</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2012-01-26 18:15:04 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
2012-08-15 19:10:52 +00:00
|
|
|
<artifactId>hadoop-auth</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-core</artifactId>
|
|
|
|
<scope>compile</scope>
|
2012-01-26 18:15:04 +00:00
|
|
|
</dependency>
|
2011-12-08 19:25:28 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.jersey</groupId>
|
|
|
|
<artifactId>jersey-server</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>servlet-api</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2012-08-15 19:10:52 +00:00
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
2011-12-08 19:25:28 +00:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.googlecode.json-simple</groupId>
|
|
|
|
<artifactId>json-simple</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2012-08-15 19:10:52 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>jetty</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2011-12-08 19:25:28 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.xml.stream</groupId>
|
|
|
|
<artifactId>stax-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>commons-httpclient</groupId>
|
|
|
|
<artifactId>commons-httpclient</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>servlet-api</artifactId>
|
|
|
|
</exclusion>
|
2014-06-24 17:51:21 +00:00
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
|
|
<artifactId>jsp-api</artifactId>
|
|
|
|
</exclusion>
|
2011-12-08 19:25:28 +00:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>jetty</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>jetty-util</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>servlet-api-2.5</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>net.java.dev.jets3t</groupId>
|
|
|
|
<artifactId>jets3t</artifactId>
|
|
|
|
</exclusion>
|
2014-09-15 15:27:07 +00:00
|
|
|
<exclusion>
|
|
|
|
<groupId>com.amazonaws</groupId>
|
|
|
|
<artifactId>aws-java-sdk</artifactId>
|
|
|
|
</exclusion>
|
2011-12-08 19:25:28 +00:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.eclipse.jdt</groupId>
|
|
|
|
<artifactId>core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-hdfs</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>commons-cli</groupId>
|
|
|
|
<artifactId>commons-cli</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>commons-httpclient</groupId>
|
|
|
|
<artifactId>commons-httpclient</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>servlet-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>jetty</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>jetty-util</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
|
|
<artifactId>servlet-api-2.5</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>net.java.dev.jets3t</groupId>
|
|
|
|
<artifactId>jets3t</artifactId>
|
|
|
|
</exclusion>
|
2014-09-15 15:27:07 +00:00
|
|
|
<exclusion>
|
|
|
|
<groupId>com.amazonaws</groupId>
|
|
|
|
<artifactId>aws-java-sdk</artifactId>
|
|
|
|
</exclusion>
|
2011-12-08 19:25:28 +00:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.eclipse.jdt</groupId>
|
|
|
|
<artifactId>core</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-common</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-hdfs</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
2015-03-26 23:29:36 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-auth</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
2011-12-08 19:25:28 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
2012-08-15 19:10:52 +00:00
|
|
|
<scope>runtime</scope>
|
2011-12-08 19:25:28 +00:00
|
|
|
</dependency>
|
2014-11-05 01:52:03 +00:00
|
|
|
<!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcprov-jdk16</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2011-12-08 19:25:28 +00:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>httpfs.properties</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<excludes>
|
|
|
|
<exclude>httpfs.properties</exclude>
|
|
|
|
</excludes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2012-07-26 13:39:05 +00:00
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/src/test/resources</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
<excludes>
|
|
|
|
<exclude>krb5.conf</exclude>
|
|
|
|
</excludes>
|
|
|
|
</testResource>
|
|
|
|
<testResource>
|
|
|
|
<directory>${basedir}/src/test/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<includes>
|
|
|
|
<include>krb5.conf</include>
|
|
|
|
</includes>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
2011-12-08 19:25:28 +00:00
|
|
|
|
|
|
|
<plugins>
|
2011-12-14 03:42:24 +00:00
|
|
|
<plugin>
|
2012-01-05 19:46:42 +00:00
|
|
|
<!-- workaround for filtered/unfiltered resources in same directory -->
|
|
|
|
<!-- remove when maven-eclipse-plugin 2.9 is available -->
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-eclipse-plugin</artifactId>
|
|
|
|
<version>2.6</version>
|
2011-12-14 03:42:24 +00:00
|
|
|
</plugin>
|
2011-12-08 19:25:28 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<threadCount>1</threadCount>
|
2012-07-26 13:39:05 +00:00
|
|
|
<forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
|
|
|
|
<kerberos.realm>${kerberos.realm}</kerberos.realm>
|
|
|
|
</systemPropertyVariables>
|
2012-09-14 01:44:23 +00:00
|
|
|
<properties>
|
|
|
|
<property>
|
|
|
|
<name>listener</name>
|
|
|
|
<value>org.apache.hadoop.test.TimedOutTestsListener</value>
|
|
|
|
</property>
|
|
|
|
</properties>
|
2012-07-26 13:39:05 +00:00
|
|
|
<excludes>
|
|
|
|
<exclude>**/${test.exclude}.java</exclude>
|
|
|
|
<exclude>${test.exclude.pattern}</exclude>
|
|
|
|
<exclude>${test.exclude.kerberos.test}</exclude>
|
|
|
|
</excludes>
|
2011-12-08 19:25:28 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>javadoc</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>site</phase>
|
|
|
|
<configuration>
|
|
|
|
<linksource>true</linksource>
|
|
|
|
<quiet>true</quiet>
|
|
|
|
<verbose>false</verbose>
|
|
|
|
<source>${maven.compile.source}</source>
|
|
|
|
<charset>${maven.compile.encoding}</charset>
|
|
|
|
<groups>
|
|
|
|
<group>
|
|
|
|
<title>HttpFs API</title>
|
|
|
|
<packages>*</packages>
|
|
|
|
</group>
|
|
|
|
</groups>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<configuration>
|
|
|
|
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>dependencies</goal>
|
|
|
|
</goals>
|
2015-01-23 22:21:55 +00:00
|
|
|
<phase>package</phase>
|
2011-12-08 19:25:28 +00:00
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.rat</groupId>
|
|
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
2013-01-14 14:36:40 +00:00
|
|
|
<exclude>src/test/resources/classutils.txt</exclude>
|
|
|
|
<exclude>src/main/conf/httpfs-signature.secret</exclude>
|
2011-12-08 19:25:28 +00:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-web-xmls</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<mkdir dir="${project.build.directory}/test-classes/webapp"/>
|
|
|
|
|
|
|
|
<copy todir="${project.build.directory}/test-classes/webapp">
|
|
|
|
<fileset dir="${basedir}/src/main/webapp"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>site</id>
|
|
|
|
<phase>site</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<xslt in="${basedir}/src/main/resources/httpfs-default.xml"
|
|
|
|
out="${project.build.directory}/site/httpfs-default.html"
|
|
|
|
style="${basedir}/src/site/configuration.xsl"/>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>default-war</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>war</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<warName>webhdfs</warName>
|
|
|
|
<webappDirectory>${project.build.directory}/webhdfs</webappDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-12-21 02:46:04 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2011-12-08 19:25:28 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
2012-07-26 13:39:05 +00:00
|
|
|
<profile>
|
|
|
|
<id>testKerberos</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<test.exclude.kerberos.test>_</test.exclude.kerberos.test>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<forkMode>once</forkMode>
|
|
|
|
<forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<java.security.krb5.conf>${project.build.directory}/test-classes/krb5.conf</java.security.krb5.conf>
|
|
|
|
<kerberos.realm>${kerberos.realm}</kerberos.realm>
|
|
|
|
<httpfs.http.hostname>localhost</httpfs.http.hostname>
|
|
|
|
</systemPropertyVariables>
|
|
|
|
<includes>
|
|
|
|
<include>**/TestHttpFSWithKerberos.java</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2011-12-08 19:25:28 +00:00
|
|
|
<profile>
|
|
|
|
<id>docs</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>docs</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>site</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>dist</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-assemblies</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>dist</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
<attach>false</attach>
|
|
|
|
<descriptorRefs>
|
|
|
|
<descriptorRef>hadoop-httpfs-dist</descriptorRef>
|
|
|
|
</descriptorRefs>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<!-- Downloading Tomcat TAR.GZ, using downloads/ dir to avoid downloading over an over -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>dist</id>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>package</phase>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<mkdir dir="downloads"/>
|
|
|
|
<get
|
2012-09-04 22:55:40 +00:00
|
|
|
src="${tomcat.download.url}"
|
2012-12-24 00:14:59 +00:00
|
|
|
dest="downloads/apache-tomcat-${tomcat.version}.tar.gz" verbose="true" skipexisting="true"/>
|
2011-12-08 19:25:28 +00:00
|
|
|
<delete dir="${project.build.directory}/tomcat.exp"/>
|
|
|
|
<mkdir dir="${project.build.directory}/tomcat.exp"/>
|
|
|
|
|
|
|
|
<!-- Using Unix script to preserve file permissions -->
|
|
|
|
<echo file="${project.build.directory}/tomcat-untar.sh">
|
HADOOP-8952. Enhancements to support Hadoop on Windows Server and Windows Azure environments. Contributed by Ivan Mitic, Chuan Liu, Ramya Sunil, Bikas Saha, Kanna Karanam, John Gordon, Brandon Li, Chris Nauroth, David Lao, Sumadhur Reddy Bolli, Arpit Agarwal, Ahmed El Baz, Mike Liddell, Jing Zhao, Thejas Nair, Steve Maine, Ganeshan Iyer, Raja Aluri, Giridharan Kesavan, Ramya Bharathi Nimmagadda.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453486 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 19:15:18 +00:00
|
|
|
cd "${project.build.directory}/tomcat.exp"
|
|
|
|
gzip -cd ../../downloads/apache-tomcat-${tomcat.version}.tar.gz | tar xf -
|
2011-12-08 19:25:28 +00:00
|
|
|
</echo>
|
|
|
|
<exec executable="sh" dir="${project.build.directory}" failonerror="true">
|
|
|
|
<arg line="./tomcat-untar.sh"/>
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<move file="${project.build.directory}/tomcat.exp/apache-tomcat-${tomcat.version}"
|
|
|
|
tofile="${httpfs.tomcat.dist.dir}"/>
|
|
|
|
<delete dir="${project.build.directory}/tomcat.exp"/>
|
|
|
|
<delete dir="${httpfs.tomcat.dist.dir}/webapps"/>
|
|
|
|
<mkdir dir="${httpfs.tomcat.dist.dir}/webapps"/>
|
|
|
|
<delete file="${httpfs.tomcat.dist.dir}/conf/server.xml"/>
|
|
|
|
<copy file="${basedir}/src/main/tomcat/server.xml"
|
|
|
|
toDir="${httpfs.tomcat.dist.dir}/conf"/>
|
2014-01-22 20:38:24 +00:00
|
|
|
<delete file="${httpfs.tomcat.dist.dir}/conf/ssl-server.xml"/>
|
2015-02-26 02:57:41 +00:00
|
|
|
<copy file="${basedir}/src/main/tomcat/ssl-server.xml.conf"
|
2014-01-22 20:38:24 +00:00
|
|
|
toDir="${httpfs.tomcat.dist.dir}/conf"/>
|
2013-07-11 18:05:34 +00:00
|
|
|
<delete file="${httpfs.tomcat.dist.dir}/conf/logging.properties"/>
|
2011-12-08 19:25:28 +00:00
|
|
|
<copy file="${basedir}/src/main/tomcat/logging.properties"
|
|
|
|
toDir="${httpfs.tomcat.dist.dir}/conf"/>
|
|
|
|
<copy toDir="${httpfs.tomcat.dist.dir}/webapps/ROOT">
|
|
|
|
<fileset dir="${basedir}/src/main/tomcat/ROOT"/>
|
|
|
|
</copy>
|
|
|
|
<copy toDir="${httpfs.tomcat.dist.dir}/webapps/webhdfs">
|
|
|
|
<fileset dir="${project.build.directory}/webhdfs"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>tar</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target if="tar">
|
|
|
|
<!-- Using Unix script to preserve symlinks -->
|
|
|
|
<echo file="${project.build.directory}/dist-maketar.sh">
|
HADOOP-8952. Enhancements to support Hadoop on Windows Server and Windows Azure environments. Contributed by Ivan Mitic, Chuan Liu, Ramya Sunil, Bikas Saha, Kanna Karanam, John Gordon, Brandon Li, Chris Nauroth, David Lao, Sumadhur Reddy Bolli, Arpit Agarwal, Ahmed El Baz, Mike Liddell, Jing Zhao, Thejas Nair, Steve Maine, Ganeshan Iyer, Raja Aluri, Giridharan Kesavan, Ramya Bharathi Nimmagadda.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453486 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 19:15:18 +00:00
|
|
|
cd "${project.build.directory}"
|
|
|
|
tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
|
2011-12-08 19:25:28 +00:00
|
|
|
</echo>
|
|
|
|
<exec executable="sh" dir="${project.build.directory}" failonerror="true">
|
|
|
|
<arg line="./dist-maketar.sh"/>
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|