HBASE-24102 : Undo visibility change for RegionMover fields (ADDENDUM)
[hbase.git] / hbase-server / pom.xml
blobf1c28473c262a75f19351944531e75712ec50038
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-logging</artifactId>
252       <type>test-jar</type>
253       <scope>test</scope>
254     </dependency>
255     <dependency>
256       <groupId>org.apache.hbase</groupId>
257       <artifactId>hbase-common</artifactId>
258     </dependency>
259     <dependency>
260       <groupId>org.apache.hbase</groupId>
261       <artifactId>hbase-http</artifactId>
262       <exclusions>
263         <exclusion>
264           <groupId>org.codehaus.jackson</groupId>
265           <artifactId>jackson-core-asl</artifactId>
266         </exclusion>
267       </exclusions>
268     </dependency>
269     <dependency>
270       <groupId>org.apache.hbase</groupId>
271       <artifactId>hbase-http</artifactId>
272       <type>test-jar</type>
273       <scope>test</scope>
274     </dependency>
275     <dependency>
276       <groupId>org.apache.hbase</groupId>
277       <artifactId>hbase-protocol-shaded</artifactId>
278     </dependency>
279     <dependency>
280       <groupId>org.apache.hbase</groupId>
281       <artifactId>hbase-procedure</artifactId>
282     </dependency>
283     <dependency>
284       <groupId>org.apache.hbase</groupId>
285       <artifactId>hbase-client</artifactId>
286     </dependency>
287     <dependency>
288       <groupId>org.apache.hbase</groupId>
289       <artifactId>hbase-zookeeper</artifactId>
290     </dependency>
291     <dependency>
292       <groupId>org.apache.hbase</groupId>
293       <artifactId>hbase-replication</artifactId>
294     </dependency>
295     <dependency>
296       <groupId>org.apache.hbase</groupId>
297       <artifactId>hbase-balancer</artifactId>
298     </dependency>
299     <dependency>
300       <groupId>org.apache.hbase</groupId>
301       <artifactId>hbase-common</artifactId>
302       <type>test-jar</type>
303       <scope>test</scope>
304     </dependency>
305     <dependency>
306       <groupId>org.apache.hbase</groupId>
307       <artifactId>hbase-annotations</artifactId>
308       <type>test-jar</type>
309       <scope>test</scope>
310     </dependency>
311     <dependency>
312       <groupId>org.apache.hbase</groupId>
313       <artifactId>hbase-procedure</artifactId>
314       <type>test-jar</type>
315       <scope>test</scope>
316     </dependency>
317     <dependency>
318       <groupId>org.apache.hbase</groupId>
319       <artifactId>hbase-zookeeper</artifactId>
320       <type>test-jar</type>
321       <scope>test</scope>
322     </dependency>
323     <dependency>
324       <groupId>org.apache.hbase</groupId>
325       <artifactId>hbase-metrics-api</artifactId>
326     </dependency>
327     <dependency>
328       <groupId>org.apache.hbase</groupId>
329       <artifactId>hbase-metrics</artifactId>
330     </dependency>
331     <dependency>
332       <groupId>commons-codec</groupId>
333       <artifactId>commons-codec</artifactId>
334     </dependency>
335     <dependency>
336       <groupId>org.apache.hbase</groupId>
337       <artifactId>hbase-hadoop-compat</artifactId>
338     </dependency>
339     <dependency>
340       <groupId>org.apache.hbase</groupId>
341       <artifactId>hbase-hadoop-compat</artifactId>
342       <type>test-jar</type>
343       <scope>test</scope>
344     </dependency>
345     <dependency>
346       <groupId>org.apache.hbase</groupId>
347       <artifactId>hbase-asyncfs</artifactId>
348     </dependency>
349     <dependency>
350       <groupId>org.apache.hbase</groupId>
351       <artifactId>hbase-asyncfs</artifactId>
352       <type>test-jar</type>
353       <scope>test</scope>
354     </dependency>
355     <dependency>
356       <groupId>org.eclipse.jetty</groupId>
357       <artifactId>jetty-server</artifactId>
358     </dependency>
359     <dependency>
360       <groupId>org.eclipse.jetty</groupId>
361       <artifactId>jetty-servlet</artifactId>
362     </dependency>
363     <dependency>
364       <groupId>org.eclipse.jetty</groupId>
365       <artifactId>jetty-webapp</artifactId>
366     </dependency>
367     <dependency>
368       <!-- For JspC used in ant task, then needed at compile /runtime
369            because the source code made from the JSP refers to its runtime
370         -->
371       <groupId>org.glassfish.web</groupId>
372       <artifactId>javax.servlet.jsp</artifactId>
373     </dependency>
374       <!-- Also used by generated sources from our JSP -->
375     <dependency>
376       <groupId>javax.servlet.jsp</groupId>
377       <artifactId>javax.servlet.jsp-api</artifactId>
378     </dependency>
379     <!-- General dependencies -->
380     <dependency>
381       <groupId>com.github.stephenc.findbugs</groupId>
382       <artifactId>findbugs-annotations</artifactId>
383       <scope>compile</scope>
384       <optional>true</optional>
385     </dependency>
386     <dependency>
387       <groupId>com.github.ben-manes.caffeine</groupId>
388       <artifactId>caffeine</artifactId>
389     </dependency>
390     <dependency>
391       <groupId>io.dropwizard.metrics</groupId>
392       <artifactId>metrics-core</artifactId>
393     </dependency>
394     <dependency>
395       <groupId>com.google.protobuf</groupId>
396       <artifactId>protobuf-java</artifactId>
397     </dependency>
398     <dependency>
399       <groupId>commons-io</groupId>
400       <artifactId>commons-io</artifactId>
401     </dependency>
402     <dependency>
403       <groupId>org.apache.commons</groupId>
404       <artifactId>commons-lang3</artifactId>
405     </dependency>
406     <dependency>
407       <groupId>org.slf4j</groupId>
408       <artifactId>slf4j-api</artifactId>
409     </dependency>
410     <dependency>
411       <groupId>org.apache.commons</groupId>
412       <artifactId>commons-math3</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     <dependency>
483       <groupId>org.apache.commons</groupId>
484       <artifactId>commons-crypto</artifactId>
485       <exclusions>
486         <exclusion>
487           <groupId>net.java.dev.jna</groupId>
488           <artifactId>jna</artifactId>
489         </exclusion>
490       </exclusions>
491     </dependency>
492     <dependency>
493       <groupId>junit</groupId>
494       <artifactId>junit</artifactId>
495       <scope>test</scope>
496     </dependency>
497     <dependency>
498       <groupId>org.mockito</groupId>
499       <artifactId>mockito-core</artifactId>
500       <scope>test</scope>
501     </dependency>
502     <dependency>
503       <groupId>org.slf4j</groupId>
504       <artifactId>jcl-over-slf4j</artifactId>
505       <scope>test</scope>
506     </dependency>
507     <dependency>
508       <groupId>org.slf4j</groupId>
509       <artifactId>jul-to-slf4j</artifactId>
510       <scope>test</scope>
511     </dependency>
512     <dependency>
513       <groupId>org.slf4j</groupId>
514       <artifactId>slf4j-log4j12</artifactId>
515       <scope>test</scope>
516     </dependency>
517     <dependency>
518       <groupId>log4j</groupId>
519       <artifactId>log4j</artifactId>
520       <scope>test</scope>
521     </dependency>
522   </dependencies>
523   <profiles>
524     <!-- Needs to make the profile in apache parent pom -->
525     <profile>
526       <id>apache-release</id>
527       <build>
528         <plugins>
529           <plugin>
530             <groupId>org.apache.maven.plugins</groupId>
531             <artifactId>maven-resources-plugin</artifactId>
532             <executions>
533               <execution>
534                 <id>license-javadocs</id>
535                 <phase>prepare-package</phase>
536                 <goals>
537                   <goal>copy-resources</goal>
538                 </goals>
539                 <configuration>
540                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
541                   <resources>
542                     <resource>
543                       <directory>src/main/javadoc/META-INF/</directory>
544                       <targetPath>META-INF/</targetPath>
545                       <includes>
546                         <include>LICENSE</include>
547                         <include>NOTICE</include>
548                       </includes>
549                       <filtering>true</filtering>
550                     </resource>
551                   </resources>
552                 </configuration>
553               </execution>
554             </executions>
555           </plugin>
556         </plugins>
557       </build>
558     </profile>
559     <!-- Skip the tests in this module -->
560     <profile>
561       <id>skipServerTests</id>
562       <activation>
563         <property>
564           <name>skipServerTests</name>
565         </property>
566       </activation>
567       <properties>
568         <surefire.skipFirstPart>true</surefire.skipFirstPart>
569         <surefire.skipSecondPart>true</surefire.skipSecondPart>
570       </properties>
571     </profile>
572     <!-- Special builds -->
573     <profile>
574       <id>native</id>
575       <activation>
576         <activeByDefault>false</activeByDefault>
577       </activation>
578       <build>
579         <plugins>
580           <plugin>
581             <groupId>org.apache.maven.plugins</groupId>
582             <artifactId>maven-antrun-plugin</artifactId>
583             <executions>
584               <execution>
585                 <id>make</id>
586                 <phase>compile</phase>
587                 <goals><goal>run</goal></goals>
588                 <configuration>
589                   <target>
590                     <mkdir dir="${project.build.directory}/native"/>
591                     <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
592                       <arg line="${basedir}/src/main/native -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model}"/>
593                     </exec>
594                     <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
595                       <arg line="VERBOSE=1"/>
596                     </exec>
597                   </target>
598                 </configuration>
599               </execution>
600             </executions>
601           </plugin>
602         </plugins>
603       </build>
604     </profile>
605     <!-- Profiles for building against different hadoop versions -->
606     <!-- There are a lot of common dependencies used here, should investigate
607     if we can combine these profiles somehow -->
608     <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
609     <profile>
610       <id>hadoop-3.0</id>
611       <activation>
612         <property><name>!hadoop.profile</name></property>
613       </activation>
614       <dependencies>
615         <dependency>
616           <groupId>org.apache.hadoop</groupId>
617           <artifactId>hadoop-distcp</artifactId>
618         </dependency>
619         <dependency>
620           <groupId>org.apache.hadoop</groupId>
621           <artifactId>hadoop-common</artifactId>
622         </dependency>
623         <dependency>
624           <groupId>org.apache.hadoop</groupId>
625           <artifactId>hadoop-hdfs</artifactId>
626         </dependency>
627         <dependency>
628           <groupId>org.apache.hadoop</groupId>
629           <artifactId>hadoop-hdfs-client</artifactId>
630         </dependency>
631         <dependency>
632           <groupId>org.apache.hadoop</groupId>
633           <artifactId>hadoop-mapreduce-client-core</artifactId>
634           <exclusions>
635             <exclusion>
636               <groupId>javax.xml.bind</groupId>
637               <artifactId>jaxb-api</artifactId>
638             </exclusion>
639             <exclusion>
640               <groupId>javax.ws.rs</groupId>
641               <artifactId>jsr311-api</artifactId>
642             </exclusion>
643           </exclusions>
644         </dependency>
645         <dependency>
646           <groupId>org.apache.hadoop</groupId>
647           <artifactId>hadoop-hdfs</artifactId>
648           <type>test-jar</type>
649           <scope>test</scope>
650         </dependency>
651         <dependency>
652           <groupId>org.apache.hadoop</groupId>
653           <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
654           <type>test-jar</type>
655           <scope>test</scope>
656         </dependency>
657         <dependency>
658           <groupId>org.apache.hadoop</groupId>
659           <artifactId>hadoop-annotations</artifactId>
660         </dependency>
661         <dependency>
662           <groupId>org.apache.hadoop</groupId>
663           <artifactId>hadoop-minicluster</artifactId>
664           <scope>test</scope>
665           <exclusions>
666             <exclusion>
667               <groupId>javax.xml.bind</groupId>
668               <artifactId>jaxb-api</artifactId>
669             </exclusion>
670             <exclusion>
671               <groupId>javax.ws.rs</groupId>
672               <artifactId>jsr311-api</artifactId>
673             </exclusion>
674           </exclusions>
675         </dependency>
676         <!-- Hadoop needs Netty 3.x at test scope for the minicluster>
677         <dependency>
678           <groupId>io.netty</groupId>
679           <artifactId>netty</artifactId>
680           <version>${netty.hadoop.version}</version>
681           <scope>test</scope>
682         </dependency-->
683       </dependencies>
684       <build>
685         <plugins>
686           <plugin>
687             <artifactId>maven-dependency-plugin</artifactId>
688             <executions>
689               <execution>
690                 <id>create-mrapp-generated-classpath</id>
691                 <phase>generate-test-resources</phase>
692                 <goals>
693                   <goal>build-classpath</goal>
694                 </goals>
695                 <configuration>
696                   <!-- needed to run the unit test for DS to generate
697                   the required classpath that is required in the env
698                   of the launch container in the mini mr/yarn cluster
699                   -->
700                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
701                 </configuration>
702               </execution>
703             </executions>
704           </plugin>
705         </plugins>
706       </build>
707     </profile>
708     <profile>
709       <id>eclipse-specific</id>
710       <activation>
711         <property>
712           <name>m2e.version</name>
713         </property>
714       </activation>
715       <build>
716         <plugins>
717           <plugin>
718             <groupId>org.apache.maven.plugins</groupId>
719             <artifactId>maven-eclipse-plugin</artifactId>
720             <configuration>
721               <additionalProjectnatures>
722                 <projectnature>org.jamon.project.jamonnature</projectnature>
723               </additionalProjectnatures>
724               <buildcommands>
725                 <buildcommand>org.jamon.project.templateBuilder</buildcommand>
726                 <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
727                 <buildcommand>org.jamon.project.markerUpdater</buildcommand>
728               </buildcommands>
729               <additionalConfig>
730                 <file>
731                   <name>.settings/org.jamon.prefs</name>
732                   <content># now
733                     eclipse.preferences.version=1
734                     templateSourceDir=src/main/jamon
735                     templateOutputDir=target/generated-jamon
736                   </content>
737                 </file>
738               </additionalConfig>
739             </configuration>
740           </plugin>
741         </plugins>
742         <pluginManagement>
743            <plugins>
744              <!--This plugin's configuration is used to store Eclipse m2e settings
745                  only. It has no influence on the Maven build itself and needs to
746                  be kept in plugin management, not in the actual plugins. -->
747             <plugin>
748               <groupId>org.eclipse.m2e</groupId>
749               <artifactId>lifecycle-mapping</artifactId>
750               <configuration>
751                 <lifecycleMappingMetadata>
752                   <pluginExecutions>
753                     <pluginExecution>
754                       <pluginExecutionFilter>
755                         <groupId>org.jamon</groupId>
756                         <artifactId>jamon-maven-plugin</artifactId>
757                         <versionRange>[2.3.4,)</versionRange>
758                         <goals>
759                           <goal>translate</goal>
760                         </goals>
761                       </pluginExecutionFilter>
762                       <action>
763                           <execute>
764                             <runOnIncremental>false</runOnIncremental>
765                             <runOnConfiguration>true</runOnConfiguration>
766                           </execute>
767                       </action>
768                     </pluginExecution>
769                     <pluginExecution>
770                       <pluginExecutionFilter>
771                         <groupId>org.apache.maven.plugins</groupId>
772                         <artifactId>maven-antrun-plugin</artifactId>
773                         <versionRange>[1.6,)</versionRange>
774                         <goals>
775                           <goal>run</goal>
776                         </goals>
777                       </pluginExecutionFilter>
778                       <action>
779                         <execute>
780                           <runOnIncremental>false</runOnIncremental>
781                           <runOnConfiguration>true</runOnConfiguration>
782                         </execute>
783                       </action>
784                     </pluginExecution>
785                     <pluginExecution>
786                       <pluginExecutionFilter>
787                         <groupId>org.apache.maven.plugins</groupId>
788                         <artifactId>maven-dependency-plugin</artifactId>
789                         <versionRange>[2.8,)</versionRange>
790                         <goals>
791                           <goal>build-classpath</goal>
792                         </goals>
793                       </pluginExecutionFilter>
794                       <action>
795                         <ignore></ignore>
796                       </action>
797                     </pluginExecution>
798                   </pluginExecutions>
799                 </lifecycleMappingMetadata>
800               </configuration>
801             </plugin>
802           </plugins>
803         </pluginManagement>
804       </build>
805     </profile>
806   </profiles>
807 </project>