2 <project xmlns="https://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
7 * Licensed to the Apache Software Foundation (ASF) under one
8 * or more contributor license agreements. See the NOTICE file
9 * distributed with this work for additional information
10 * regarding copyright ownership. The ASF licenses this file
11 * to you under the Apache License, Version 2.0 (the
12 * "License"); you may not use this file except in compliance
13 * with the License. You may obtain a copy of the License at
15 * http://www.apache.org/licenses/LICENSE-2.0
17 * Unless required by applicable law or agreed to in writing, software
18 * distributed under the License is distributed on an "AS IS" BASIS,
19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 * See the License for the specific language governing permissions and
21 * limitations under the License.
24 <modelVersion>4.0.0</modelVersion>
26 <artifactId>hbase-build-configuration</artifactId>
27 <groupId>org.apache.hbase</groupId>
28 <version>3.0.0-alpha-2-SNAPSHOT</version>
29 <relativePath>../hbase-build-configuration</relativePath>
31 <artifactId>hbase-thrift</artifactId>
32 <name>Apache HBase - Thrift</name>
33 <description>HBase Thrift Server</description>
36 <!-- Makes sure the resources get added before they are processed
37 by placing this first -->
39 <!-- Add the build webabpps to the classpth -->
41 <directory>${project.build.directory}</directory>
43 <include>hbase-webapps/**</include>
47 <directory>src/main/resources/</directory>
49 <include>**/*.thrift</include>
55 <directory>src/test/resources/META-INF/</directory>
56 <targetPath>META-INF/</targetPath>
58 <include>LICENSE</include>
59 <include>NOTICE</include>
61 <filtering>true</filtering>
64 <directory>src/test/resources</directory>
66 <include>**/**</include>
73 <!--Make it so assembly:single does nothing in here-->
74 <artifactId>maven-assembly-plugin</artifactId>
76 <skipAssembly>true</skipAssembly>
79 <!-- General ant tasks, bound to different build phases -->
81 <artifactId>maven-antrun-plugin</artifactId>
83 <!-- Generate web app sources -->
86 <phase>generate-sources</phase>
89 <property name="build.webapps" location="${project.build.directory}/hbase-webapps"/>
90 <property name="src.webapps"
91 location="${basedir}/src/main/resources/hbase-webapps"/>
92 <property name="generated.sources"
93 location="${project.build.directory}/generated-sources"/>
94 <mkdir dir="${build.webapps}"/>
95 <copy todir="${build.webapps}">
96 <fileset dir="${src.webapps}">
97 <exclude name="**/*.jsp"/>
98 <exclude name="**/.*"/>
99 <exclude name="**/*~"/>
102 <!--The compile.classpath is passed in by maven -->
103 <taskdef classname="org.apache.jasper.JspC" name="jspcompiler"
104 classpathref="maven.compile.classpath"/>
105 <mkdir dir="${build.webapps}/thrift/WEB-INF"/>
106 <jspcompiler uriroot="${src.webapps}/thrift" outputdir="${generated.sources}/java"
107 package="org.apache.hadoop.hbase.generated.thrift"
108 webxml="${build.webapps}/thrift/WEB-INF/web.xml"/>
118 <groupId>org.codehaus.mojo</groupId>
119 <artifactId>build-helper-maven-plugin</artifactId>
121 <!-- Add the generated sources -->
123 <id>jspcSource-packageInfo-source</id>
124 <phase>generate-sources</phase>
126 <goal>add-source</goal>
130 <source>${project.build.directory}/generated-sources/java</source>
136 <!-- Make a jar and put the sources in the jar -->
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-source-plugin</artifactId>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-checkstyle-plugin</artifactId>
145 <failOnViolation>true</failOnViolation>
149 <groupId>net.revelc.code</groupId>
150 <artifactId>warbucks-maven-plugin</artifactId>
156 <!-- Intra-project dependencies -->
158 <groupId>org.apache.hbase</groupId>
159 <artifactId>hbase-logging</artifactId>
160 <type>test-jar</type>
164 <groupId>org.apache.hbase</groupId>
165 <artifactId>hbase-common</artifactId>
169 <groupId>org.apache.hbase</groupId>
170 <artifactId>hbase-annotations</artifactId>
171 <type>test-jar</type>
175 <groupId>org.apache.hbase</groupId>
176 <artifactId>hbase-client</artifactId>
179 <groupId>org.apache.hbase.thirdparty</groupId>
180 <artifactId>hbase-shaded-miscellaneous</artifactId>
183 <groupId>org.slf4j</groupId>
184 <artifactId>slf4j-api</artifactId>
187 <groupId>org.apache.commons</groupId>
188 <artifactId>commons-lang3</artifactId>
191 <groupId>org.apache.hbase</groupId>
192 <artifactId>hbase-server</artifactId>
195 <groupId>org.apache.hbase</groupId>
196 <artifactId>hbase-asyncfs</artifactId>
197 <type>test-jar</type>
201 <groupId>org.apache.hbase</groupId>
202 <artifactId>hbase-testing-util</artifactId>
206 <groupId>org.apache.hbase</groupId>
207 <artifactId>hbase-hadoop-compat</artifactId>
210 <groupId>org.apache.thrift</groupId>
211 <artifactId>libthrift</artifactId>
214 <groupId>junit</groupId>
215 <artifactId>junit</artifactId>
219 <groupId>javax.servlet</groupId>
220 <artifactId>javax.servlet-api</artifactId>
223 <groupId>com.github.stephenc.findbugs</groupId>
224 <artifactId>findbugs-annotations</artifactId>
225 <scope>compile</scope>
226 <optional>true</optional>
229 <!--For JspC used in ant task-->
230 <groupId>org.glassfish.web</groupId>
231 <artifactId>javax.servlet.jsp</artifactId>
233 <!-- Specifically needed for jetty-jsp, included
234 to bypass version scanning that hits a bad repo
237 <groupId>org.glassfish</groupId>
238 <artifactId>javax.el</artifactId>
241 <groupId>org.apache.kerby</groupId>
242 <artifactId>kerb-simplekdc</artifactId>
246 <groupId>org.slf4j</groupId>
247 <artifactId>jcl-over-slf4j</artifactId>
251 <groupId>org.slf4j</groupId>
252 <artifactId>jul-to-slf4j</artifactId>
256 <groupId>org.apache.logging.log4j</groupId>
257 <artifactId>log4j-api</artifactId>
261 <groupId>org.apache.logging.log4j</groupId>
262 <artifactId>log4j-core</artifactId>
266 <groupId>org.apache.logging.log4j</groupId>
267 <artifactId>log4j-slf4j-impl</artifactId>
271 <groupId>org.apache.logging.log4j</groupId>
272 <artifactId>log4j-1.2-api</artifactId>
278 <!-- Needs to make the profile in apache parent pom -->
280 <id>apache-release</id>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-resources-plugin</artifactId>
288 <id>license-javadocs</id>
289 <phase>prepare-package</phase>
291 <goal>copy-resources</goal>
294 <outputDirectory>${project.build.directory}/apidocs</outputDirectory>
297 <directory>src/main/javadoc/META-INF/</directory>
298 <targetPath>META-INF/</targetPath>
300 <include>LICENSE</include>
301 <include>NOTICE</include>
303 <filtering>true</filtering>
313 <!-- Skip the tests in this module -->
315 <id>skipThriftTests</id>
318 <name>skipThriftTests</name>
322 <surefire.skipFirstPart>true</surefire.skipFirstPart>
323 <surefire.skipSecondPart>true</surefire.skipSecondPart>
328 Profile for regenerating the thrift java classes.
329 The generated files are to be committed to version control.
331 mvn compile -Pcompile-thrift
334 <id>compile-thrift</id>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-enforcer-plugin</artifactId>
342 <id>enforce-thrift-version</id>
349 <property>thrift.version</property>
350 <message>"The Thrift version must be specified."</message>
351 <regex>0\.14\.1</regex>
355 [FATAL] ==========================================================================================
356 [FATAL] HBase Thrift requires the thrift generator version 0.14.1.
357 [FATAL] Setting it to something else needs to be reviewed for wire and behavior compatibility.
358 [FATAL] ==========================================================================================
370 <groupId>org.codehaus.mojo</groupId>
371 <artifactId>exec-maven-plugin</artifactId>
372 <version>${exec.maven.version}</version>
375 <id>check-thrift-version</id>
376 <phase>generate-sources</phase>
381 <executable>sh</executable>
382 <workingDirectory>${basedir}</workingDirectory>
384 <argument>-c</argument>
385 <argument>${thrift.path} -version | \
386 fgrep 'Thrift version ${thrift.version}' && exit 0;
387 echo "========== [FATAL] Need Thrift version ${thrift.version} ==========";
394 <phase>generate-sources</phase>
399 <executable>${thrift.path}</executable>
400 <workingDirectory>${basedir}</workingDirectory>
402 <argument>-strict</argument>
403 <argument>--gen</argument>
404 <argument>java</argument>
405 <argument>-out</argument>
406 <argument>${basedir}/src/main/java</argument>
407 <argument>${basedir}/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift</argument>
413 <phase>generate-sources</phase>
418 <executable>${thrift.path}</executable>
419 <workingDirectory>${basedir}</workingDirectory>
421 <argument>-strict</argument>
422 <argument>--gen</argument>
423 <argument>java</argument>
424 <argument>-out</argument>
425 <argument>${basedir}/src/main/java</argument>
426 <argument>${basedir}/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift</argument>
435 <!-- Profile for building against Hadoop 3.0.0. Activate by default -->
439 <property><name>!hadoop.profile</name></property>
443 <groupId>org.apache.hadoop</groupId>
444 <artifactId>hadoop-common</artifactId>
447 <groupId>org.apache.hadoop</groupId>
448 <artifactId>hadoop-minicluster</artifactId>
451 <groupId>com.google.guava</groupId>
452 <artifactId>guava</artifactId>
455 <groupId>javax.xml.bind</groupId>
456 <artifactId>jaxb-api</artifactId>
459 <groupId>javax.ws.rs</groupId>
460 <artifactId>jsr311-api</artifactId>
468 <artifactId>maven-dependency-plugin</artifactId>
471 <id>create-mrapp-generated-classpath</id>
472 <phase>generate-test-resources</phase>
474 <goal>build-classpath</goal>
477 <!-- needed to run the unit test for DS to generate
478 the required classpath that is required in the env
479 of the launch container in the mini mr/yarn cluster
481 <outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath
491 <id>eclipse-specific</id>
494 <name>m2e.version</name>
500 <!--This plugin's configuration is used to store Eclipse m2e settings
501 only. It has no influence on the Maven build itself.-->
503 <groupId>org.eclipse.m2e</groupId>
504 <artifactId>lifecycle-mapping</artifactId>
506 <lifecycleMappingMetadata>
509 <pluginExecutionFilter>
510 <groupId>org.apache.maven.plugins</groupId>
511 <artifactId>maven-antrun-plugin</artifactId>
512 <versionRange>[1.6,)</versionRange>
516 </pluginExecutionFilter>
522 <pluginExecutionFilter>
523 <groupId>org.apache.maven.plugins</groupId>
524 <artifactId>maven-dependency-plugin</artifactId>
525 <versionRange>[2.8,)</versionRange>
527 <goal>build-classpath</goal>
529 </pluginExecutionFilter>
535 </lifecycleMappingMetadata>