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