HBASE-20753 fix the email address for security related issues in docs
[hbase.git] / hbase-common / pom.xml
blob0aaccb89e39ad15c898666430a758b029ac9fa12
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       <testResource>
54         <directory>src/test/resources</directory>
55         <includes>
56           <include>**/**</include>
57         </includes>
58       </testResource>
59     </testResources>
60     <plugins>
61       <plugin>
62         <groupId>org.apache.maven.plugins</groupId>
63         <artifactId>maven-remote-resources-plugin</artifactId>
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         <!-- Make a jar and put the sources in the jar -->
126         <plugin>
127           <groupId>org.apache.maven.plugins</groupId>
128           <artifactId>maven-source-plugin</artifactId>
129           <configuration>
130             <excludes>
131               <exclude>hbase-default.xml</exclude>
132             </excludes>
133           </configuration>
134         </plugin>
135       <plugin>
136         <groupId>net.revelc.code</groupId>
137         <artifactId>warbucks-maven-plugin</artifactId>
138       </plugin>
139     </plugins>
140     <pluginManagement>
141       <plugins>
142         <!--This plugin's configuration is used to store Eclipse m2e settings
143              only. It has no influence on the Maven build itself. -->
144         <plugin>
145           <groupId>org.eclipse.m2e</groupId>
146           <artifactId>lifecycle-mapping</artifactId>
147           <configuration>
148             <lifecycleMappingMetadata>
149               <pluginExecutions>
150                 <pluginExecution>
151                   <pluginExecutionFilter>
152                     <groupId>org.apache.maven.plugins</groupId>
153                     <artifactId>maven-antrun-plugin</artifactId>
154                     <versionRange>[${maven.antrun.version}]</versionRange>
155                     <goals>
156                       <goal>run</goal>
157                     </goals>
158                   </pluginExecutionFilter>
159                   <action>
160                     <execute/>
161                   </action>
162                 </pluginExecution>
163                 <pluginExecution>
164                   <pluginExecutionFilter>
165                     <groupId>org.apache.maven.plugins</groupId>
166                     <artifactId>maven-dependency-plugin</artifactId>
167                     <versionRange>[2.8,)</versionRange>
168                     <goals>
169                       <goal>build-classpath</goal>
170                     </goals>
171                   </pluginExecutionFilter>
172                   <action>
173                     <ignore></ignore>
174                   </action>
175                 </pluginExecution>
176               </pluginExecutions>
177             </lifecycleMappingMetadata>
178           </configuration>
179         </plugin>
180       </plugins>
181     </pluginManagement>
182   </build>
184   <dependencies>
185     <dependency>
186       <groupId>org.apache.hbase</groupId>
187       <artifactId>hbase-annotations</artifactId>
188       <type>test-jar</type>
189       <scope>test</scope>
190     </dependency>
191     <dependency>
192       <groupId>org.apache.hbase.thirdparty</groupId>
193       <artifactId>hbase-shaded-miscellaneous</artifactId>
194     </dependency>
195     <dependency>
196       <groupId>org.slf4j</groupId>
197       <artifactId>slf4j-api</artifactId>
198     </dependency>
199     <dependency>
200       <groupId>commons-codec</groupId>
201       <artifactId>commons-codec</artifactId>
202       <scope>compile</scope>
203     </dependency>
204     <dependency>
205       <groupId>org.apache.commons</groupId>
206       <artifactId>commons-lang3</artifactId>
207       <scope>compile</scope>
208     </dependency>
209     <dependency>
210       <groupId>commons-io</groupId>
211       <artifactId>commons-io</artifactId>
212       <scope>compile</scope>
213     </dependency>
214     <dependency>
215       <groupId>com.google.protobuf</groupId>
216       <artifactId>protobuf-java</artifactId>
217     </dependency>
218     <!-- tracing Dependencies -->
219     <dependency>
220       <groupId>org.apache.htrace</groupId>
221       <artifactId>htrace-core4</artifactId>
222     </dependency>
223     <dependency>
224       <groupId>org.apache.commons</groupId>
225       <artifactId>commons-crypto</artifactId>
226     </dependency>
227     <dependency>
228       <groupId>junit</groupId>
229       <artifactId>junit</artifactId>
230       <scope>test</scope>
231     </dependency>
232     <dependency>
233       <groupId>com.github.stephenc.findbugs</groupId>
234       <artifactId>findbugs-annotations</artifactId>
235     </dependency>
236     <dependency>
237       <groupId>com.fasterxml.jackson.core</groupId>
238       <artifactId>jackson-databind</artifactId>
239     </dependency>
240     <dependency>
241       <groupId>org.mockito</groupId>
242       <artifactId>mockito-core</artifactId>
243       <scope>test</scope>
244     </dependency>
245     <dependency>
246       <!--For Hadoop-->
247       <groupId>log4j</groupId>
248       <artifactId>log4j</artifactId>
249     </dependency>
250   </dependencies>
252   <profiles>
253     <!-- Needs to make the profile in apache parent pom -->
254     <profile>
255       <id>apache-release</id>
256       <build>
257         <plugins>
258           <plugin>
259             <groupId>org.apache.maven.plugins</groupId>
260             <artifactId>maven-resources-plugin</artifactId>
261             <executions>
262               <execution>
263                 <id>license-javadocs</id>
264                 <phase>prepare-package</phase>
265                 <goals>
266                   <goal>copy-resources</goal>
267                 </goals>
268                 <configuration>
269                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
270                   <resources>
271                     <resource>
272                       <directory>src/main/javadoc/META-INF/</directory>
273                       <targetPath>META-INF/</targetPath>
274                       <includes>
275                         <include>NOTICE</include>
276                       </includes>
277                       <filtering>true</filtering>
278                     </resource>
279                   </resources>
280                 </configuration>
281               </execution>
282             </executions>
283           </plugin>
284         </plugins>
285       </build>
286     </profile>
287     <!-- Skip the tests in this module -->
288     <profile>
289       <id>skipCommonTests</id>
290       <activation>
291         <property>
292           <name>skipCommonTests</name>
293         </property>
294       </activation>
295       <properties>
296         <surefire.skipFirstPart>true</surefire.skipFirstPart>
297         <surefire.skipSecondPart>true</surefire.skipSecondPart>
298       </properties>
299     </profile>
302     <!-- profile for building against Hadoop 2.x.  This is the default -->
303     <profile>
304       <id>hadoop-2.0</id>
305       <activation>
306         <property>
307             <!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
308             <!--h2--><name>!hadoop.profile</name>
309         </property>
310       </activation>
311       <dependencies>
312         <dependency>
313           <groupId>org.apache.hadoop</groupId>
314           <artifactId>hadoop-common</artifactId>
315           <!--FYI This pulls in hadoop's guava. Its needed for Configuration
316                at least-->
317         </dependency>
318       </dependencies>
319       <build>
320         <plugins>
321           <plugin>
322             <artifactId>maven-dependency-plugin</artifactId>
323             <executions>
324               <execution>
325                 <id>create-mrapp-generated-classpath</id>
326                 <phase>generate-test-resources</phase>
327                 <goals>
328                   <goal>build-classpath</goal>
329                 </goals>
330                 <configuration>
331                   <!-- needed to run the unit test for DS to generate
332                   the required classpath that is required in the env
333                   of the launch container in the mini mr/yarn cluster
334                   -->
335                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
336                 </configuration>
337               </execution>
338             </executions>
339           </plugin>
340         </plugins>
341       </build>
342     </profile>
344     <!--
345       profile for building against Hadoop 3.0.x. Activate using:
346        mvn -Dhadoop.profile=3.0
347     -->
348     <profile>
349       <id>hadoop-3.0</id>
350       <activation>
351         <property>
352           <name>hadoop.profile</name>
353           <value>3.0</value>
354         </property>
355       </activation>
356       <properties>
357         <hadoop.version>3.0-SNAPSHOT</hadoop.version>
358       </properties>
359       <dependencies>
360         <dependency>
361           <groupId>org.apache.hadoop</groupId>
362           <artifactId>hadoop-common</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>
389   </profiles>
390 </project>