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