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