blob: 0be887ca72746b95c1bd47d38d29e5fad94dde1a [file] [log] [blame]
<?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">
<properties>
<buildtype>test</buildtype>
<BUILD_NUMBER>${env.BUILD_NUMBER}</BUILD_NUMBER>
<VERSION>0.1</VERSION>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<package.prefix>/usr</package.prefix>
<package.conf.dir>/etc/hms</package.conf.dir>
<package.log.dir>/var/log/hms</package.log.dir>
<package.pid.dir>/var/run/hms</package.pid.dir>
<package.release>1</package.release>
<package.version>0.1.0</package.version>
<final.name>${project.artifactId}-${project.version}</final.name>
</properties>
<name>Hadoop Management System</name>
<description>Hadoop Management System for the cloud</description>
<url>http://incubator.apache.org/hms</url>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.hms</groupId>
<version>0.1.0</version>
<artifactId>hms</artifactId>
<packaging>pom</packaging>
<issueManagement>
<system>HMS JIRA</system>
<url>http://issues.apache.org/jira/browse/HMS</url>
</issueManagement>
<scm>
<developerConnection>git@github.com:macroadster/hms.git</developerConnection>
<url>git@github.com:macroadster/hms.git</url>
<tag></tag>
</scm>
<mailingLists>
<mailingList>
<name>hms</name>
<subscribe></subscribe>
<unsubscribe></unsubscribe>
<post>mailto:general@hms.apache.com</post>
<archive></archive>
</mailingList>
</mailingLists>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.8</version>
<scope>test</scope>
<classifier>jdk15</classifier>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.3.2</version>
<!-- <scope>provided</scope> -->
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>6.1.26</version>
</dependency>
<dependency>
<groupId>javax.jmdns</groupId>
<artifactId>jmdns</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<exclusions>
<exclusion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</exclusion>
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-json</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.6</version>
</dependency>
</dependencies>
<developers>
<developer>
<id>eyang</id>
<name>Eric Yang</name>
<email>eric818@gmail.com</email>
<timezone>(GMT-08:00) Pacific Time(US &amp; Canada)</timezone>
<roles>
<role></role>
</roles>
</developer>
<developer>
<id>kan</id>
<name>Kan Zhang</name>
<email>kanzhangmail@yahoo.com</email>
<timezone>(GMT-08:00) Pacific Time(US &amp; Canada)</timezone>
<roles>
<role></role>
</roles>
</developer>
</developers>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org/</url>
</organization>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<compilerVersion>1.5</compilerVersion>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
<configuration>
<phase>test</phase>
<argLine>-Xmx1024m</argLine>
<includes>
<include>**/Test*.java</include>
</includes>
<excludes>
<exclude>**/IntegrationTest*.java</exclude>
<exclude>**/PerformanceTest*.java</exclude>
</excludes>
<skipTests>${skipTests}</skipTests>
<reportsDirectory>${project.build.directory}/test-reports</reportsDirectory>
<systemProperties>
<property>
<name>HMS_LOG_DIR</name>
<value>${project.build.directory}/logs</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<tarLongFileMode>gnu</tarLongFileMode>
<descriptors>
<descriptor>src/packages/tarball/all.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>build-tarball</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>validate</phase>
<configuration>
<tasks name="setup">
<mkdir dir="${basedir}/target"/>
<echo message="0.1.0" file="${basedir}/target/VERSION"/>
<mkdir dir="${basedir}/target/clover"/>
<chmod dir="${basedir}/target/clover" perm="a+w" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>hudson</id>
<activation>
<property>
<name>!env.BUILD_NUMBER</name>
</property>
</activation>
<properties>
<BUILD_NUMBER>0</BUILD_NUMBER>
</properties>
</profile>
<profile>
<id>nightly</id>
<activation />
<properties>
<skipTests>true</skipTests>
</properties>
<dependencies>
<dependency>
<groupId>com.cenqua.clover</groupId>
<artifactId>clover</artifactId>
<version>2.6.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- <plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>2.6.2</version>
<configuration>
<licenseLocation>conf/clover/clover.license</licenseLocation>
<snapshot>/tmp/hms_clover</snapshot>
<cloverDatabase>/tmp/hms</cloverDatabase>
<cloverMergeDatabase>/tmp/hms</cloverMergeDatabase>
</configuration>
<executions>
<execution>
<id>setup-clover-test</id>
<phase>test</phase>
<goals>
<goal>instrument-test</goal>
</goals>
</execution>
<execution>
<id>setup-clover-package</id>
<goals>
<goal>setup</goal>
</goals>
<configuration>
<includesAllSourceRoots>true</includesAllSourceRoots>
<includesTestSourceRoots>true</includesTestSourceRoots>
</configuration>
</execution>
<execution>
<id>setup-clover-integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>instrument-test</goal>
</goals>
</execution>
<execution>
<phase>verify</phase>
<goals>
<goal>snapshot</goal>
<goal>log</goal>
</goals>
</execution>
</executions>
</plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<phase>test</phase>
<configuration>
<argLine>-Xmx1024m -Djava.library.path=.
</argLine>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/IntegrationTest.java</exclude>
<exclude>**/PerformanceTest*.java</exclude>
</excludes>
<skipTests>false</skipTests>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<systemProperties>
<property>
<name>clover.server</name>
<value>true</value>
</property>
<property>
<name>clover.distributed.coverage</name>
<value>ON</value>
</property>
</systemProperties>
</configuration>
<goals>
<goal>test</goal>
</goals>
<id>unit-test</id>
</execution>
<execution>
<id>it</id>
<phase>integration-test</phase>
<configuration>
<argLine>-Xmx1024m -Djava.library.path=.
</argLine>
<includes>
<include>**/IntegrationTest*.java</include>
</includes>
<excludes>
<exclude>**/*Test.java</exclude>
<exclude>**/PerformanceTest*.java</exclude>
</excludes>
<skipTests>false</skipTests>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<systemProperties>
<property>
<name>clover.server</name>
<value>true</value>
</property>
<property>
<name>clover.distributed.coverage</name>
<value>ON</value>
</property>
</systemProperties>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>setup-it</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/scripts/pre-integration-test.sh</executable>
</configuration>
</execution>
<execution>
<id>clean-it</id>
<phase>post-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/scripts/post-integration-test.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>submodules</id>
<activation>
<property>
<name>!perf.host</name>
</property>
</activation>
<modules>
<module>common</module>
<module>agent</module>
<module>controller</module>
<module>client</module>
<module>beacon</module>
</modules>
</profile>
<profile>
<id>performance</id>
<modules>
<module>performance</module>
</modules>
</profile>
<profile>
<id>regression</id>
<modules>
<module>regression-test</module>
</modules>
</profile>
<profile>
<id>src</id>
<build>
</build>
</profile>
<profile>
<id>rpm</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>build-rpm</id>
<phase>package</phase>
<configuration>
<target>
<ant antfile="${basedir}/src/packages/build.xml">
<target name="package-rpm"/>
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>deb</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>build-deb</id>
<phase>package</phase>
<configuration>
<target>
<property name="artifactId" value="${project.artifactId}" />
<ant antfile="${basedir}/src/packages/build.xml">
<target name="package-deb"/>
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.vafer</groupId>
<artifactId>jdeb</artifactId>
<version>0.8</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>docs</id>
<activation />
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>report</id>
<activation />
<reporting>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<links>
<link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
</links>
<doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
<docletArtifact>
<groupId>org.umlgraph</groupId>
<artifactId>doclet</artifactId>
<version>5.1</version>
</docletArtifact>
<additionalparam>-inferrel -inferdep -useimports -postfixpackage -nodefontsize 9 -nodefontpackagesize 7 -hide java.* -hide org.*</additionalparam>
<destDir>withUML</destDir>
<show>public</show>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>
<!-- <plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>2.6.2</version>
<configuration>
<licenseLocation>conf/clover/clover.license</licenseLocation>
<cloverDatabase>/tmp/cc</cloverDatabase>
<cloverMergeDatabase>/tmp/hms</cloverMergeDatabase>
</configuration>
</plugin> -->
<plugin>
<artifactId>maven-pmd-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>pmd</report>
<report>cpd</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<targetJdk>1.5</targetJdk>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<threshold>Normal</threshold>
<effort>Max</effort>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</profile>
</profiles>
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
<repository>
<id>codehaus</id>
<url>http://repository.codehaus.org/</url>
</repository>
<repository>
<id>Sonatype-public</id>
<name>SnakeYAML repository</name>
<url>http://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>clojars</id>
<url>http://clojars.org/repo/</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>
</project>