HBASE-22943 Various procedures should not cache log trace level (#557)
[hbase.git] / hbase-server / pom.xml
bloba2577da0750c719a1ac5f563a60da175a5e43d77
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       <exclusions>
249         <exclusion>
250           <groupId>org.codehaus.jackson</groupId>
251           <artifactId>jackson-core-asl</artifactId>
252         </exclusion>
253       </exclusions>
254     </dependency>
255     <dependency>
256       <groupId>org.apache.hbase</groupId>
257       <artifactId>hbase-http</artifactId>
258       <type>test-jar</type>
259       <scope>test</scope>
260     </dependency>
261     <dependency>
262       <!--Needed by the visiblity tags and acl CPEP things
263            in here in hbase-server (that should be out in hbase-endpoints
264            or integrated). -->
265       <groupId>org.apache.hbase</groupId>
266       <artifactId>hbase-protocol</artifactId>
267     </dependency>
268     <dependency>
269       <groupId>org.apache.hbase</groupId>
270       <artifactId>hbase-protocol-shaded</artifactId>
271     </dependency>
272     <dependency>
273       <groupId>org.apache.hbase</groupId>
274       <artifactId>hbase-procedure</artifactId>
275     </dependency>
276     <dependency>
277       <groupId>org.apache.hbase</groupId>
278       <artifactId>hbase-client</artifactId>
279     </dependency>
280     <dependency>
281       <groupId>org.apache.hbase</groupId>
282       <artifactId>hbase-zookeeper</artifactId>
283     </dependency>
284     <dependency>
285       <groupId>org.apache.hbase</groupId>
286       <artifactId>hbase-replication</artifactId>
287     </dependency>
288     <dependency>
289       <groupId>org.apache.hbase</groupId>
290       <artifactId>hbase-common</artifactId>
291       <type>test-jar</type>
292       <scope>test</scope>
293     </dependency>
294     <dependency>
295       <groupId>org.apache.hbase</groupId>
296       <artifactId>hbase-annotations</artifactId>
297       <type>test-jar</type>
298       <scope>test</scope>
299     </dependency>
300     <dependency>
301       <groupId>org.apache.hbase</groupId>
302       <artifactId>hbase-procedure</artifactId>
303       <type>test-jar</type>
304       <scope>test</scope>
305     </dependency>
306     <dependency>
307       <groupId>org.apache.hbase</groupId>
308       <artifactId>hbase-zookeeper</artifactId>
309       <type>test-jar</type>
310       <scope>test</scope>
311     </dependency>
312     <dependency>
313       <groupId>org.apache.hbase</groupId>
314       <artifactId>hbase-metrics-api</artifactId>
315     </dependency>
316     <dependency>
317       <groupId>org.apache.hbase</groupId>
318       <artifactId>hbase-metrics</artifactId>
319     </dependency>
320     <dependency>
321       <groupId>commons-codec</groupId>
322       <artifactId>commons-codec</artifactId>
323     </dependency>
324     <dependency>
325       <groupId>org.apache.hbase</groupId>
326       <artifactId>hbase-hadoop-compat</artifactId>
327     </dependency>
328     <dependency>
329       <groupId>org.apache.hbase</groupId>
330       <artifactId>hbase-hadoop-compat</artifactId>
331       <type>test-jar</type>
332       <scope>test</scope>
333     </dependency>
334     <dependency>
335       <groupId>org.apache.hbase</groupId>
336       <artifactId>${compat.module}</artifactId>
337       <version>${project.version}</version>
338     </dependency>
339     <dependency>
340       <groupId>org.apache.hbase</groupId>
341       <artifactId>${compat.module}</artifactId>
342       <version>${project.version}</version>
343       <type>test-jar</type>
344       <scope>test</scope>
345     </dependency>
346     <dependency>
347       <groupId>org.eclipse.jetty</groupId>
348       <artifactId>jetty-server</artifactId>
349     </dependency>
350     <dependency>
351       <groupId>org.eclipse.jetty</groupId>
352       <artifactId>jetty-servlet</artifactId>
353     </dependency>
354     <dependency>
355       <groupId>org.eclipse.jetty</groupId>
356       <artifactId>jetty-webapp</artifactId>
357     </dependency>
358     <dependency>
359       <!-- For JspC used in ant task, then needed at compile /runtime
360            because the source code made from the JSP refers to its runtime
361         -->
362       <groupId>org.glassfish.web</groupId>
363       <artifactId>javax.servlet.jsp</artifactId>
364     </dependency>
365       <!-- Also used by generated sources from our JSP -->
366     <dependency>
367       <groupId>javax.servlet.jsp</groupId>
368       <artifactId>javax.servlet.jsp-api</artifactId>
369     </dependency>
370     <!-- General dependencies -->
371     <dependency>
372        <groupId>com.github.stephenc.findbugs</groupId>
373        <artifactId>findbugs-annotations</artifactId>
374        <optional>true</optional>
375     </dependency>
376     <dependency>
377       <groupId>com.github.ben-manes.caffeine</groupId>
378       <artifactId>caffeine</artifactId>
379     </dependency>
380     <dependency>
381       <groupId>io.dropwizard.metrics</groupId>
382       <artifactId>metrics-core</artifactId>
383     </dependency>
384     <dependency>
385       <groupId>com.google.protobuf</groupId>
386       <artifactId>protobuf-java</artifactId>
387     </dependency>
388     <dependency>
389       <groupId>commons-io</groupId>
390       <artifactId>commons-io</artifactId>
391     </dependency>
392     <dependency>
393       <groupId>org.apache.commons</groupId>
394       <artifactId>commons-lang3</artifactId>
395     </dependency>
396     <dependency>
397       <groupId>org.slf4j</groupId>
398       <artifactId>slf4j-api</artifactId>
399     </dependency>
400     <dependency>
401       <groupId>org.apache.commons</groupId>
402       <artifactId>commons-math3</artifactId>
403     </dependency>
404     <dependency>
405       <groupId>org.slf4j</groupId>
406       <artifactId>slf4j-log4j12</artifactId>
407     </dependency>
408     <dependency>
409       <groupId>log4j</groupId>
410       <artifactId>log4j</artifactId>
411     </dependency>
412     <dependency>
413       <groupId>org.apache.zookeeper</groupId>
414       <artifactId>zookeeper</artifactId>
415     </dependency>
416     <dependency>
417       <groupId>org.jamon</groupId>
418       <artifactId>jamon-runtime</artifactId>
419     </dependency>
420     <dependency>
421       <groupId>javax.servlet</groupId>
422       <artifactId>javax.servlet-api</artifactId>
423     </dependency>
424     <!-- tracing Dependencies -->
425     <dependency>
426       <groupId>org.apache.htrace</groupId>
427       <artifactId>htrace-core4</artifactId>
428     </dependency>
429     <dependency>
430       <groupId>com.lmax</groupId>
431       <artifactId>disruptor</artifactId>
432     </dependency>
433     <!-- Test dependencies -->
434     <dependency>
435       <groupId>org.hamcrest</groupId>
436       <artifactId>hamcrest-core</artifactId>
437       <scope>test</scope>
438     </dependency>
439     <dependency>
440       <groupId>org.bouncycastle</groupId>
441       <artifactId>bcprov-jdk15on</artifactId>
442       <scope>test</scope>
443     </dependency>
444     <dependency>
445       <groupId>org.apache.hadoop</groupId>
446       <artifactId>hadoop-minikdc</artifactId>
447       <scope>test</scope>
448       <exclusions>
449         <exclusion>
450           <groupId>bouncycastle</groupId>
451           <artifactId>bcprov-jdk15</artifactId>
452         </exclusion>
453       </exclusions>
454     </dependency>
455     <dependency>
456       <groupId>org.apache.kerby</groupId>
457       <artifactId>kerb-client</artifactId>
458       <scope>test</scope>
459     </dependency>
460     <dependency>
461       <groupId>org.apache.kerby</groupId>
462       <artifactId>kerb-simplekdc</artifactId>
463       <scope>test</scope>
464     </dependency>
465     <dependency>
466       <groupId>org.apache.httpcomponents</groupId>
467       <artifactId>httpclient</artifactId>
468       <scope>test</scope>
469     </dependency>
470     <dependency>
471       <groupId>org.apache.httpcomponents</groupId>
472       <artifactId>httpcore</artifactId>
473       <scope>test</scope>
474     </dependency>
475     <!-- commons-logging is used by HBTU to monkey with log levels
476          have to put it at compile scope because Hadoop's IOUtils uses it
477          both for hadoop 2.7 and 3.0, so we'll fail at compile if it's at test scope.
478       -->
479     <dependency>
480       <groupId>commons-logging</groupId>
481       <artifactId>commons-logging</artifactId>
482       <scope>compile</scope>
483     </dependency>
484     <dependency>
485       <groupId>org.apache.commons</groupId>
486       <artifactId>commons-crypto</artifactId>
487       <exclusions>
488         <exclusion>
489           <groupId>net.java.dev.jna</groupId>
490           <artifactId>jna</artifactId>
491         </exclusion>
492       </exclusions>
493     </dependency>
494     <dependency>
495       <groupId>junit</groupId>
496       <artifactId>junit</artifactId>
497       <scope>test</scope>
498     </dependency>
499     <dependency>
500       <groupId>org.mockito</groupId>
501       <artifactId>mockito-core</artifactId>
502       <scope>test</scope>
503     </dependency>
504   </dependencies>
505   <profiles>
506     <!-- Needs to make the profile in apache parent pom -->
507     <profile>
508       <id>apache-release</id>
509       <build>
510         <plugins>
511           <plugin>
512             <groupId>org.apache.maven.plugins</groupId>
513             <artifactId>maven-resources-plugin</artifactId>
514             <executions>
515               <execution>
516                 <id>license-javadocs</id>
517                 <phase>prepare-package</phase>
518                 <goals>
519                   <goal>copy-resources</goal>
520                 </goals>
521                 <configuration>
522                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
523                   <resources>
524                     <resource>
525                       <directory>src/main/javadoc/META-INF/</directory>
526                       <targetPath>META-INF/</targetPath>
527                       <includes>
528                         <include>LICENSE</include>
529                         <include>NOTICE</include>
530                       </includes>
531                       <filtering>true</filtering>
532                     </resource>
533                   </resources>
534                 </configuration>
535               </execution>
536             </executions>
537           </plugin>
538         </plugins>
539       </build>
540     </profile>
541     <!-- Skip the tests in this module -->
542     <profile>
543       <id>skipServerTests</id>
544       <activation>
545         <property>
546           <name>skipServerTests</name>
547         </property>
548       </activation>
549       <properties>
550         <surefire.skipFirstPart>true</surefire.skipFirstPart>
551         <surefire.skipSecondPart>true</surefire.skipSecondPart>
552       </properties>
553     </profile>
554     <!-- Special builds -->
555     <profile>
556       <id>native</id>
557       <activation>
558         <activeByDefault>false</activeByDefault>
559       </activation>
560       <build>
561         <plugins>
562           <plugin>
563             <groupId>org.apache.maven.plugins</groupId>
564             <artifactId>maven-antrun-plugin</artifactId>
565             <executions>
566               <execution>
567                 <id>make</id>
568                 <phase>compile</phase>
569                 <goals><goal>run</goal></goals>
570                 <configuration>
571                   <target>
572                     <mkdir dir="${project.build.directory}/native"/>
573                     <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
574                       <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
575                     </exec>
576                     <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
577                       <arg line="VERBOSE=1"/>
578                     </exec>
579                   </target>
580                 </configuration>
581               </execution>
582             </executions>
583           </plugin>
584         </plugins>
585       </build>
586     </profile>
587     <!-- Profiles for building against different hadoop versions -->
588     <!-- There are a lot of common dependencies used here, should investigate
589     if we can combine these profiles somehow -->
591     <!-- profile for building against Hadoop 2.x.  This is the default.  -->
592     <profile>
593       <id>hadoop-2.0</id>
594       <activation>
595         <property>
596             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
597             <!--h2--><name>!hadoop.profile</name>
598         </property>
599       </activation>
600       <dependencies>
601         <dependency>
602           <groupId>org.apache.hadoop</groupId>
603           <artifactId>hadoop-distcp</artifactId>
604           <!--This dependency is not in top-level pom so needs
605                version specified-->
606           <version>${hadoop-two.version}</version>
607         </dependency>
608         <dependency>
609           <groupId>org.apache.hadoop</groupId>
610           <artifactId>hadoop-common</artifactId>
611         </dependency>
612         <dependency>
613           <groupId>org.apache.hadoop</groupId>
614           <artifactId>hadoop-auth</artifactId>
615         </dependency>
616         <dependency>
617           <groupId>org.apache.hadoop</groupId>
618           <artifactId>hadoop-annotations</artifactId>
619         </dependency>
620         <dependency>
621           <groupId>org.apache.hadoop</groupId>
622           <artifactId>hadoop-mapreduce-client-core</artifactId>
623           <exclusions>
624             <exclusion>
625               <groupId>com.google.guava</groupId>
626               <artifactId>guava</artifactId>
627             </exclusion>
628           </exclusions>
629         </dependency>
630         <dependency>
631           <groupId>org.apache.hadoop</groupId>
632           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
633           <type>test-jar</type>
634           <scope>test</scope>
635           <exclusions>
636             <exclusion>
637               <groupId>com.google.guava</groupId>
638               <artifactId>guava</artifactId>
639             </exclusion>
640           </exclusions>
641         </dependency>
642         <dependency>
643           <groupId>org.apache.hadoop</groupId>
644           <artifactId>hadoop-hdfs</artifactId>
645         </dependency>
646         <dependency>
647           <groupId>org.apache.hadoop</groupId>
648           <artifactId>hadoop-hdfs</artifactId>
649           <type>test-jar</type>
650           <scope>test</scope>
651         </dependency>
652         <dependency>
653           <groupId>org.apache.hadoop</groupId>
654           <artifactId>hadoop-minicluster</artifactId>
655           <scope>test</scope>
656           <exclusions>
657             <exclusion>
658               <groupId>com.google.guava</groupId>
659               <artifactId>guava</artifactId>
660             </exclusion>
661             <exclusion>
662               <groupId>org.apache.zookeeper</groupId>
663               <artifactId>zookeeper</artifactId>
664             </exclusion>
665           </exclusions>
666         </dependency>
667         <!-- Hadoop needs Netty 3.x at test scope for the minicluster -->
668         <dependency>
669           <groupId>io.netty</groupId>
670           <artifactId>netty</artifactId>
671           <version>${netty.hadoop.version}</version>
672           <scope>test</scope>
673         </dependency>
674       </dependencies>
675       <build>
676         <plugins>
677           <plugin>
678             <artifactId>maven-dependency-plugin</artifactId>
679             <executions>
680               <execution>
681                 <id>create-mrapp-generated-classpath</id>
682                 <phase>generate-test-resources</phase>
683                 <goals>
684                   <goal>build-classpath</goal>
685                 </goals>
686                 <configuration>
687                   <!-- needed to run the unit test for DS to generate
688                   the required classpath that is required in the env
689                   of the launch container in the mini mr/yarn cluster
690                   -->
691                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
692                 </configuration>
693               </execution>
694             </executions>
695           </plugin>
696         </plugins>
697       </build>
698     </profile>
699     <!--
700       profile for building against Hadoop 3.0.x. Activate using:
701        mvn -Dhadoop.profile=3.0
702     -->
703     <profile>
704       <id>hadoop-3.0</id>
705       <activation>
706         <property>
707           <name>hadoop.profile</name>
708           <value>3.0</value>
709         </property>
710       </activation>
711       <dependencies>
712         <dependency>
713           <groupId>org.apache.hadoop</groupId>
714           <artifactId>hadoop-distcp</artifactId>
715           <!--This dependency is not in top-level pom so needs
716                version specified-->
717           <version>${hadoop-three.version}</version>
718         </dependency>
719         <dependency>
720           <groupId>org.apache.hadoop</groupId>
721           <artifactId>hadoop-common</artifactId>
722         </dependency>
723         <dependency>
724           <groupId>org.apache.hadoop</groupId>
725           <artifactId>hadoop-hdfs</artifactId>
726         </dependency>
727         <dependency>
728           <groupId>org.apache.hadoop</groupId>
729           <artifactId>hadoop-hdfs-client</artifactId>
730           <version>${hadoop.version}</version>
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>