HBASE-14482 Add hadoop 2.6.1 to the test-patch build list
[hbase.git] / hbase-common / pom.xml
bloba3a1526adf4aadde66c42563ee28a572d9ded659
1 <?xml version="1.0"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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</artifactId>
25     <groupId>org.apache.hbase</groupId>
26     <version>2.0.0-SNAPSHOT</version>
27     <relativePath>..</relativePath>
28   </parent>
30   <artifactId>hbase-common</artifactId>
31   <name>Apache HBase - Common</name>
32   <description>Common functionality for HBase</description>
34   <build>
35     <resources>
36       <resource>
37           <directory>src/main/resources/</directory>
38           <includes>
39               <include>hbase-default.xml</include>
40           </includes>
41       </resource>
42     </resources>
43     <testResources>
44       <testResource>
45         <directory>src/test/resources/META-INF/</directory>
46         <targetPath>META-INF/</targetPath>
47         <includes>
48           <include>NOTICE</include>
49         </includes>
50         <filtering>true</filtering>
51       </testResource>
52     </testResources>
53     <plugins>
54       <plugin>
55         <groupId>org.apache.maven.plugins</groupId>
56         <artifactId>maven-site-plugin</artifactId>
57         <configuration>
58           <skip>true</skip>
59         </configuration>
60       </plugin>
61       <plugin>
62         <!--Make it so assembly:single does nothing in here-->
63         <artifactId>maven-assembly-plugin</artifactId>
64         <configuration>
65           <skipAssembly>true</skipAssembly>
66         </configuration>
67       </plugin>
68         <plugin>
69             <artifactId>maven-antrun-plugin</artifactId>
70             <executions>
71           <execution>
72             <phase>process-resources</phase>
73             <configuration>
74               <target>
75                 <replace file="${project.build.outputDirectory}/hbase-default.xml"
76                   token="@@@VERSION@@@" value="${project.version}" />
77                 <mkdir dir="${project.build.directory}/nativelib"/>
78                 <exec executable="tar" dir="${project.build.directory}/nativelib" failonerror="false">
79                   <arg value="xf"/>
80                   <arg value="hadoop-snappy-nativelibs.tar"/>
81                 </exec>
82               </target>
83             </configuration>
84             <goals>
85               <goal>run</goal>
86             </goals>
87           </execution>
88                 <!-- Generate web app sources -->
89                 <execution>
90                     <id>generate</id>
91                     <phase>generate-sources</phase>
92                     <configuration>
93                         <target>
94                             <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
96                             <exec executable="bash">
97                                 <arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}/java"/>
98                             </exec>
99                         </target>
100                     </configuration>
101                     <goals>
102                         <goal>run</goal>
103                     </goals>
104                 </execution>
105             </executions>
106         </plugin>
107         <plugin>
108             <groupId>org.codehaus.mojo</groupId>
109             <artifactId>build-helper-maven-plugin</artifactId>
110             <executions>
111                 <!-- Add the generated sources -->
112                 <execution>
113                     <id>versionInfo-source</id>
114                     <phase>generate-sources</phase>
115                     <goals>
116                         <goal>add-source</goal>
117                     </goals>
118                     <configuration>
119                         <sources>
120                             <source>${project.build.directory}/generated-sources/java</source>
121                         </sources>
122                     </configuration>
123                 </execution>
124             </executions>
125         </plugin>
126         <plugin>
127             <artifactId>maven-surefire-plugin</artifactId>
128             <configuration>
129               <properties>
130                 <property>
131                   <name>listener</name>
132                   <value>org.apache.hadoop.hbase.ResourceCheckerJUnitListener</value>
133                 </property>
134               </properties>
135             </configuration>
136             <!-- Always skip the second part executions, since we only run
137             simple unit tests in this module -->
138             <executions>
139               <execution>
140                 <id>secondPartTestsExecution</id>
141                 <phase>test</phase>
142                 <goals>
143                   <goal>test</goal>
144                 </goals>
145                 <configuration>
146                   <skip>true</skip>
147                 </configuration>
148               </execution>
149             </executions>
150           </plugin>
151         <!-- Make a jar and put the sources in the jar -->
152         <plugin>
153           <groupId>org.apache.maven.plugins</groupId>
154           <artifactId>maven-source-plugin</artifactId>
155           <configuration>
156             <excludeResources>true</excludeResources>
157             <includes>
158               <include>src/main/java</include>
159               <include>${project.build.outputDirectory}/META-INF</include>
160             </includes>
161           </configuration>
162         </plugin>
163     </plugins>
164     <pluginManagement>
165       <plugins>
166         <!--This plugin's configuration is used to store Eclipse m2e settings
167              only. It has no influence on the Maven build itself. -->
168         <plugin>
169           <groupId>org.eclipse.m2e</groupId>
170           <artifactId>lifecycle-mapping</artifactId>
171           <version>1.0.0</version>
172           <configuration>
173             <lifecycleMappingMetadata>
174               <pluginExecutions>
175                 <pluginExecution>
176                   <pluginExecutionFilter>
177                     <groupId>org.apache.maven.plugins</groupId>
178                     <artifactId>maven-antrun-plugin</artifactId>
179                     <versionRange>[${maven.antrun.version}]</versionRange>
180                     <goals>
181                       <goal>run</goal>
182                     </goals>
183                   </pluginExecutionFilter>
184                   <action>
185                     <execute/>
186                   </action>
187                 </pluginExecution>
188                 <pluginExecution>
189                   <pluginExecutionFilter>
190                     <groupId>org.apache.maven.plugins</groupId>
191                     <artifactId>maven-dependency-plugin</artifactId>
192                     <versionRange>[2.8,)</versionRange>
193                     <goals>
194                       <goal>build-classpath</goal>
195                     </goals>
196                   </pluginExecutionFilter>
197                   <action>
198                     <ignore></ignore>
199                   </action>
200                 </pluginExecution>
201                 <pluginExecution>
202                   <pluginExecutionFilter>
203                     <groupId>org.apache.maven.plugins</groupId>
204                     <artifactId>maven-compiler-plugin</artifactId>
205                     <versionRange>[3.2,)</versionRange>
206                     <goals>
207                       <goal>compile</goal>
208                     </goals>
209                   </pluginExecutionFilter>
210                   <action>
211                     <ignore></ignore>
212                   </action>
213                 </pluginExecution>
214               </pluginExecutions>
215             </lifecycleMappingMetadata>
216           </configuration>
217         </plugin>
218       </plugins>
219     </pluginManagement>
220   </build>
222   <dependencies>
223     <dependency>
224       <groupId>org.apache.hbase</groupId>
225       <artifactId>hbase-annotations</artifactId>
226       <exclusions>
227         <exclusion>
228           <groupId>jdk.tools</groupId>
229           <artifactId>jdk.tools</artifactId>
230         </exclusion>
231       </exclusions>
232     </dependency>
233     <dependency>
234       <groupId>org.apache.hbase</groupId>
235       <artifactId>hbase-protocol</artifactId>
236     </dependency>
237     <dependency>
238       <groupId>org.apache.hbase</groupId>
239       <artifactId>hbase-annotations</artifactId>
240       <type>test-jar</type>
241       <scope>test</scope>
242     </dependency>
243     <!-- General dependencies -->
244     <dependency>
245       <groupId>com.google.guava</groupId>
246       <artifactId>guava</artifactId>
247     </dependency>
248     <dependency>
249       <groupId>commons-logging</groupId>
250       <artifactId>commons-logging</artifactId>
251     </dependency>
252     <dependency>
253       <groupId>commons-codec</groupId>
254       <artifactId>commons-codec</artifactId>
255       <scope>compile</scope>
256     </dependency>
257     <dependency>
258       <groupId>commons-lang</groupId>
259       <artifactId>commons-lang</artifactId>
260       <scope>compile</scope>
261     </dependency>
262     <dependency>
263       <groupId>commons-collections</groupId>
264       <artifactId>commons-collections</artifactId>
265       <scope>compile</scope>
266     </dependency>
267     <dependency>
268       <groupId>commons-io</groupId>
269       <artifactId>commons-io</artifactId>
270       <scope>compile</scope>
271     </dependency>
272     <dependency>
273       <groupId>com.google.protobuf</groupId>
274       <artifactId>protobuf-java</artifactId>
275     </dependency>
276     <dependency>
277       <groupId>org.mortbay.jetty</groupId>
278       <artifactId>jetty-util</artifactId>
279     </dependency>
280     <!-- tracing Dependencies -->
281     <dependency>
282       <groupId>org.apache.htrace</groupId>
283       <artifactId>htrace-core</artifactId>
284     </dependency>
285   </dependencies>
287   <profiles>
288     <!-- Needs to make the profile in apache parent pom -->
289     <profile>
290       <id>apache-release</id>
291       <build>
292         <plugins>
293           <plugin>
294             <groupId>org.apache.maven.plugins</groupId>
295             <artifactId>maven-resources-plugin</artifactId>
296             <executions>
297               <execution>
298                 <id>license-javadocs</id>
299                 <phase>prepare-package</phase>
300                 <goals>
301                   <goal>copy-resources</goal>
302                 </goals>
303                 <configuration>
304                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
305                   <resources>
306                     <resource>
307                       <directory>src/main/javadoc/META-INF/</directory>
308                       <targetPath>META-INF/</targetPath>
309                       <includes>
310                         <include>NOTICE</include>
311                       </includes>
312                       <filtering>true</filtering>
313                     </resource>
314                   </resources>
315                 </configuration>
316               </execution>
317             </executions>
318           </plugin>
319         </plugins>
320       </build>
321     </profile>
322     <!-- Skip the tests in this module -->
323     <profile>
324       <id>skipCommonTests</id>
325       <activation>
326         <property>
327           <name>skipCommonTests</name>
328         </property>
329       </activation>
330       <properties>
331         <surefire.skipFirstPart>true</surefire.skipFirstPart>
332       </properties>
333     </profile>
335     <!-- profile against Hadoop 1.1.x: This is the default. It has to have the same
336     activation property as the parent Hadoop 1.1.x profile to make sure it gets run at
337     the same time. -->
338     <profile>
339       <id>hadoop-1.1</id>
340       <activation>
341         <property>
342             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
343             <!--h1--><name>hadoop.profile</name><value>1.1</value>
344         </property>
345       </activation>
346       <dependencies>
347         <dependency>
348           <groupId>org.apache.hadoop</groupId>
349           <artifactId>hadoop-core</artifactId>
350         </dependency>
351       </dependencies>
352     </profile>
354     <!-- profile against Hadoop 1.0.x:
355           mvn -Dhadoop.profile=1.0
356     -->
357     <profile>
358       <id>hadoop-1.0</id>
359       <activation>
360         <property>
361           <name>hadoop.profile</name>
362           <value>1.0</value>
363         </property>
364       </activation>
365       <dependencies>
366         <dependency>
367           <groupId>org.apache.hadoop</groupId>
368           <artifactId>hadoop-core</artifactId>
369         </dependency>
370         <dependency>
371           <groupId>commons-io</groupId>
372           <artifactId>commons-io</artifactId>
373         </dependency>
374       </dependencies>
375     </profile>
377     <!--
378       profile for building against Hadoop 2.0.0-alpha. Activate using:
379        mvn -Dhadoop.profile=2.0
380     -->
381     <profile>
382       <id>hadoop-2.0</id>
383       <activation>
384         <property>
385             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
386             <!--h2--><name>!hadoop.profile</name>
387         </property>
388       </activation>
389       <dependencies>
390         <dependency>
391           <groupId>org.apache.hadoop</groupId>
392           <artifactId>hadoop-common</artifactId>
393         </dependency>
394       </dependencies>
395       <build>
396         <plugins>
397           <plugin>
398             <artifactId>maven-dependency-plugin</artifactId>
399             <executions>
400               <execution>
401                 <id>create-mrapp-generated-classpath</id>
402                 <phase>generate-test-resources</phase>
403                 <goals>
404                   <goal>build-classpath</goal>
405                 </goals>
406                 <configuration>
407                   <!-- needed to run the unit test for DS to generate
408                   the required classpath that is required in the env
409                   of the launch container in the mini mr/yarn cluster
410                   -->
411                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
412                 </configuration>
413               </execution>
414             </executions>
415           </plugin>
416         </plugins>
417       </build>
418     </profile>
420     <!--
421       profile for building against Hadoop 3.0.x. Activate using:
422        mvn -Dhadoop.profile=3.0
423     -->
424     <profile>
425       <id>hadoop-3.0</id>
426       <activation>
427         <property>
428           <name>hadoop.profile</name>
429           <value>3.0</value>
430         </property>
431       </activation>
432       <properties>
433         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
434       </properties>
435       <dependencies>
436         <dependency>
437           <groupId>org.apache.hadoop</groupId>
438           <artifactId>hadoop-common</artifactId>
439         </dependency>
440       </dependencies>
441       <build>
442         <plugins>
443           <plugin>
444             <artifactId>maven-dependency-plugin</artifactId>
445             <executions>
446               <execution>
447                 <id>create-mrapp-generated-classpath</id>
448                 <phase>generate-test-resources</phase>
449                 <goals>
450                   <goal>build-classpath</goal>
451                 </goals>
452                 <configuration>
453                   <!-- needed to run the unit test for DS to generate
454                   the required classpath that is required in the env
455                   of the launch container in the mini mr/yarn cluster
456                   -->
457                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
458                 </configuration>
459               </execution>
460             </executions>
461           </plugin>
462         </plugins>
463       </build>
464     </profile>
465   </profiles>
466 </project>