HBASE-19051 Add new split algorithm for num string
[hbase.git] / hbase-common / pom.xml
blob9bf40324a3ed7fd0bf4edae16f16b918669fd6df
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-build-configuration</artifactId>
25     <groupId>org.apache.hbase</groupId>
26     <version>3.0.0-SNAPSHOT</version>
27     <relativePath>../hbase-build-configuration</relativePath>
28   </parent>
30   <artifactId>hbase-common</artifactId>
31   <name>Apache HBase - Common</name>
32   <description>Common functionality for HBase</description>
33 <!--REMOVE-->
35   <build>
36     <resources>
37       <resource>
38           <directory>src/main/resources/</directory>
39           <includes>
40               <include>hbase-default.xml</include>
41           </includes>
42       </resource>
43     </resources>
44     <testResources>
45       <testResource>
46         <directory>src/test/resources/META-INF/</directory>
47         <targetPath>META-INF/</targetPath>
48         <includes>
49           <include>NOTICE</include>
50         </includes>
51         <filtering>true</filtering>
52       </testResource>
53     </testResources>
54     <plugins>
55       <plugin>
56         <groupId>org.apache.maven.plugins</groupId>
57         <artifactId>maven-remote-resources-plugin</artifactId>
58       </plugin>
59       <plugin>
60         <groupId>org.apache.maven.plugins</groupId>
61         <artifactId>maven-site-plugin</artifactId>
62         <configuration>
63           <skip>true</skip>
64         </configuration>
65       </plugin>
66       <plugin>
67         <!--Make it so assembly:single does nothing in here-->
68         <artifactId>maven-assembly-plugin</artifactId>
69         <configuration>
70           <skipAssembly>true</skipAssembly>
71         </configuration>
72       </plugin>
73         <plugin>
74             <artifactId>maven-antrun-plugin</artifactId>
75             <executions>
76           <execution>
77             <phase>process-resources</phase>
78             <configuration>
79               <target>
80                 <replace file="${project.build.outputDirectory}/hbase-default.xml"
81                   token="@@@VERSION@@@" value="${project.version}" />
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           </plugin>
137         <!-- Make a jar and put the sources in the jar -->
138         <plugin>
139           <groupId>org.apache.maven.plugins</groupId>
140           <artifactId>maven-source-plugin</artifactId>
141           <configuration>
142             <excludes>
143               <exclude>hbase-default.xml</exclude>
144             </excludes>
145           </configuration>
146         </plugin>
147     </plugins>
148     <pluginManagement>
149       <plugins>
150         <!--This plugin's configuration is used to store Eclipse m2e settings
151              only. It has no influence on the Maven build itself. -->
152         <plugin>
153           <groupId>org.eclipse.m2e</groupId>
154           <artifactId>lifecycle-mapping</artifactId>
155           <configuration>
156             <lifecycleMappingMetadata>
157               <pluginExecutions>
158                 <pluginExecution>
159                   <pluginExecutionFilter>
160                     <groupId>org.apache.maven.plugins</groupId>
161                     <artifactId>maven-antrun-plugin</artifactId>
162                     <versionRange>[${maven.antrun.version}]</versionRange>
163                     <goals>
164                       <goal>run</goal>
165                     </goals>
166                   </pluginExecutionFilter>
167                   <action>
168                     <execute/>
169                   </action>
170                 </pluginExecution>
171                 <pluginExecution>
172                   <pluginExecutionFilter>
173                     <groupId>org.apache.maven.plugins</groupId>
174                     <artifactId>maven-dependency-plugin</artifactId>
175                     <versionRange>[2.8,)</versionRange>
176                     <goals>
177                       <goal>build-classpath</goal>
178                     </goals>
179                   </pluginExecutionFilter>
180                   <action>
181                     <ignore></ignore>
182                   </action>
183                 </pluginExecution>
184                 <pluginExecution>
185                   <pluginExecutionFilter>
186                     <groupId>org.apache.maven.plugins</groupId>
187                     <artifactId>maven-compiler-plugin</artifactId>
188                     <versionRange>[3.2,)</versionRange>
189                     <goals>
190                       <goal>compile</goal>
191                     </goals>
192                   </pluginExecutionFilter>
193                   <action>
194                     <ignore></ignore>
195                   </action>
196                 </pluginExecution>
197               </pluginExecutions>
198             </lifecycleMappingMetadata>
199           </configuration>
200         </plugin>
201       </plugins>
202     </pluginManagement>
203   </build>
205   <dependencies>
206     <dependency>
207       <groupId>org.apache.hbase</groupId>
208       <artifactId>hbase-annotations</artifactId>
209       <type>test-jar</type>
210       <scope>test</scope>
211     </dependency>
212     <dependency>
213       <groupId>org.apache.hbase.thirdparty</groupId>
214       <artifactId>hbase-shaded-miscellaneous</artifactId>
215     </dependency>
216     <dependency>
217       <groupId>commons-logging</groupId>
218       <artifactId>commons-logging</artifactId>
219     </dependency>
220     <dependency>
221       <groupId>commons-codec</groupId>
222       <artifactId>commons-codec</artifactId>
223       <scope>compile</scope>
224     </dependency>
225     <dependency>
226       <groupId>org.apache.commons</groupId>
227       <artifactId>commons-lang3</artifactId>
228       <scope>compile</scope>
229     </dependency>
230     <dependency>
231       <groupId>org.apache.commons</groupId>
232       <artifactId>commons-collections4</artifactId>
233       <scope>compile</scope>
234     </dependency>
235     <dependency>
236       <groupId>commons-io</groupId>
237       <artifactId>commons-io</artifactId>
238       <scope>compile</scope>
239     </dependency>
240     <dependency>
241       <groupId>com.google.protobuf</groupId>
242       <artifactId>protobuf-java</artifactId>
243     </dependency>
244     <!-- tracing Dependencies -->
245     <dependency>
246       <groupId>org.apache.htrace</groupId>
247       <artifactId>htrace-core</artifactId>
248     </dependency>
249     <dependency>
250       <groupId>org.apache.commons</groupId>
251       <artifactId>commons-crypto</artifactId>
252     </dependency>
253     <dependency>
254       <groupId>commons-cli</groupId>
255       <artifactId>commons-cli</artifactId>
256     </dependency>
257     <dependency>
258       <groupId>junit</groupId>
259       <artifactId>junit</artifactId>
260       <scope>test</scope>
261     </dependency>
262     <dependency>
263       <groupId>com.github.stephenc.findbugs</groupId>
264       <artifactId>findbugs-annotations</artifactId>
265     </dependency>
266     <dependency>
267       <groupId>org.mockito</groupId>
268       <artifactId>mockito-all</artifactId>
269       <scope>test</scope>
270     </dependency>
271     <dependency>
272       <!--For Hadoop-->
273       <groupId>log4j</groupId>
274       <artifactId>log4j</artifactId>
275     </dependency>
276   </dependencies>
278   <profiles>
279     <!-- Needs to make the profile in apache parent pom -->
280     <profile>
281       <id>apache-release</id>
282       <build>
283         <plugins>
284           <plugin>
285             <groupId>org.apache.maven.plugins</groupId>
286             <artifactId>maven-resources-plugin</artifactId>
287             <executions>
288               <execution>
289                 <id>license-javadocs</id>
290                 <phase>prepare-package</phase>
291                 <goals>
292                   <goal>copy-resources</goal>
293                 </goals>
294                 <configuration>
295                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
296                   <resources>
297                     <resource>
298                       <directory>src/main/javadoc/META-INF/</directory>
299                       <targetPath>META-INF/</targetPath>
300                       <includes>
301                         <include>NOTICE</include>
302                       </includes>
303                       <filtering>true</filtering>
304                     </resource>
305                   </resources>
306                 </configuration>
307               </execution>
308             </executions>
309           </plugin>
310         </plugins>
311       </build>
312     </profile>
313     <!-- Skip the tests in this module -->
314     <profile>
315       <id>skipCommonTests</id>
316       <activation>
317         <property>
318           <name>skipCommonTests</name>
319         </property>
320       </activation>
321       <properties>
322         <surefire.skipFirstPart>true</surefire.skipFirstPart>
323         <surefire.skipSecondPart>true</surefire.skipSecondPart>
324       </properties>
325     </profile>
328     <!-- profile for building against Hadoop 2.x.  This is the default -->
329     <profile>
330       <id>hadoop-2.0</id>
331       <activation>
332         <property>
333             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
334             <!--h2--><name>!hadoop.profile</name>
335         </property>
336       </activation>
337       <dependencies>
338         <dependency>
339           <groupId>org.apache.hadoop</groupId>
340           <artifactId>hadoop-common</artifactId>
341           <!--FYI This pulls in hadoop's guava. Its needed for Configuration
342                at least-->
343         </dependency>
344       </dependencies>
345       <build>
346         <plugins>
347           <plugin>
348             <artifactId>maven-dependency-plugin</artifactId>
349             <executions>
350               <execution>
351                 <id>create-mrapp-generated-classpath</id>
352                 <phase>generate-test-resources</phase>
353                 <goals>
354                   <goal>build-classpath</goal>
355                 </goals>
356                 <configuration>
357                   <!-- needed to run the unit test for DS to generate
358                   the required classpath that is required in the env
359                   of the launch container in the mini mr/yarn cluster
360                   -->
361                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
362                 </configuration>
363               </execution>
364             </executions>
365           </plugin>
366         </plugins>
367       </build>
368     </profile>
370     <!--
371       profile for building against Hadoop 3.0.x. Activate using:
372        mvn -Dhadoop.profile=3.0
373     -->
374     <profile>
375       <id>hadoop-3.0</id>
376       <activation>
377         <property>
378           <name>hadoop.profile</name>
379           <value>3.0</value>
380         </property>
381       </activation>
382       <properties>
383         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
384       </properties>
385       <dependencies>
386         <dependency>
387           <groupId>org.apache.hadoop</groupId>
388           <artifactId>hadoop-common</artifactId>
389         </dependency>
390       </dependencies>
391       <build>
392         <plugins>
393           <plugin>
394             <artifactId>maven-dependency-plugin</artifactId>
395             <executions>
396               <execution>
397                 <id>create-mrapp-generated-classpath</id>
398                 <phase>generate-test-resources</phase>
399                 <goals>
400                   <goal>build-classpath</goal>
401                 </goals>
402                 <configuration>
403                   <!-- needed to run the unit test for DS to generate
404                   the required classpath that is required in the env
405                   of the launch container in the mini mr/yarn cluster
406                   -->
407                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
408                 </configuration>
409               </execution>
410             </executions>
411           </plugin>
412         </plugins>
413       </build>
414     </profile>
415   </profiles>
416 </project>