Preparing hbase release 2.4.0RC0; tagging and updates to CHANGES.md and RELEASENOTES.md
[hbase.git] / hbase-server / pom.xml
blobd4f8d9aa06158a364029411564e8e32fb2dc654d
1 <?xml version="1.0"?>
2 <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <!--
4 /**
5  * Licensed to the Apache Software Foundation (ASF) under one
6  * or more contributor license agreements.  See the NOTICE file
7  * distributed with this work for additional information
8  * regarding copyright ownership.  The ASF licenses this file
9  * to you under the Apache License, Version 2.0 (the
10  * "License"); you may not use this file except in compliance
11  * with the License.  You may obtain a copy of the License at
12  *
13  *     http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 -->
22   <modelVersion>4.0.0</modelVersion>
23   <parent>
24     <artifactId>hbase-build-configuration</artifactId>
25     <groupId>org.apache.hbase</groupId>
26     <version>2.4.0</version>
27     <relativePath>../hbase-build-configuration</relativePath>
28   </parent>
29   <artifactId>hbase-server</artifactId>
30   <name>Apache HBase - Server</name>
31   <description>Server functionality for HBase</description>
32   <properties>
33     <test.build.webapps>target/test-classes/webapps</test.build.webapps>
34     <license.bundles.logo>true</license.bundles.logo>
35     <license.bundles.bootstrap>true</license.bundles.bootstrap>
36     <license.bundles.jquery>true</license.bundles.jquery>
37   </properties>
38   <build>
39     <!-- Make sure resources get added before they are processed
40       by placing this first
41      -->
42     <resources>
43       <!-- Add the build webabpps to the classpth -->
44       <resource>
45         <directory>${project.build.directory}</directory>
46         <includes>
47           <include>hbase-webapps/**</include>
48         </includes>
49       </resource>
50       <resource>
51         <directory>src/main/resources</directory>
52         <includes>
53           <include>**/**</include>
54         </includes>
55       </resource>
56     </resources>
57     <testResources>
58       <!-- Our test artifact has different license info than our source/bin ones -->
59       <testResource>
60         <directory>src/test/resources/META-INF/</directory>
61         <targetPath>META-INF/</targetPath>
62         <includes>
63           <include>NOTICE</include>
64         </includes>
65         <filtering>true</filtering>
66       </testResource>
67       <testResource>
68         <directory>src/test/resources</directory>
69         <includes>
70           <include>**/**</include>
71         </includes>
72       </testResource>
73     </testResources>
74     <plugins>
75       <plugin>
76         <groupId>com.github.spotbugs</groupId>
77         <artifactId>spotbugs-maven-plugin</artifactId>
78         <configuration>
79           <maxHeap>2048</maxHeap>
80         </configuration>
81       </plugin>
82       <!-- licensing info from our bundled works -->
83       <plugin>
84         <groupId>org.apache.maven.plugins</groupId>
85         <artifactId>maven-remote-resources-plugin</artifactId>
86         <dependencies>
87           <!-- resource bundle only needed at build time -->
88           <dependency>
89             <groupId>org.apache.hbase</groupId>
90             <artifactId>hbase-resource-bundle</artifactId>
91             <version>${project.version}</version>
92           </dependency>
93         </dependencies>
94         <executions>
95           <execution>
96             <id>default</id>
97             <configuration>
98               <attachToTest>false</attachToTest>
99               <properties>
100                 <copyright-end-year>${build.year}</copyright-end-year>
101                 <debug-print-included-work-info>${license.debug.print.included}</debug-print-included-work-info>
102                 <bundled-dependencies>${license.bundles.dependencies}</bundled-dependencies>
103                 <bundled-jquery>${license.bundles.jquery}</bundled-jquery>
104                 <bundled-logo>${license.bundles.logo}</bundled-logo>
105                 <bundled-bootstrap>${license.bundles.bootstrap}</bundled-bootstrap>
106               </properties>
107               <resourceBundles>
108                 <resourceBundle>${project.groupId}:hbase-resource-bundle:${project.version}</resourceBundle>
109               </resourceBundles>
110               <supplementalModelArtifacts>
111                 <supplementalModelArtifact>${project.groupId}:hbase-resource-bundle:${project.version}</supplementalModelArtifact>
112               </supplementalModelArtifacts>
113               <supplementalModels>
114                 <supplementalModel>supplemental-models.xml</supplementalModel>
115               </supplementalModels>
116             </configuration>
117           </execution>
118         </executions>
119       </plugin>
120       <!-- Run with -Dmaven.test.skip.exec=true to build -tests.jar without running
121         tests (this is needed for upstream projects whose tests need this jar simply for
122         compilation) -->
123       <plugin>
124         <!--Make it so assembly:single does nothing in here-->
125         <artifactId>maven-assembly-plugin</artifactId>
126         <configuration>
127           <skipAssembly>true</skipAssembly>
128         </configuration>
129       </plugin>
130       <plugin>
131         <groupId>org.apache.maven.plugins</groupId>
132         <artifactId>maven-jar-plugin</artifactId>
133         <configuration>
134           <!-- Exclude these 2 packages, because their dependency _binary_ files
135             include the sources, and Maven 2.2 appears to add them to the sources to compile,
136             weird -->
137           <excludes>
138             <exclude>org/apache/jute/**</exclude>
139             <exclude>org/apache/zookeeper/**</exclude>
140             <exclude>**/*.jsp</exclude>
141             <exclude>hbase-site.xml</exclude>
142             <exclude>hdfs-site.xml</exclude>
143             <exclude>log4j.properties</exclude>
144             <exclude>mapred-queues.xml</exclude>
145             <exclude>mapred-site.xml</exclude>
146           </excludes>
147         </configuration>
148       </plugin>
149       <!-- General ant tasks, bound to different build phases -->
150       <plugin>
151         <artifactId>maven-antrun-plugin</artifactId>
152         <executions>
153           <!-- Generate web app sources -->
154           <execution>
155             <id>generate</id>
156             <phase>generate-sources</phase>
157             <configuration>
158               <target>
159                 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
160                 <property name="src.webapps" location="${basedir}/src/main/resources/hbase-webapps"/>
161                 <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
162                 <mkdir dir="${build.webapps}"/>
163                 <copy todir="${build.webapps}">
164                   <fileset dir="${src.webapps}">
165                     <exclude name="**/*.jsp"/>
166                     <exclude name="**/.*"/>
167                     <exclude name="**/*~"/>
168                   </fileset>
169                 </copy>
170                 <!--The compile.classpath is passed in by maven -->
171                 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
172                 <mkdir dir="${build.webapps}/master/WEB-INF"/>
173                 <jspcompiler uriroot="${src.webapps}/master" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.master" webxml="${build.webapps}/master/WEB-INF/web.xml"/>
174                 <mkdir dir="${build.webapps}/regionserver/WEB-INF"/>
175                 <jspcompiler uriroot="${src.webapps}/regionserver" outputdir="${generated.sources}/java" package="org.apache.hadoop.hbase.generated.regionserver" webxml="${build.webapps}/regionserver/WEB-INF/web.xml"/>
176               </target>
177             </configuration>
178             <goals>
179               <goal>run</goal>
180             </goals>
181           </execution>
182         </executions>
183       </plugin>
184       <plugin>
185         <groupId>org.codehaus.mojo</groupId>
186         <artifactId>build-helper-maven-plugin</artifactId>
187         <executions>
188           <!-- Add the generated sources -->
189           <execution>
190             <id>jspcSource-packageInfo-source</id>
191             <phase>generate-sources</phase>
192             <goals>
193               <goal>add-source</goal>
194             </goals>
195             <configuration>
196               <sources>
197                 <source>${project.build.directory}/generated-jamon</source>
198                 <source>${project.build.directory}/generated-sources/java</source>
199               </sources>
200             </configuration>
201           </execution>
202         </executions>
203       </plugin>
204       <plugin>
205         <groupId>org.jamon</groupId>
206         <artifactId>jamon-maven-plugin</artifactId>
207         <executions>
208           <execution>
209             <phase>generate-sources</phase>
210             <goals>
211               <goal>translate</goal>
212             </goals>
213             <configuration>
214               <templateSourceDir>src/main/jamon</templateSourceDir>
215               <templateOutputDir>target/generated-jamon</templateOutputDir>
216             </configuration>
217           </execution>
218         </executions>
219       </plugin>
220       <!-- Testing plugins -->
221       <plugin>
222         <artifactId>maven-surefire-plugin</artifactId>
223         <configuration>
224           <systemPropertyVariables>
225             <test.build.webapps>target/test-classes/webapps</test.build.webapps>
226           </systemPropertyVariables>
227         </configuration>
228       </plugin>
229       <plugin>
230         <groupId>net.revelc.code</groupId>
231         <artifactId>warbucks-maven-plugin</artifactId>
232       </plugin>
233     </plugins>
234   </build>
235   <dependencies>
236     <dependency>
237       <groupId>org.apache.hbase.thirdparty</groupId>
238       <artifactId>hbase-shaded-protobuf</artifactId>
239     </dependency>
240     <dependency>
241       <groupId>org.apache.hbase.thirdparty</groupId>
242       <artifactId>hbase-shaded-netty</artifactId>
243     </dependency>
244     <dependency>
245       <groupId>org.apache.hbase.thirdparty</groupId>
246       <artifactId>hbase-shaded-miscellaneous</artifactId>
247     </dependency>
248     <!-- Intra-project dependencies -->
249     <dependency>
250       <groupId>org.apache.hbase</groupId>
251       <artifactId>hbase-logging</artifactId>
252       <type>test-jar</type>
253       <scope>test</scope>
254     </dependency>
255     <dependency>
256       <groupId>org.apache.hbase</groupId>
257       <artifactId>hbase-common</artifactId>
258     </dependency>
259     <dependency>
260       <groupId>org.apache.hbase</groupId>
261       <artifactId>hbase-http</artifactId>
262       <exclusions>
263         <exclusion>
264           <groupId>org.codehaus.jackson</groupId>
265           <artifactId>jackson-core-asl</artifactId>
266         </exclusion>
267       </exclusions>
268     </dependency>
269     <dependency>
270       <groupId>org.apache.hbase</groupId>
271       <artifactId>hbase-http</artifactId>
272       <type>test-jar</type>
273       <scope>test</scope>
274     </dependency>
275     <dependency>
276       <!--Needed by the visiblity tags and acl CPEP things
277            in here in hbase-server (that should be out in hbase-endpoints
278            or integrated). -->
279       <groupId>org.apache.hbase</groupId>
280       <artifactId>hbase-protocol</artifactId>
281     </dependency>
282     <dependency>
283       <groupId>org.apache.hbase</groupId>
284       <artifactId>hbase-protocol-shaded</artifactId>
285     </dependency>
286     <dependency>
287       <groupId>org.apache.hbase</groupId>
288       <artifactId>hbase-procedure</artifactId>
289     </dependency>
290     <dependency>
291       <groupId>org.apache.hbase</groupId>
292       <artifactId>hbase-client</artifactId>
293     </dependency>
294     <dependency>
295       <groupId>org.apache.hbase</groupId>
296       <artifactId>hbase-zookeeper</artifactId>
297     </dependency>
298     <dependency>
299       <groupId>org.apache.hbase</groupId>
300       <artifactId>hbase-replication</artifactId>
301     </dependency>
302     <dependency>
303       <groupId>org.apache.hbase</groupId>
304       <artifactId>hbase-common</artifactId>
305       <type>test-jar</type>
306       <scope>test</scope>
307     </dependency>
308     <dependency>
309       <groupId>org.apache.hbase</groupId>
310       <artifactId>hbase-annotations</artifactId>
311       <type>test-jar</type>
312       <scope>test</scope>
313     </dependency>
314     <dependency>
315       <groupId>org.apache.hbase</groupId>
316       <artifactId>hbase-procedure</artifactId>
317       <type>test-jar</type>
318       <scope>test</scope>
319     </dependency>
320     <dependency>
321       <groupId>org.apache.hbase</groupId>
322       <artifactId>hbase-zookeeper</artifactId>
323       <type>test-jar</type>
324       <scope>test</scope>
325     </dependency>
326     <dependency>
327       <groupId>org.apache.hbase</groupId>
328       <artifactId>hbase-metrics-api</artifactId>
329     </dependency>
330     <dependency>
331       <groupId>org.apache.hbase</groupId>
332       <artifactId>hbase-metrics</artifactId>
333     </dependency>
334     <dependency>
335       <groupId>commons-codec</groupId>
336       <artifactId>commons-codec</artifactId>
337     </dependency>
338     <dependency>
339       <groupId>org.apache.hbase</groupId>
340       <artifactId>hbase-hadoop-compat</artifactId>
341     </dependency>
342     <dependency>
343       <groupId>org.apache.hbase</groupId>
344       <artifactId>hbase-hadoop-compat</artifactId>
345       <type>test-jar</type>
346       <scope>test</scope>
347     </dependency>
348     <dependency>
349       <groupId>org.apache.hbase</groupId>
350       <artifactId>${compat.module}</artifactId>
351       <version>${project.version}</version>
352     </dependency>
353     <dependency>
354       <groupId>org.apache.hbase</groupId>
355       <artifactId>${compat.module}</artifactId>
356       <version>${project.version}</version>
357       <type>test-jar</type>
358       <scope>test</scope>
359     </dependency>
360     <dependency>
361       <groupId>org.apache.hbase</groupId>
362       <artifactId>hbase-asyncfs</artifactId>
363     </dependency>
364     <dependency>
365       <groupId>org.apache.hbase</groupId>
366       <artifactId>hbase-asyncfs</artifactId>
367       <type>test-jar</type>
368       <scope>test</scope>
369     </dependency>
370     <dependency>
371       <!-- For JspC used in ant task, then needed at compile /runtime
372            because the source code made from the JSP refers to its runtime
373         -->
374       <groupId>org.glassfish.web</groupId>
375       <artifactId>javax.servlet.jsp</artifactId>
376     </dependency>
377       <!-- Also used by generated sources from our JSP -->
378     <dependency>
379       <groupId>javax.servlet.jsp</groupId>
380       <artifactId>javax.servlet.jsp-api</artifactId>
381     </dependency>
382     <!-- General dependencies -->
383     <dependency>
384       <groupId>com.github.stephenc.findbugs</groupId>
385       <artifactId>findbugs-annotations</artifactId>
386       <scope>compile</scope>
387       <optional>true</optional>
388     </dependency>
389     <dependency>
390       <groupId>com.github.ben-manes.caffeine</groupId>
391       <artifactId>caffeine</artifactId>
392     </dependency>
393     <dependency>
394       <groupId>io.dropwizard.metrics</groupId>
395       <artifactId>metrics-core</artifactId>
396     </dependency>
397     <dependency>
398       <groupId>com.google.protobuf</groupId>
399       <artifactId>protobuf-java</artifactId>
400     </dependency>
401     <dependency>
402       <groupId>commons-io</groupId>
403       <artifactId>commons-io</artifactId>
404     </dependency>
405     <dependency>
406       <groupId>org.apache.commons</groupId>
407       <artifactId>commons-lang3</artifactId>
408     </dependency>
409     <dependency>
410       <groupId>org.slf4j</groupId>
411       <artifactId>slf4j-api</artifactId>
412     </dependency>
413     <dependency>
414       <groupId>org.apache.commons</groupId>
415       <artifactId>commons-math3</artifactId>
416     </dependency>
417     <dependency>
418       <groupId>org.apache.zookeeper</groupId>
419       <artifactId>zookeeper</artifactId>
420     </dependency>
421     <dependency>
422       <groupId>org.jamon</groupId>
423       <artifactId>jamon-runtime</artifactId>
424     </dependency>
425     <dependency>
426       <groupId>javax.servlet</groupId>
427       <artifactId>javax.servlet-api</artifactId>
428     </dependency>
429     <!-- tracing Dependencies -->
430     <dependency>
431       <groupId>org.apache.htrace</groupId>
432       <artifactId>htrace-core4</artifactId>
433     </dependency>
434     <dependency>
435       <groupId>com.lmax</groupId>
436       <artifactId>disruptor</artifactId>
437     </dependency>
438     <!-- Test dependencies -->
439     <dependency>
440       <groupId>org.hamcrest</groupId>
441       <artifactId>hamcrest-core</artifactId>
442       <scope>test</scope>
443     </dependency>
444     <dependency>
445       <groupId>org.hamcrest</groupId>
446       <artifactId>hamcrest-library</artifactId>
447       <scope>test</scope>
448     </dependency>
449     <dependency>
450       <groupId>org.bouncycastle</groupId>
451       <artifactId>bcprov-jdk15on</artifactId>
452       <scope>test</scope>
453     </dependency>
454     <dependency>
455       <groupId>org.apache.hadoop</groupId>
456       <artifactId>hadoop-minikdc</artifactId>
457       <scope>test</scope>
458       <exclusions>
459         <exclusion>
460           <groupId>bouncycastle</groupId>
461           <artifactId>bcprov-jdk15</artifactId>
462         </exclusion>
463       </exclusions>
464     </dependency>
465     <dependency>
466       <groupId>org.apache.kerby</groupId>
467       <artifactId>kerb-client</artifactId>
468       <scope>test</scope>
469     </dependency>
470     <dependency>
471       <groupId>org.apache.kerby</groupId>
472       <artifactId>kerb-simplekdc</artifactId>
473       <scope>test</scope>
474     </dependency>
475     <dependency>
476       <groupId>org.apache.httpcomponents</groupId>
477       <artifactId>httpclient</artifactId>
478       <scope>test</scope>
479     </dependency>
480     <dependency>
481       <groupId>org.apache.httpcomponents</groupId>
482       <artifactId>httpcore</artifactId>
483       <scope>test</scope>
484     </dependency>
485     <dependency>
486       <groupId>org.apache.commons</groupId>
487       <artifactId>commons-crypto</artifactId>
488       <exclusions>
489         <exclusion>
490           <groupId>net.java.dev.jna</groupId>
491           <artifactId>jna</artifactId>
492         </exclusion>
493       </exclusions>
494     </dependency>
495     <dependency>
496       <groupId>junit</groupId>
497       <artifactId>junit</artifactId>
498       <scope>test</scope>
499     </dependency>
500     <dependency>
501       <groupId>org.mockito</groupId>
502       <artifactId>mockito-core</artifactId>
503       <scope>test</scope>
504     </dependency>
505     <dependency>
506       <groupId>org.slf4j</groupId>
507       <artifactId>jcl-over-slf4j</artifactId>
508       <scope>test</scope>
509     </dependency>
510     <dependency>
511       <groupId>org.slf4j</groupId>
512       <artifactId>jul-to-slf4j</artifactId>
513       <scope>test</scope>
514     </dependency>
515     <dependency>
516       <groupId>org.slf4j</groupId>
517       <artifactId>slf4j-log4j12</artifactId>
518       <scope>test</scope>
519     </dependency>
520     <dependency>
521       <groupId>log4j</groupId>
522       <artifactId>log4j</artifactId>
523       <scope>test</scope>
524     </dependency>
525   </dependencies>
526   <profiles>
527     <!-- Needs to make the profile in apache parent pom -->
528     <profile>
529       <id>apache-release</id>
530       <build>
531         <plugins>
532           <plugin>
533             <groupId>org.apache.maven.plugins</groupId>
534             <artifactId>maven-resources-plugin</artifactId>
535             <executions>
536               <execution>
537                 <id>license-javadocs</id>
538                 <phase>prepare-package</phase>
539                 <goals>
540                   <goal>copy-resources</goal>
541                 </goals>
542                 <configuration>
543                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
544                   <resources>
545                     <resource>
546                       <directory>src/main/javadoc/META-INF/</directory>
547                       <targetPath>META-INF/</targetPath>
548                       <includes>
549                         <include>LICENSE</include>
550                         <include>NOTICE</include>
551                       </includes>
552                       <filtering>true</filtering>
553                     </resource>
554                   </resources>
555                 </configuration>
556               </execution>
557             </executions>
558           </plugin>
559         </plugins>
560       </build>
561     </profile>
562     <!-- Skip the tests in this module -->
563     <profile>
564       <id>skipServerTests</id>
565       <activation>
566         <property>
567           <name>skipServerTests</name>
568         </property>
569       </activation>
570       <properties>
571         <surefire.skipFirstPart>true</surefire.skipFirstPart>
572         <surefire.skipSecondPart>true</surefire.skipSecondPart>
573       </properties>
574     </profile>
575     <!-- Special builds -->
576     <profile>
577       <id>native</id>
578       <activation>
579         <activeByDefault>false</activeByDefault>
580       </activation>
581       <build>
582         <plugins>
583           <plugin>
584             <groupId>org.apache.maven.plugins</groupId>
585             <artifactId>maven-antrun-plugin</artifactId>
586             <executions>
587               <execution>
588                 <id>make</id>
589                 <phase>compile</phase>
590                 <goals><goal>run</goal></goals>
591                 <configuration>
592                   <target>
593                     <mkdir dir="${project.build.directory}/native"/>
594                     <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
595                       <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
596                     </exec>
597                     <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
598                       <arg line="VERBOSE=1"/>
599                     </exec>
600                   </target>
601                 </configuration>
602               </execution>
603             </executions>
604           </plugin>
605         </plugins>
606       </build>
607     </profile>
608     <!-- Profiles for building against different hadoop versions -->
609     <!-- There are a lot of common dependencies used here, should investigate
610     if we can combine these profiles somehow -->
612     <!-- profile for building against Hadoop 2.x.  This is the default.  -->
613     <profile>
614       <id>hadoop-2.0</id>
615       <activation>
616         <property>
617             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
618             <!--h2--><name>!hadoop.profile</name>
619         </property>
620       </activation>
621       <dependencies>
622         <dependency>
623           <groupId>org.apache.hadoop</groupId>
624           <artifactId>hadoop-distcp</artifactId>
625         </dependency>
626         <dependency>
627           <groupId>org.apache.hadoop</groupId>
628           <artifactId>hadoop-common</artifactId>
629         </dependency>
630         <dependency>
631           <groupId>org.apache.hadoop</groupId>
632           <artifactId>hadoop-auth</artifactId>
633         </dependency>
634         <dependency>
635           <groupId>org.apache.hadoop</groupId>
636           <artifactId>hadoop-annotations</artifactId>
637         </dependency>
638         <dependency>
639           <groupId>org.apache.hadoop</groupId>
640           <artifactId>hadoop-mapreduce-client-core</artifactId>
641           <exclusions>
642             <exclusion>
643               <groupId>com.google.guava</groupId>
644               <artifactId>guava</artifactId>
645             </exclusion>
646             <exclusion>
647               <groupId>javax.xml.bind</groupId>
648               <artifactId>java-api</artifactId>
649             </exclusion>
650             <exclusion>
651               <groupId>javax.xml.bind</groupId>
652               <artifactId>jaxb-api</artifactId>
653             </exclusion>
654           </exclusions>
655         </dependency>
656         <dependency>
657           <groupId>org.apache.hadoop</groupId>
658           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
659           <type>test-jar</type>
660           <scope>test</scope>
661           <exclusions>
662             <exclusion>
663               <groupId>com.google.guava</groupId>
664               <artifactId>guava</artifactId>
665             </exclusion>
666           </exclusions>
667         </dependency>
668         <dependency>
669           <groupId>org.apache.hadoop</groupId>
670           <artifactId>hadoop-hdfs</artifactId>
671         </dependency>
672         <dependency>
673           <groupId>org.apache.hadoop</groupId>
674           <artifactId>hadoop-hdfs</artifactId>
675           <type>test-jar</type>
676           <scope>test</scope>
677         </dependency>
678         <dependency>
679           <groupId>org.apache.hadoop</groupId>
680           <artifactId>hadoop-minicluster</artifactId>
681           <scope>test</scope>
682           <exclusions>
683             <exclusion>
684               <groupId>com.google.guava</groupId>
685               <artifactId>guava</artifactId>
686             </exclusion>
687             <exclusion>
688               <groupId>org.apache.zookeeper</groupId>
689               <artifactId>zookeeper</artifactId>
690             </exclusion>
691           </exclusions>
692         </dependency>
693         <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
694         <dependency>
695           <groupId>io.netty</groupId>
696           <artifactId>netty</artifactId>
697           <version>${netty.hadoop.version}</version>
698           <scope>test</scope>
699         </dependency>
700       </dependencies>
701       <build>
702         <plugins>
703           <plugin>
704             <artifactId>maven-dependency-plugin</artifactId>
705             <executions>
706               <execution>
707                 <id>create-mrapp-generated-classpath</id>
708                 <phase>generate-test-resources</phase>
709                 <goals>
710                   <goal>build-classpath</goal>
711                 </goals>
712                 <configuration>
713                   <!-- needed to run the unit test for DS to generate
714                   the required classpath that is required in the env
715                   of the launch container in the mini mr/yarn cluster
716                   -->
717                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
718                 </configuration>
719               </execution>
720             </executions>
721           </plugin>
722         </plugins>
723       </build>
724     </profile>
725     <!--
726       profile for building against Hadoop 3.0.x. Activate using:
727        mvn -Dhadoop.profile=3.0
728     -->
729     <profile>
730       <id>hadoop-3.0</id>
731       <activation>
732         <property>
733           <name>hadoop.profile</name>
734           <value>3.0</value>
735         </property>
736       </activation>
737       <dependencies>
738         <dependency>
739           <groupId>org.apache.hadoop</groupId>
740           <artifactId>hadoop-distcp</artifactId>
741         </dependency>
742         <dependency>
743           <groupId>org.apache.hadoop</groupId>
744           <artifactId>hadoop-common</artifactId>
745         </dependency>
746         <dependency>
747           <groupId>org.apache.hadoop</groupId>
748           <artifactId>hadoop-hdfs</artifactId>
749         </dependency>
750         <dependency>
751           <groupId>org.apache.hadoop</groupId>
752           <artifactId>hadoop-hdfs-client</artifactId>
753         </dependency>
754         <dependency>
755           <groupId>org.apache.hadoop</groupId>
756           <artifactId>hadoop-mapreduce-client-core</artifactId>
757           <exclusions>
758             <exclusion>
759               <groupId>javax.xml.bind</groupId>
760               <artifactId>jaxb-api</artifactId>
761             </exclusion>
762             <exclusion>
763               <groupId>javax.ws.rs</groupId>
764               <artifactId>jsr311-api</artifactId>
765             </exclusion>
766           </exclusions>
767         </dependency>
768         <dependency>
769           <groupId>org.apache.hadoop</groupId>
770           <artifactId>hadoop-hdfs</artifactId>
771           <type>test-jar</type>
772           <scope>test</scope>
773         </dependency>
774         <dependency>
775           <groupId>org.apache.hadoop</groupId>
776           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
777           <type>test-jar</type>
778           <scope>test</scope>
779         </dependency>
780         <dependency>
781           <groupId>org.apache.hadoop</groupId>
782           <artifactId>hadoop-annotations</artifactId>
783         </dependency>
784         <dependency>
785           <groupId>org.apache.hadoop</groupId>
786           <artifactId>hadoop-minicluster</artifactId>
787           <scope>test</scope>
788           <exclusions>
789             <exclusion>
790               <groupId>javax.xml.bind</groupId>
791               <artifactId>jaxb-api</artifactId>
792             </exclusion>
793             <exclusion>
794               <groupId>javax.ws.rs</groupId>
795               <artifactId>jsr311-api</artifactId>
796             </exclusion>
797           </exclusions>
798         </dependency>
799         <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
800         <dependency>
801           <groupId>io.netty</groupId>
802           <artifactId>netty</artifactId>
803           <version>${netty.hadoop.version}</version>
804           <scope>test</scope>
805         </dependency-->
806       </dependencies>
807       <build>
808         <plugins>
809           <plugin>
810             <artifactId>maven-dependency-plugin</artifactId>
811             <executions>
812               <execution>
813                 <id>create-mrapp-generated-classpath</id>
814                 <phase>generate-test-resources</phase>
815                 <goals>
816                   <goal>build-classpath</goal>
817                 </goals>
818                 <configuration>
819                   <!-- needed to run the unit test for DS to generate
820                   the required classpath that is required in the env
821                   of the launch container in the mini mr/yarn cluster
822                   -->
823                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
824                 </configuration>
825               </execution>
826             </executions>
827           </plugin>
828         </plugins>
829       </build>
830     </profile>
831     <profile>
832       <id>eclipse-specific</id>
833       <activation>
834         <property>
835           <name>m2e.version</name>
836         </property>
837       </activation>
838       <build>
839         <plugins>
840           <plugin>
841             <groupId>org.apache.maven.plugins</groupId>
842             <artifactId>maven-eclipse-plugin</artifactId>
843             <configuration>
844               <additionalProjectnatures>
845                 <projectnature>org.jamon.project.jamonnature</projectnature>
846               </additionalProjectnatures>
847               <buildcommands>
848                 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
849                 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
850                 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
851               </buildcommands>
852               <additionalConfig>
853                 <file>
854                   <name>.settings/org.jamon.prefs</name>
855                   <content># now
856                     eclipse.preferences.version=1
857                     templateSourceDir=src/main/jamon
858                     templateOutputDir=target/generated-jamon
859                   </content>
860                 </file>
861               </additionalConfig>
862             </configuration>
863           </plugin>
864         </plugins>
865         <pluginManagement>
866            <plugins>
867              <!--This plugin's configuration is used to store Eclipse m2e settings
868                  only. It has no influence on the Maven build itself and needs to
869                  be kept in plugin management, not in the actual plugins. -->
870             <plugin>
871               <groupId>org.eclipse.m2e</groupId>
872               <artifactId>lifecycle-mapping</artifactId>
873               <configuration>
874                 <lifecycleMappingMetadata>
875                   <pluginExecutions>
876                     <pluginExecution>
877                       <pluginExecutionFilter>
878                         <groupId>org.jamon</groupId>
879                         <artifactId>jamon-maven-plugin</artifactId>
880                         <versionRange>[2.3.4,)</versionRange>
881                         <goals>
882                           <goal>translate</goal>
883                         </goals>
884                       </pluginExecutionFilter>
885                       <action>
886                           <execute>
887                             <runOnIncremental>false</runOnIncremental>
888                             <runOnConfiguration>true</runOnConfiguration>
889                           </execute>
890                       </action>
891                     </pluginExecution>
892                     <pluginExecution>
893                       <pluginExecutionFilter>
894                         <groupId>org.apache.maven.plugins</groupId>
895                         <artifactId>maven-antrun-plugin</artifactId>
896                         <versionRange>[1.6,)</versionRange>
897                         <goals>
898                           <goal>run</goal>
899                         </goals>
900                       </pluginExecutionFilter>
901                       <action>
902                         <execute>
903                           <runOnIncremental>false</runOnIncremental>
904                           <runOnConfiguration>true</runOnConfiguration>
905                         </execute>
906                       </action>
907                     </pluginExecution>
908                     <pluginExecution>
909                       <pluginExecutionFilter>
910                         <groupId>org.apache.maven.plugins</groupId>
911                         <artifactId>maven-dependency-plugin</artifactId>
912                         <versionRange>[2.8,)</versionRange>
913                         <goals>
914                           <goal>build-classpath</goal>
915                         </goals>
916                       </pluginExecutionFilter>
917                       <action>
918                         <ignore></ignore>
919                       </action>
920                     </pluginExecution>
921                   </pluginExecutions>
922                 </lifecycleMappingMetadata>
923               </configuration>
924             </plugin>
925           </plugins>
926         </pluginManagement>
927       </build>
928     </profile>
929   </profiles>
930 </project>