HBASE-14085 Update LICENSE and NOTICE files.
[hbase.git] / hbase-common / pom.xml
blobd782c6c5aed1b768bc4945c6278be82ecd5958e3
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     <!-- Skip the tests in this module -->
289     <profile>
290       <id>skipCommonTests</id>
291       <activation>
292         <property>
293           <name>skipCommonTests</name>
294         </property>
295       </activation>
296       <properties>
297         <surefire.skipFirstPart>true</surefire.skipFirstPart>
298       </properties>
299     </profile>
301     <!-- profile against Hadoop 1.1.x: This is the default. It has to have the same
302     activation property as the parent Hadoop 1.1.x profile to make sure it gets run at
303     the same time. -->
304     <profile>
305       <id>hadoop-1.1</id>
306       <activation>
307         <property>
308             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
309             <!--h1--><name>hadoop.profile</name><value>1.1</value>
310         </property>
311       </activation>
312       <dependencies>
313         <dependency>
314           <groupId>org.apache.hadoop</groupId>
315           <artifactId>hadoop-core</artifactId>
316         </dependency>
317       </dependencies>
318     </profile>
320     <!-- profile against Hadoop 1.0.x:
321           mvn -Dhadoop.profile=1.0
322     -->
323     <profile>
324       <id>hadoop-1.0</id>
325       <activation>
326         <property>
327           <name>hadoop.profile</name>
328           <value>1.0</value>
329         </property>
330       </activation>
331       <dependencies>
332         <dependency>
333           <groupId>org.apache.hadoop</groupId>
334           <artifactId>hadoop-core</artifactId>
335         </dependency>
336         <dependency>
337           <groupId>commons-io</groupId>
338           <artifactId>commons-io</artifactId>
339         </dependency>
340       </dependencies>
341     </profile>
343     <!--
344       profile for building against Hadoop 2.0.0-alpha. Activate using:
345        mvn -Dhadoop.profile=2.0
346     -->
347     <profile>
348       <id>hadoop-2.0</id>
349       <activation>
350         <property>
351             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
352             <!--h2--><name>!hadoop.profile</name>
353         </property>
354       </activation>
355       <dependencies>
356         <dependency>
357           <groupId>org.apache.hadoop</groupId>
358           <artifactId>hadoop-common</artifactId>
359         </dependency>
360         <dependency>
361           <groupId>org.apache.hadoop</groupId>
362           <artifactId>hadoop-mapreduce-client-core</artifactId>
363         </dependency>
364       </dependencies>
365       <build>
366         <plugins>
367           <plugin>
368             <artifactId>maven-dependency-plugin</artifactId>
369             <executions>
370               <execution>
371                 <id>create-mrapp-generated-classpath</id>
372                 <phase>generate-test-resources</phase>
373                 <goals>
374                   <goal>build-classpath</goal>
375                 </goals>
376                 <configuration>
377                   <!-- needed to run the unit test for DS to generate
378                   the required classpath that is required in the env
379                   of the launch container in the mini mr/yarn cluster
380                   -->
381                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
382                 </configuration>
383               </execution>
384             </executions>
385           </plugin>
386         </plugins>
387       </build>
388     </profile>
390     <!--
391       profile for building against Hadoop 3.0.x. Activate using:
392        mvn -Dhadoop.profile=3.0
393     -->
394     <profile>
395       <id>hadoop-3.0</id>
396       <activation>
397         <property>
398           <name>hadoop.profile</name>
399           <value>3.0</value>
400         </property>
401       </activation>
402       <properties>
403         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
404       </properties>
405       <dependencies>
406         <dependency>
407           <groupId>org.apache.hadoop</groupId>
408           <artifactId>hadoop-common</artifactId>
409         </dependency>
410       </dependencies>
411       <build>
412         <plugins>
413           <plugin>
414             <artifactId>maven-dependency-plugin</artifactId>
415             <executions>
416               <execution>
417                 <id>create-mrapp-generated-classpath</id>
418                 <phase>generate-test-resources</phase>
419                 <goals>
420                   <goal>build-classpath</goal>
421                 </goals>
422                 <configuration>
423                   <!-- needed to run the unit test for DS to generate
424                   the required classpath that is required in the env
425                   of the launch container in the mini mr/yarn cluster
426                   -->
427                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
428                 </configuration>
429               </execution>
430             </executions>
431           </plugin>
432         </plugins>
433       </build>
434     </profile>
435   </profiles>
436 </project>