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