HBASE-21857 Addendum fix broken UTs
[hbase.git] / hbase-hadoop2-compat / pom.xml
blobc1e42129daa8b22796794dd56b67d208936fe7ec
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  Licensed to the Apache Software Foundation (ASF) under one
5  or more contributor license agreements.  See the NOTICE file
6  distributed with this work for additional information
7  regarding copyright ownership.  The ASF licenses this file
8  to you under the Apache License, Version 2.0 (the
9  "License"); you may not use this file except in compliance
10  with the License.  You may obtain a copy of the License at
12      http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 -->
20   <modelVersion>4.0.0</modelVersion>
21   <parent>
22     <artifactId>hbase-build-configuration</artifactId>
23     <groupId>org.apache.hbase</groupId>
24     <version>3.0.0-SNAPSHOT</version>
25     <relativePath>../hbase-build-configuration</relativePath>
26   </parent>
28   <artifactId>hbase-hadoop2-compat</artifactId>
29   <name>Apache HBase - Hadoop Two Compatibility</name>
30   <description>
31         Interfaces to be implemented in order to smooth
32         over hadoop version differences
33     </description>
34 <!--REMOVE-->
36   <build>
37     <plugins>
38       <!-- Make a jar and put the sources in the jar -->
39       <plugin>
40         <groupId>org.apache.maven.plugins</groupId>
41         <artifactId>maven-source-plugin</artifactId>
42       </plugin>
43       <plugin>
44         <!--Make it so assembly:single does nothing in here-->
45         <artifactId>maven-assembly-plugin</artifactId>
46         <configuration>
47           <skipAssembly>true</skipAssembly>
48         </configuration>
49       </plugin>
50       <plugin>
51       <groupId>org.apache.maven.plugins</groupId>
52         <artifactId>maven-dependency-plugin</artifactId>
53         <executions>
54           <execution>
55             <id>create-mrapp-generated-classpath</id>
56             <phase>generate-test-resources</phase>
57             <goals>
58               <goal>build-classpath</goal>
59             </goals>
60             <configuration>
61               <!-- needed to run the unit test for DS to generate the required classpath
62                 that is required in the env of the launch container in the mini mr/yarn cluster -->
63               <outputFile>
64                 ${project.build.directory}/test-classes/mrapp-generated-classpath
65               </outputFile>
66             </configuration>
67           </execution>
68         </executions>
69       </plugin>
70       <plugin>
71         <groupId>net.revelc.code</groupId>
72         <artifactId>warbucks-maven-plugin</artifactId>
73       </plugin>
74       <plugin>
75         <groupId>org.apache.maven.plugins</groupId>
76         <artifactId>maven-checkstyle-plugin</artifactId>
77         <configuration>
78           <failOnViolation>true</failOnViolation>
79         </configuration>
80       </plugin>
81     </plugins>
82         <pluginManagement>
83       <plugins>
84         <!--This plugin's configuration is used to store Eclipse m2e settings
85              only. It has no influence on the Maven build itself and needs to
86              be kept in plugin management, not in the actual plugins. -->
87         <plugin>
88           <groupId>org.eclipse.m2e</groupId>
89           <artifactId>lifecycle-mapping</artifactId>
90           <configuration>
91             <lifecycleMappingMetadata>
92               <pluginExecutions>
93                 <pluginExecution>
94                   <pluginExecutionFilter>
95                     <groupId>org.apache.maven.plugins</groupId>
96                     <artifactId>maven-dependency-plugin</artifactId>
97                     <versionRange>[2.4,)</versionRange>
98                     <goals>
99                       <goal>build-classpath</goal>
100                     </goals>
101                   </pluginExecutionFilter>
102                   <action>
103                     <execute/>
104                   </action>
105                 </pluginExecution>
106               </pluginExecutions>
107             </lifecycleMappingMetadata>
108           </configuration>
109         </plugin>
110       </plugins>
111     </pluginManagement>
112   </build>
114   <dependencies>
115     <dependency>
116       <groupId>org.apache.hbase</groupId>
117       <artifactId>hbase-annotations</artifactId>
118       <type>test-jar</type>
119       <scope>test</scope>
120     </dependency>
121     <dependency>
122       <groupId>org.apache.hbase</groupId>
123       <artifactId>hbase-hadoop-compat</artifactId>
124     </dependency>
125     <dependency>
126       <groupId>junit</groupId>
127       <artifactId>junit</artifactId>
128       <scope>test</scope>
129     </dependency>
130     <dependency>
131       <groupId>org.apache.hbase</groupId>
132       <artifactId>hbase-common</artifactId>
133     </dependency>
134     <dependency>
135       <groupId>org.apache.hbase</groupId>
136       <artifactId>hbase-common</artifactId>
137       <type>test-jar</type>
138       <scope>test</scope>
139     </dependency>
140     <dependency>
141       <groupId>org.apache.hbase</groupId>
142       <artifactId>hbase-metrics</artifactId>
143     </dependency>
144     <dependency>
145       <groupId>org.apache.hbase</groupId>
146       <artifactId>hbase-metrics-api</artifactId>
147     </dependency>
148     <dependency>
149       <groupId>org.apache.hbase</groupId>
150       <artifactId>hbase-hadoop-compat</artifactId>
151       <version>${project.version}</version>
152       <type>test-jar</type>
153       <scope>test</scope>
154     </dependency>
155     <dependency>
156       <groupId>org.apache.hadoop</groupId>
157       <artifactId>hadoop-mapreduce-client-core</artifactId>
158       <version>${hadoop.version}</version>
159       <exclusions>
160         <exclusion>
161           <groupId>com.google.guava</groupId>
162           <artifactId>guava</artifactId>
163         </exclusion>
164       </exclusions>
165     </dependency>
166     <dependency>
167       <groupId>org.apache.hadoop</groupId>
168       <artifactId>hadoop-common</artifactId>
169       <version>${hadoop.version}</version>
170     </dependency>
171     <dependency>
172       <groupId>org.apache.commons</groupId>
173       <artifactId>commons-lang3</artifactId>
174     </dependency>
175     <dependency>
176       <groupId>org.slf4j</groupId>
177       <artifactId>slf4j-api</artifactId>
178     </dependency>
179     <dependency>
180       <groupId>org.apache.hbase.thirdparty</groupId>
181       <artifactId>hbase-shaded-miscellaneous</artifactId>
182     </dependency>
183   </dependencies>
185   <profiles>
186         <!-- Skip the tests in this module -->
187         <profile>
188             <id>skipHadoopTwoCompatTests</id>
189             <activation>
190                 <property>
191                     <name>skipHadoopTwoCompatTests</name>
192                 </property>
193             </activation>
194             <properties>
195                 <surefire.skipFirstPart>true</surefire.skipFirstPart>
196                 <surefire.skipSecondPart>true</surefire.skipSecondPart>
197             </properties>
198         </profile>
199   </profiles>
200 </project>