HBASE-24000 Simplify CommonFSUtils after upgrading to hadoop 2.10.0 (#1335)
[hbase.git] / hbase-server / pom.xml
blob05813f5b06738e691f0eeb42b4095784b2081803
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       <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-common</artifactId>
252     </dependency>
253     <dependency>
254       <groupId>org.apache.hbase</groupId>
255       <artifactId>hbase-http</artifactId>
256       <exclusions>
257         <exclusion>
258           <groupId>org.codehaus.jackson</groupId>
259           <artifactId>jackson-core-asl</artifactId>
260         </exclusion>
261       </exclusions>
262     </dependency>
263     <dependency>
264       <groupId>org.apache.hbase</groupId>
265       <artifactId>hbase-http</artifactId>
266       <type>test-jar</type>
267       <scope>test</scope>
268     </dependency>
269     <dependency>
270       <!--Needed by the visiblity tags and acl CPEP things
271            in here in hbase-server (that should be out in hbase-endpoints
272            or integrated). -->
273       <groupId>org.apache.hbase</groupId>
274       <artifactId>hbase-protocol</artifactId>
275     </dependency>
276     <dependency>
277       <groupId>org.apache.hbase</groupId>
278       <artifactId>hbase-protocol-shaded</artifactId>
279     </dependency>
280     <dependency>
281       <groupId>org.apache.hbase</groupId>
282       <artifactId>hbase-procedure</artifactId>
283     </dependency>
284     <dependency>
285       <groupId>org.apache.hbase</groupId>
286       <artifactId>hbase-client</artifactId>
287     </dependency>
288     <dependency>
289       <groupId>org.apache.hbase</groupId>
290       <artifactId>hbase-zookeeper</artifactId>
291     </dependency>
292     <dependency>
293       <groupId>org.apache.hbase</groupId>
294       <artifactId>hbase-replication</artifactId>
295     </dependency>
296     <dependency>
297       <groupId>org.apache.hbase</groupId>
298       <artifactId>hbase-common</artifactId>
299       <type>test-jar</type>
300       <scope>test</scope>
301     </dependency>
302     <dependency>
303       <groupId>org.apache.hbase</groupId>
304       <artifactId>hbase-annotations</artifactId>
305       <type>test-jar</type>
306       <scope>test</scope>
307     </dependency>
308     <dependency>
309       <groupId>org.apache.hbase</groupId>
310       <artifactId>hbase-procedure</artifactId>
311       <type>test-jar</type>
312       <scope>test</scope>
313     </dependency>
314     <dependency>
315       <groupId>org.apache.hbase</groupId>
316       <artifactId>hbase-zookeeper</artifactId>
317       <type>test-jar</type>
318       <scope>test</scope>
319     </dependency>
320     <dependency>
321       <groupId>org.apache.hbase</groupId>
322       <artifactId>hbase-metrics-api</artifactId>
323     </dependency>
324     <dependency>
325       <groupId>org.apache.hbase</groupId>
326       <artifactId>hbase-metrics</artifactId>
327     </dependency>
328     <dependency>
329       <groupId>commons-codec</groupId>
330       <artifactId>commons-codec</artifactId>
331     </dependency>
332     <dependency>
333       <groupId>org.apache.hbase</groupId>
334       <artifactId>hbase-hadoop-compat</artifactId>
335     </dependency>
336     <dependency>
337       <groupId>org.apache.hbase</groupId>
338       <artifactId>hbase-hadoop-compat</artifactId>
339       <type>test-jar</type>
340       <scope>test</scope>
341     </dependency>
342     <dependency>
343       <groupId>org.apache.hbase</groupId>
344       <artifactId>${compat.module}</artifactId>
345       <version>${project.version}</version>
346     </dependency>
347     <dependency>
348       <groupId>org.apache.hbase</groupId>
349       <artifactId>${compat.module}</artifactId>
350       <version>${project.version}</version>
351       <type>test-jar</type>
352       <scope>test</scope>
353     </dependency>
354     <dependency>
355       <groupId>org.eclipse.jetty</groupId>
356       <artifactId>jetty-server</artifactId>
357     </dependency>
358     <dependency>
359       <groupId>org.eclipse.jetty</groupId>
360       <artifactId>jetty-servlet</artifactId>
361     </dependency>
362     <dependency>
363       <groupId>org.eclipse.jetty</groupId>
364       <artifactId>jetty-webapp</artifactId>
365     </dependency>
366     <dependency>
367       <!-- For JspC used in ant task, then needed at compile /runtime
368            because the source code made from the JSP refers to its runtime
369         -->
370       <groupId>org.glassfish.web</groupId>
371       <artifactId>javax.servlet.jsp</artifactId>
372     </dependency>
373       <!-- Also used by generated sources from our JSP -->
374     <dependency>
375       <groupId>javax.servlet.jsp</groupId>
376       <artifactId>javax.servlet.jsp-api</artifactId>
377     </dependency>
378     <!-- General dependencies -->
379     <dependency>
380       <groupId>com.github.stephenc.findbugs</groupId>
381       <artifactId>findbugs-annotations</artifactId>
382       <scope>compile</scope>
383       <optional>true</optional>
384     </dependency>
385     <dependency>
386       <groupId>com.github.ben-manes.caffeine</groupId>
387       <artifactId>caffeine</artifactId>
388     </dependency>
389     <dependency>
390       <groupId>io.dropwizard.metrics</groupId>
391       <artifactId>metrics-core</artifactId>
392     </dependency>
393     <dependency>
394       <groupId>com.google.protobuf</groupId>
395       <artifactId>protobuf-java</artifactId>
396     </dependency>
397     <dependency>
398       <groupId>commons-io</groupId>
399       <artifactId>commons-io</artifactId>
400     </dependency>
401     <dependency>
402       <groupId>org.apache.commons</groupId>
403       <artifactId>commons-lang3</artifactId>
404     </dependency>
405     <dependency>
406       <groupId>org.slf4j</groupId>
407       <artifactId>slf4j-api</artifactId>
408     </dependency>
409     <dependency>
410       <groupId>org.apache.commons</groupId>
411       <artifactId>commons-math3</artifactId>
412     </dependency>
413     <dependency>
414       <groupId>org.slf4j</groupId>
415       <artifactId>slf4j-log4j12</artifactId>
416     </dependency>
417     <dependency>
418       <groupId>log4j</groupId>
419       <artifactId>log4j</artifactId>
420     </dependency>
421     <dependency>
422       <groupId>org.apache.zookeeper</groupId>
423       <artifactId>zookeeper</artifactId>
424     </dependency>
425     <dependency>
426       <groupId>org.jamon</groupId>
427       <artifactId>jamon-runtime</artifactId>
428     </dependency>
429     <dependency>
430       <groupId>javax.servlet</groupId>
431       <artifactId>javax.servlet-api</artifactId>
432     </dependency>
433     <!-- tracing Dependencies -->
434     <dependency>
435       <groupId>org.apache.htrace</groupId>
436       <artifactId>htrace-core4</artifactId>
437     </dependency>
438     <dependency>
439       <groupId>com.lmax</groupId>
440       <artifactId>disruptor</artifactId>
441     </dependency>
442     <!-- Test dependencies -->
443     <dependency>
444       <groupId>org.hamcrest</groupId>
445       <artifactId>hamcrest-core</artifactId>
446       <scope>test</scope>
447     </dependency>
448     <dependency>
449       <groupId>org.hamcrest</groupId>
450       <artifactId>hamcrest-library</artifactId>
451       <scope>test</scope>
452     </dependency>
453     <dependency>
454       <groupId>org.bouncycastle</groupId>
455       <artifactId>bcprov-jdk15on</artifactId>
456       <scope>test</scope>
457     </dependency>
458     <dependency>
459       <groupId>org.apache.hadoop</groupId>
460       <artifactId>hadoop-minikdc</artifactId>
461       <scope>test</scope>
462       <exclusions>
463         <exclusion>
464           <groupId>bouncycastle</groupId>
465           <artifactId>bcprov-jdk15</artifactId>
466         </exclusion>
467       </exclusions>
468     </dependency>
469     <dependency>
470       <groupId>org.apache.kerby</groupId>
471       <artifactId>kerb-client</artifactId>
472       <scope>test</scope>
473     </dependency>
474     <dependency>
475       <groupId>org.apache.kerby</groupId>
476       <artifactId>kerb-simplekdc</artifactId>
477       <scope>test</scope>
478     </dependency>
479     <dependency>
480       <groupId>org.apache.httpcomponents</groupId>
481       <artifactId>httpclient</artifactId>
482       <scope>test</scope>
483     </dependency>
484     <dependency>
485       <groupId>org.apache.httpcomponents</groupId>
486       <artifactId>httpcore</artifactId>
487       <scope>test</scope>
488     </dependency>
489     <!-- commons-logging is used by HBTU to monkey with log levels
490          have to put it at compile scope because Hadoop's IOUtils uses it
491          both for hadoop 2.7 and 3.0, so we'll fail at compile if it's at test scope.
492       -->
493     <dependency>
494       <groupId>commons-logging</groupId>
495       <artifactId>commons-logging</artifactId>
496       <scope>compile</scope>
497     </dependency>
498     <dependency>
499       <groupId>org.apache.commons</groupId>
500       <artifactId>commons-crypto</artifactId>
501       <exclusions>
502         <exclusion>
503           <groupId>net.java.dev.jna</groupId>
504           <artifactId>jna</artifactId>
505         </exclusion>
506       </exclusions>
507     </dependency>
508     <dependency>
509       <groupId>junit</groupId>
510       <artifactId>junit</artifactId>
511       <scope>test</scope>
512     </dependency>
513     <dependency>
514       <groupId>org.mockito</groupId>
515       <artifactId>mockito-core</artifactId>
516       <scope>test</scope>
517     </dependency>
518   </dependencies>
519   <profiles>
520     <!-- Needs to make the profile in apache parent pom -->
521     <profile>
522       <id>apache-release</id>
523       <build>
524         <plugins>
525           <plugin>
526             <groupId>org.apache.maven.plugins</groupId>
527             <artifactId>maven-resources-plugin</artifactId>
528             <executions>
529               <execution>
530                 <id>license-javadocs</id>
531                 <phase>prepare-package</phase>
532                 <goals>
533                   <goal>copy-resources</goal>
534                 </goals>
535                 <configuration>
536                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
537                   <resources>
538                     <resource>
539                       <directory>src/main/javadoc/META-INF/</directory>
540                       <targetPath>META-INF/</targetPath>
541                       <includes>
542                         <include>LICENSE</include>
543                         <include>NOTICE</include>
544                       </includes>
545                       <filtering>true</filtering>
546                     </resource>
547                   </resources>
548                 </configuration>
549               </execution>
550             </executions>
551           </plugin>
552         </plugins>
553       </build>
554     </profile>
555     <!-- Skip the tests in this module -->
556     <profile>
557       <id>skipServerTests</id>
558       <activation>
559         <property>
560           <name>skipServerTests</name>
561         </property>
562       </activation>
563       <properties>
564         <surefire.skipFirstPart>true</surefire.skipFirstPart>
565         <surefire.skipSecondPart>true</surefire.skipSecondPart>
566       </properties>
567     </profile>
568     <!-- Special builds -->
569     <profile>
570       <id>native</id>
571       <activation>
572         <activeByDefault>false</activeByDefault>
573       </activation>
574       <build>
575         <plugins>
576           <plugin>
577             <groupId>org.apache.maven.plugins</groupId>
578             <artifactId>maven-antrun-plugin</artifactId>
579             <executions>
580               <execution>
581                 <id>make</id>
582                 <phase>compile</phase>
583                 <goals><goal>run</goal></goals>
584                 <configuration>
585                   <target>
586                     <mkdir dir="${project.build.directory}/native"/>
587                     <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
588                       <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
589                     </exec>
590                     <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
591                       <arg line="VERBOSE=1"/>
592                     </exec>
593                   </target>
594                 </configuration>
595               </execution>
596             </executions>
597           </plugin>
598         </plugins>
599       </build>
600     </profile>
601     <!-- Profiles for building against different hadoop versions -->
602     <!-- There are a lot of common dependencies used here, should investigate
603     if we can combine these profiles somehow -->
605     <!-- profile for building against Hadoop 2.x.  This is the default.  -->
606     <profile>
607       <id>hadoop-2.0</id>
608       <activation>
609         <property>
610             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
611             <!--h2--><name>!hadoop.profile</name>
612         </property>
613       </activation>
614       <dependencies>
615         <dependency>
616           <groupId>org.apache.hadoop</groupId>
617           <artifactId>hadoop-distcp</artifactId>
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         </dependency>
727         <dependency>
728           <groupId>org.apache.hadoop</groupId>
729           <artifactId>hadoop-common</artifactId>
730         </dependency>
731         <dependency>
732           <groupId>org.apache.hadoop</groupId>
733           <artifactId>hadoop-hdfs</artifactId>
734         </dependency>
735         <dependency>
736           <groupId>org.apache.hadoop</groupId>
737           <artifactId>hadoop-hdfs-client</artifactId>
738         </dependency>
739         <dependency>
740           <groupId>org.apache.hadoop</groupId>
741           <artifactId>hadoop-mapreduce-client-core</artifactId>
742         </dependency>
743         <dependency>
744           <groupId>org.apache.hadoop</groupId>
745           <artifactId>hadoop-hdfs</artifactId>
746           <type>test-jar</type>
747           <scope>test</scope>
748         </dependency>
749         <dependency>
750           <groupId>org.apache.hadoop</groupId>
751           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
752           <type>test-jar</type>
753           <scope>test</scope>
754         </dependency>
755         <dependency>
756           <groupId>org.apache.hadoop</groupId>
757           <artifactId>hadoop-annotations</artifactId>
758         </dependency>
759         <dependency>
760           <groupId>org.apache.hadoop</groupId>
761           <artifactId>hadoop-minicluster</artifactId>
762           <scope>test</scope>
763         </dependency>
764         <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
765         <dependency>
766           <groupId>io.netty</groupId>
767           <artifactId>netty</artifactId>
768           <version>${netty.hadoop.version}</version>
769           <scope>test</scope>
770         </dependency-->
771       </dependencies>
772       <build>
773         <plugins>
774           <plugin>
775             <artifactId>maven-dependency-plugin</artifactId>
776             <executions>
777               <execution>
778                 <id>create-mrapp-generated-classpath</id>
779                 <phase>generate-test-resources</phase>
780                 <goals>
781                   <goal>build-classpath</goal>
782                 </goals>
783                 <configuration>
784                   <!-- needed to run the unit test for DS to generate
785                   the required classpath that is required in the env
786                   of the launch container in the mini mr/yarn cluster
787                   -->
788                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
789                 </configuration>
790               </execution>
791             </executions>
792           </plugin>
793         </plugins>
794       </build>
795     </profile>
796     <profile>
797       <id>eclipse-specific</id>
798       <activation>
799         <property>
800           <name>m2e.version</name>
801         </property>
802       </activation>
803       <build>
804         <plugins>
805           <plugin>
806             <groupId>org.apache.maven.plugins</groupId>
807             <artifactId>maven-eclipse-plugin</artifactId>
808             <configuration>
809               <additionalProjectnatures>
810                 <projectnature>org.jamon.project.jamonnature</projectnature>
811               </additionalProjectnatures>
812               <buildcommands>
813                 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
814                 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
815                 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
816               </buildcommands>
817               <additionalConfig>
818                 <file>
819                   <name>.settings/org.jamon.prefs</name>
820                   <content># now
821                     eclipse.preferences.version=1
822                     templateSourceDir=src/main/jamon
823                     templateOutputDir=target/generated-jamon
824                   </content>
825                 </file>
826               </additionalConfig>
827             </configuration>
828           </plugin>
829         </plugins>
830         <pluginManagement>
831            <plugins>
832              <!--This plugin's configuration is used to store Eclipse m2e settings
833                  only. It has no influence on the Maven build itself and needs to
834                  be kept in plugin management, not in the actual plugins. -->
835             <plugin>
836               <groupId>org.eclipse.m2e</groupId>
837               <artifactId>lifecycle-mapping</artifactId>
838               <configuration>
839                 <lifecycleMappingMetadata>
840                   <pluginExecutions>
841                     <pluginExecution>
842                       <pluginExecutionFilter>
843                         <groupId>org.jamon</groupId>
844                         <artifactId>jamon-maven-plugin</artifactId>
845                         <versionRange>[2.3.4,)</versionRange>
846                         <goals>
847                           <goal>translate</goal>
848                         </goals>
849                       </pluginExecutionFilter>
850                       <action>
851                           <execute>
852                             <runOnIncremental>false</runOnIncremental>
853                             <runOnConfiguration>true</runOnConfiguration>
854                           </execute>
855                       </action>
856                     </pluginExecution>
857                     <pluginExecution>
858                       <pluginExecutionFilter>
859                         <groupId>org.apache.maven.plugins</groupId>
860                         <artifactId>maven-antrun-plugin</artifactId>
861                         <versionRange>[1.6,)</versionRange>
862                         <goals>
863                           <goal>run</goal>
864                         </goals>
865                       </pluginExecutionFilter>
866                       <action>
867                         <execute>
868                           <runOnIncremental>false</runOnIncremental>
869                           <runOnConfiguration>true</runOnConfiguration>
870                         </execute>
871                       </action>
872                     </pluginExecution>
873                     <pluginExecution>
874                       <pluginExecutionFilter>
875                         <groupId>org.apache.maven.plugins</groupId>
876                         <artifactId>maven-dependency-plugin</artifactId>
877                         <versionRange>[2.8,)</versionRange>
878                         <goals>
879                           <goal>build-classpath</goal>
880                         </goals>
881                       </pluginExecutionFilter>
882                       <action>
883                         <ignore></ignore>
884                       </action>
885                     </pluginExecution>
886                   </pluginExecutions>
887                 </lifecycleMappingMetadata>
888               </configuration>
889             </plugin>
890           </plugins>
891         </pluginManagement>
892       </build>
893     </profile>
894   </profiles>
895 </project>