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