HBASE-18970 fix hbase shell reading interactive input (Amit Virmani)
[hbase.git] / hbase-protocol / pom.xml
bloba608dffccd61a2f50be2f181dc5e7e82207ec6d4
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>
29   <artifactId>hbase-protocol</artifactId>
30   <name>Apache HBase - Protocol</name>
31   <description>Protobuf protocol classes used by HBase to communicate.</description>
32   <properties>
33     <maven.javadoc.skip>true</maven.javadoc.skip>
34   </properties>
35   <build>
36     <plugins>
37       <plugin>
38         <groupId>org.apache.maven.plugins</groupId>
39         <artifactId>maven-site-plugin</artifactId>
40         <configuration>
41           <skip>true</skip>
42         </configuration>
43       </plugin>
44       <!-- Make a jar and put the sources in the jar -->
45       <plugin>
46         <groupId>org.apache.maven.plugins</groupId>
47         <artifactId>maven-source-plugin</artifactId>
48       </plugin>
49       <plugin>
50         <!--Make it so assembly:single does nothing in here-->
51         <artifactId>maven-assembly-plugin</artifactId>
52         <configuration>
53           <skipAssembly>true</skipAssembly>
54         </configuration>
55       </plugin>
56       <plugin>
57         <artifactId>maven-surefire-plugin</artifactId>
58         <!-- Always skip the second part executions, since we only run simple unit tests in this module -->
59         <executions>
60           <execution>
61             <id>secondPartTestsExecution</id>
62             <phase>test</phase>
63             <goals>
64               <goal>test</goal>
65             </goals>
66             <configuration>
67               <skip>true</skip>
68             </configuration>
69           </execution>
70         </executions>
71       </plugin>
72       <plugin>
73         <groupId>org.xolstice.maven.plugins</groupId>
74         <artifactId>protobuf-maven-plugin</artifactId>
75         <executions>
76           <execution>
77             <id>compile-protoc</id>
78             <phase>generate-sources</phase>
79             <goals>
80               <goal>compile</goal>
81             </goals>
82           </execution>
83         </executions>
84       </plugin>
85       <plugin>
86         <groupId>com.google.code.maven-replacer-plugin</groupId>
87         <artifactId>replacer</artifactId>
88         <version>1.5.3</version>
89         <executions>
90           <execution>
91             <phase>generate-sources</phase>
92             <goals>
93               <goal>replace</goal>
94             </goals>
95           </execution>
96         </executions>
97         <configuration>
98           <basedir>${basedir}/target/generated-sources/</basedir>
99             <includes>
100                 <include>**/*.java</include>
101             </includes>
102             <replacements>
103               <replacement>
104                 <token>(public)(\W+static)?(\W+final)?(\W+class)</token>
105                 <value>@javax.annotation.Generated("proto") $1$2$3$4</value>
106               </replacement>
107               <!-- replacer doesn't support anchoring or negative lookbehind -->
108               <replacement>
109                 <token>(@javax.annotation.Generated\("proto"\) ){2}</token>
110                 <value>$1</value>
111               </replacement>
112             </replacements>
113         </configuration>
114       </plugin>
115     </plugins>
116     <pluginManagement>
117       <plugins>
118         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
119         <plugin>
120           <groupId>org.eclipse.m2e</groupId>
121           <artifactId>lifecycle-mapping</artifactId>
122           <version>1.0.0</version>
123           <configuration>
124             <lifecycleMappingMetadata>
125               <pluginExecutions>
126                 <pluginExecution>
127                   <pluginExecutionFilter>
128                     <groupId>org.apache.hadoop</groupId>
129                     <artifactId>hadoop-maven-plugins</artifactId>
130                     <versionRange>[2.0.5-alpha,)</versionRange>
131                     <goals>
132                       <goal>protoc</goal>
133                     </goals>
134                   </pluginExecutionFilter>
135                   <action>
136                     <ignore/>
137                   </action>
138                 </pluginExecution>
139                 <pluginExecution>
140                   <pluginExecutionFilter>
141                     <groupId>
142                       com.google.code.maven-replacer-plugin
143                     </groupId>
144                     <artifactId>replacer</artifactId>
145                     <versionRange>[1.5.3,)</versionRange>
146                     <goals>
147                       <goal>replace</goal>
148                     </goals>
149                   </pluginExecutionFilter>
150                   <action>
151                     <ignore></ignore>
152                   </action>
153                 </pluginExecution>
154               </pluginExecutions>
155             </lifecycleMappingMetadata>
156           </configuration>
157         </plugin>
158       </plugins>
159     </pluginManagement>
160   </build>
161   <dependencies>
162     <!-- General dependencies -->
163     <dependency>
164       <groupId>com.google.protobuf</groupId>
165       <artifactId>protobuf-java</artifactId>
166     </dependency>
167     <dependency>
168       <groupId>commons-logging</groupId>
169       <artifactId>commons-logging</artifactId>
170     </dependency>
171   </dependencies>
172   <profiles>
173     <!-- Skip the tests in this module -->
174     <profile>
175       <id>skipProtocolTests</id>
176       <activation>
177         <property>
178           <name>skipProtocolTests</name>
179         </property>
180       </activation>
181       <properties>
182         <surefire.skipFirstPart>true</surefire.skipFirstPart>
183         <surefire.skipSecondPart>true</surefire.skipSecondPart>
184       </properties>
185     </profile>
186   </profiles>
187 </project>