HBASE-26535 Addendum fix report names
[hbase.git] / hbase-common / pom.xml
blob581fbbaa44dd44f30a89f55aaf74a946a6d588bd
1 <?xml version="1.0"?>
2 <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://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-alpha-2-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>
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       <testResource>
53         <directory>src/test/resources</directory>
54         <includes>
55           <include>**/**</include>
56         </includes>
57       </testResource>
58     </testResources>
59     <plugins>
60       <plugin>
61         <groupId>org.apache.maven.plugins</groupId>
62         <artifactId>maven-remote-resources-plugin</artifactId>
63       </plugin>
64       <plugin>
65         <!--Make it so assembly:single does nothing in here-->
66         <artifactId>maven-assembly-plugin</artifactId>
67         <configuration>
68           <skipAssembly>true</skipAssembly>
69         </configuration>
70       </plugin>
71         <plugin>
72             <artifactId>maven-antrun-plugin</artifactId>
73             <executions>
74           <execution>
75             <phase>process-resources</phase>
76             <configuration>
77               <target>
78                 <replace file="${project.build.outputDirectory}/hbase-default.xml"
79                   token="@@@VERSION@@@" value="${project.version}" />
80               </target>
81             </configuration>
82             <goals>
83               <goal>run</goal>
84             </goals>
85           </execution>
86                 <!-- Generate web app sources -->
87                 <execution>
88                     <id>generate-Version-information</id>
89                     <phase>generate-sources</phase>
90                     <configuration>
91                         <target>
92                             <property name="generated.sources" location="${project.build.directory}/generated-sources"/>
94                             <exec executable="bash" failonerror="true">
95                                 <arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}"/>
96                             </exec>
97                         </target>
98                     </configuration>
99                     <goals>
100                         <goal>run</goal>
101                     </goals>
102                 </execution>
103             </executions>
104         </plugin>
105         <plugin>
106             <groupId>org.codehaus.mojo</groupId>
107             <artifactId>build-helper-maven-plugin</artifactId>
108             <executions>
109                 <!-- Add the generated sources -->
110                 <execution>
111                     <id>versionInfo-source</id>
112                     <phase>generate-sources</phase>
113                     <goals>
114                         <goal>add-source</goal>
115                     </goals>
116                     <configuration>
117                         <sources>
118                             <source>${project.build.directory}/generated-sources/java</source>
119                         </sources>
120                     </configuration>
121                 </execution>
122             </executions>
123         </plugin>
124         <!-- Make a jar and put the sources in the jar -->
125         <plugin>
126           <groupId>org.apache.maven.plugins</groupId>
127           <artifactId>maven-source-plugin</artifactId>
128           <configuration>
129             <excludes>
130               <exclude>hbase-default.xml</exclude>
131             </excludes>
132           </configuration>
133         </plugin>
134       <plugin>
135         <groupId>net.revelc.code</groupId>
136         <artifactId>warbucks-maven-plugin</artifactId>
137       </plugin>
138     </plugins>
139   </build>
141   <dependencies>
142     <dependency>
143       <groupId>org.apache.hbase</groupId>
144       <artifactId>hbase-annotations</artifactId>
145       <type>test-jar</type>
146       <scope>test</scope>
147     </dependency>
148     <dependency>
149       <groupId>org.apache.hbase</groupId>
150       <artifactId>hbase-logging</artifactId>
151     </dependency>
152     <dependency>
153       <groupId>org.apache.hbase</groupId>
154       <artifactId>hbase-logging</artifactId>
155       <type>test-jar</type>
156       <scope>test</scope>
157     </dependency>
158     <dependency>
159       <groupId>org.apache.hbase.thirdparty</groupId>
160       <artifactId>hbase-shaded-miscellaneous</artifactId>
161     </dependency>
162     <dependency>
163       <groupId>org.apache.hbase.thirdparty</groupId>
164       <artifactId>hbase-shaded-gson</artifactId>
165     </dependency>
166     <dependency>
167       <groupId>org.apache.hbase.thirdparty</groupId>
168       <artifactId>hbase-shaded-netty</artifactId>
169     </dependency>
170     <dependency>
171       <groupId>org.slf4j</groupId>
172       <artifactId>slf4j-api</artifactId>
173     </dependency>
174     <dependency>
175       <groupId>commons-codec</groupId>
176       <artifactId>commons-codec</artifactId>
177       <scope>compile</scope>
178     </dependency>
179     <dependency>
180       <groupId>org.apache.commons</groupId>
181       <artifactId>commons-lang3</artifactId>
182       <scope>compile</scope>
183     </dependency>
184     <dependency>
185       <groupId>commons-io</groupId>
186       <artifactId>commons-io</artifactId>
187       <scope>compile</scope>
188     </dependency>
189     <dependency>
190       <groupId>commons-validator</groupId>
191       <artifactId>commons-validator</artifactId>
192       <scope>compile</scope>
193     </dependency>
194     <!-- tracing Dependencies -->
195     <dependency>
196       <groupId>io.opentelemetry</groupId>
197       <artifactId>opentelemetry-api</artifactId>
198     </dependency>
199     <dependency>
200       <groupId>io.opentelemetry</groupId>
201       <artifactId>opentelemetry-semconv</artifactId>
202     </dependency>
203     <dependency>
204       <groupId>org.apache.commons</groupId>
205       <artifactId>commons-crypto</artifactId>
206     </dependency>
207     <dependency>
208       <groupId>junit</groupId>
209       <artifactId>junit</artifactId>
210       <scope>test</scope>
211     </dependency>
212     <dependency>
213       <groupId>com.github.stephenc.findbugs</groupId>
214       <artifactId>findbugs-annotations</artifactId>
215       <scope>compile</scope>
216       <optional>true</optional>
217     </dependency>
218     <dependency>
219       <groupId>org.hamcrest</groupId>
220       <artifactId>hamcrest-library</artifactId>
221       <scope>test</scope>
222     </dependency>
223     <dependency>
224       <groupId>org.mockito</groupId>
225       <artifactId>mockito-core</artifactId>
226       <scope>test</scope>
227     </dependency>
228     <dependency>
229       <groupId>org.slf4j</groupId>
230       <artifactId>jcl-over-slf4j</artifactId>
231       <scope>test</scope>
232     </dependency>
233     <dependency>
234       <groupId>org.slf4j</groupId>
235       <artifactId>jul-to-slf4j</artifactId>
236       <scope>test</scope>
237     </dependency>
238     <dependency>
239       <groupId>org.apache.logging.log4j</groupId>
240       <artifactId>log4j-api</artifactId>
241       <scope>test</scope>
242     </dependency>
243     <dependency>
244       <groupId>org.apache.logging.log4j</groupId>
245       <artifactId>log4j-core</artifactId>
246       <scope>test</scope>
247     </dependency>
248     <dependency>
249       <groupId>org.apache.logging.log4j</groupId>
250       <artifactId>log4j-slf4j-impl</artifactId>
251       <scope>test</scope>
252     </dependency>
253     <dependency>
254       <groupId>org.apache.kerby</groupId>
255       <artifactId>kerb-simplekdc</artifactId>
256       <scope>test</scope>
257     </dependency>
258   </dependencies>
260   <profiles>
261     <!-- Needs to make the profile in apache parent pom -->
262     <profile>
263       <id>apache-release</id>
264       <build>
265         <plugins>
266           <plugin>
267             <groupId>org.apache.maven.plugins</groupId>
268             <artifactId>maven-resources-plugin</artifactId>
269             <executions>
270               <execution>
271                 <id>license-javadocs</id>
272                 <phase>prepare-package</phase>
273                 <goals>
274                   <goal>copy-resources</goal>
275                 </goals>
276                 <configuration>
277                   <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
278                   <resources>
279                     <resource>
280                       <directory>src/main/javadoc/META-INF/</directory>
281                       <targetPath>META-INF/</targetPath>
282                       <includes>
283                         <include>NOTICE</include>
284                       </includes>
285                       <filtering>true</filtering>
286                     </resource>
287                   </resources>
288                 </configuration>
289               </execution>
290             </executions>
291           </plugin>
292         </plugins>
293       </build>
294     </profile>
295     <!-- Skip the tests in this module -->
296     <profile>
297       <id>skipCommonTests</id>
298       <activation>
299         <property>
300           <name>skipCommonTests</name>
301         </property>
302       </activation>
303       <properties>
304         <surefire.skipFirstPart>true</surefire.skipFirstPart>
305         <surefire.skipSecondPart>true</surefire.skipSecondPart>
306       </properties>
307     </profile>
308     <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
309     <profile>
310       <id>hadoop-3.0</id>
311       <activation>
312         <property><name>!hadoop.profile</name></property>
313       </activation>
314       <dependencies>
315         <dependency>
316           <groupId>org.apache.hadoop</groupId>
317           <artifactId>hadoop-common</artifactId>
318         </dependency>
319       </dependencies>
320       <build>
321         <plugins>
322           <plugin>
323             <artifactId>maven-dependency-plugin</artifactId>
324             <executions>
325               <execution>
326                 <id>create-mrapp-generated-classpath</id>
327                 <phase>generate-test-resources</phase>
328                 <goals>
329                   <goal>build-classpath</goal>
330                 </goals>
331                 <configuration>
332                   <!-- needed to run the unit test for DS to generate
333                   the required classpath that is required in the env
334                   of the launch container in the mini mr/yarn cluster
335                   -->
336                   <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
337                 </configuration>
338               </execution>
339             </executions>
340           </plugin>
341         </plugins>
342       </build>
343     </profile>
344     <profile>
345       <id>eclipse-specific</id>
346       <activation>
347         <property>
348           <name>m2e.version</name>
349         </property>
350       </activation>
351       <build>
352         <pluginManagement>
353           <plugins>
354             <!--This plugin's configuration is used to store Eclipse m2e settings
355                  only. It has no influence on the Maven build itself. -->
356             <plugin>
357               <groupId>org.eclipse.m2e</groupId>
358               <artifactId>lifecycle-mapping</artifactId>
359               <configuration>
360                 <lifecycleMappingMetadata>
361                   <pluginExecutions>
362                     <pluginExecution>
363                       <pluginExecutionFilter>
364                         <groupId>org.apache.maven.plugins</groupId>
365                         <artifactId>maven-antrun-plugin</artifactId>
366                         <versionRange>[${maven.antrun.version}]</versionRange>
367                         <goals>
368                           <goal>run</goal>
369                         </goals>
370                       </pluginExecutionFilter>
371                       <action>
372                         <execute/>
373                       </action>
374                     </pluginExecution>
375                     <pluginExecution>
376                       <pluginExecutionFilter>
377                         <groupId>org.apache.maven.plugins</groupId>
378                         <artifactId>maven-dependency-plugin</artifactId>
379                         <versionRange>[2.8,)</versionRange>
380                         <goals>
381                           <goal>build-classpath</goal>
382                         </goals>
383                       </pluginExecutionFilter>
384                       <action>
385                         <ignore></ignore>
386                       </action>
387                     </pluginExecution>
388                   </pluginExecutions>
389                 </lifecycleMappingMetadata>
390               </configuration>
391             </plugin>
392           </plugins>
393         </pluginManagement>
394       </build>
395     </profile>
396   </profiles>
397 </project>