HBASE-21429 [hbase-connectors] pom refactoring adding kafka dir intermediary
authorMichael Stack <stack@apache.org>
Fri, 2 Nov 2018 18:07:30 +0000 (11:07 -0700)
committerMichael Stack <stack@apache.org>
Fri, 2 Nov 2018 18:10:04 +0000 (11:10 -0700)
hbase-connectors-assembly/pom.xml
kafka/hbase-kafka-model/pom.xml
kafka/hbase-kafka-proxy/pom.xml
kafka/pom.xml [new file with mode: 0644]
pom.xml

index bd6b2ce..6e581ab 100755 (executable)
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>hbase-connectors</artifactId>
     <groupId>org.apache.hbase.connectors</groupId>
-    <version>1.0.0-SNAPSHOT</version>
+    <version>${revision}</version>
   </parent>
   <artifactId>hbase-connectors-assembly</artifactId>
   <name>Apache HBase Connectors - Assembly</name>
   </properties>
   <dependencies>
     <dependency>
-      <groupId>org.apache.hbase.connectors</groupId>
+      <groupId>org.apache.hbase.connectors.kafka</groupId>
       <artifactId>hbase-kafka-proxy</artifactId>
       <version>${project.version}</version>
     </dependency>
-
     <dependency>
-      <groupId>org.apache.hbase.connectors</groupId>
+      <groupId>org.apache.hbase.connectors.kafka</groupId>
       <artifactId>hbase-kafka-model</artifactId>
       <version>${project.version}</version>
     </dependency>
index 44891c2..6834173 100644 (file)
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.apache.hbase.connectors</groupId>
-    <artifactId>hbase-connectors</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-    <relativePath>../..</relativePath>
+    <artifactId>kafka</artifactId>
+    <version>${revision}</version>
+    <relativePath>../</relativePath>
   </parent>
-
+  <groupId>org.apache.hbase.connectors.kafka</groupId>
   <artifactId>hbase-kafka-model</artifactId>
   <name>Apache HBase - Model Objects for Kafka Proxy</name>
   <description>Model objects that represent HBase mutations</description>
-
   <dependencies>
     <dependency>
       <groupId>org.apache.avro</groupId>
       <artifactId>avro</artifactId>
     </dependency>
   </dependencies>
-
   <build>
     <plugins>
       <plugin>
index 8259bc9..642f139 100755 (executable)
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.apache.hbase.connectors</groupId>
-    <artifactId>hbase-connectors</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-    <relativePath>../..</relativePath>
+    <artifactId>kafka</artifactId>
+    <version>${revision}</version>
+    <relativePath>../</relativePath>
   </parent>
-
+  <groupId>org.apache.hbase.connectors.kafka</groupId>
   <artifactId>hbase-kafka-proxy</artifactId>
   <name>Apache HBase - Kafka Proxy</name>
   <description>Proxy that forwards HBase replication events to a Kakfa broker</description>
@@ -38,9 +38,7 @@
     <kafka-clients.version>2.0.0</kafka-clients.version>
     <commons-io.version>2.5</commons-io.version>
   </properties>
-
   <build>
-
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
     </plugins>
   </build>
   <dependencies>
-   <dependency>
+    <dependency>
       <groupId>org.apache.avro</groupId>
       <artifactId>avro</artifactId>
-   </dependency>
+    </dependency>
     <dependency>
-      <groupId>org.apache.hbase.connectors</groupId>
+      <groupId>org.apache.hbase.connectors.kafka</groupId>
       <artifactId>hbase-kafka-model</artifactId>
     </dependency>
-
     <dependency>
       <groupId>org.apache.hbase</groupId>
       <artifactId>hbase-common</artifactId>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
-
     <dependency>
       <groupId>org.apache.hbase</groupId>
       <artifactId>hbase-annotations</artifactId>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
-
     <dependency>
       <groupId>org.apache.hbase</groupId>
       <artifactId>hbase-server</artifactId>
       <scope>provided</scope>
     </dependency>
-
     <dependency>
       <groupId>org.apache.kafka</groupId>
       <artifactId>kafka-clients</artifactId>
diff --git a/kafka/pom.xml b/kafka/pom.xml
new file mode 100644 (file)
index 0000000..c489122
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+<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">
+  <!--
+  /**
+   * Licensed to the Apache Software Foundation (ASF) under one
+   * or more contributor license agreements.  See the NOTICE file
+   * distributed with this work for additional information
+   * regarding copyright ownership.  The ASF licenses this file
+   * to you under the Apache License, Version 2.0 (the
+   * "License"); you may not use this file except in compliance
+   * with the License.  You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   * See the License for the specific language governing permissions and
+   * limitations under the License.
+   */
+  -->
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.hbase.connectors</groupId>
+    <artifactId>hbase-connectors</artifactId>
+    <version>${revision}</version>
+    <relativePath>../</relativePath>
+  </parent>
+  <artifactId>kafka</artifactId>
+  <packaging>pom</packaging>
+  <name>Apache HBase - Kafka Proxy</name>
+  <description>Kafka Proxy for Apache HBase</description>
+  <modules>
+    <module>hbase-kafka-model</module>
+    <module>hbase-kafka-proxy</module>
+  </modules>
+  <properties>
+    <avro.version>1.7.7</avro.version>
+  </properties>
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.avro</groupId>
+        <artifactId>avro</artifactId>
+        <version>${avro.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.hbase.connectors.kafka</groupId>
+        <artifactId>hbase-kafka-model</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+</project>
diff --git a/pom.xml b/pom.xml
index 69838c0..0a6b39c 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,8 @@
   </parent>
   <groupId>org.apache.hbase.connectors</groupId>
   <artifactId>hbase-connectors</artifactId>
-  <version>1.0.0-SNAPSHOT</version>
+  <!-- See https://maven.apache.org/maven-ci-friendly.html -->
+  <version>${revision}</version>
   <name>Apache HBase Connectors</name>
   <packaging>pom</packaging>
   <description>
     </license>
   </licenses>
   <modules>
-    <module>kafka/hbase-kafka-model</module>
-    <module>kafka/hbase-kafka-proxy</module>
+    <module>kafka</module>
     <module>hbase-connectors-assembly</module>
-    </modules>
+  </modules>
   <scm>
     <connection>scm:git:git://gitbox.apache.org/repos/asf/hbase-connectors.git</connection>
     <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/hbase-connectors.git</developerConnection>
     <url>http://issues.apache.org/jira/browse/HBASE</url>
   </issueManagement>
   <ciManagement>
+    <!--TODO: Fix this. Hook up this module to travisci or some such-->
     <system>hudson</system>
     <url>http://hudson.zones.apache.org/hudson/view/HBase/job/HBase-TRUNK/</url>
   </ciManagement>
+  <!--Currently mail sent by this gitbox project goes to issues@hbase.
+       git comments are reflected in referenced JIRA issue.
+       https://issues.apache.org/jira/browse/INFRA-16887
+    -->
   <mailingLists>
     <mailingList>
       <name>User List</name>
     </mailingList>
   </mailingLists>
   <developers/>
-  <!--TODO-->
   <properties>
+    <!-- See https://maven.apache.org/maven-ci-friendly.html -->
+    <revision>1.0.0-SNAPSHOT</revision>
     <maven.javadoc.skip>true</maven.javadoc.skip>
-    <maven.build.timestamp.format>
-      yyyy-MM-dd'T'HH:mm
-    </maven.build.timestamp.format>
+    <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm</maven.build.timestamp.format>
     <buildDate>${maven.build.timestamp}</buildDate>
     <compileSource>1.8</compileSource>
     <java.min.version>${compileSource}</java.min.version>
-    <maven.min.version>3.3.3</maven.min.version>
-    <rename.offset>org.apache.hadoop.hbase.shaded</rename.offset>
-    <avro.version>1.7.7</avro.version>
+    <maven.min.version>3.5.0</maven.min.version>
     <hbase.version>2.1.0</hbase.version>
     <maven.compiler.version>3.6.1</maven.compiler.version>
     <exec.maven.version>1.6.0</exec.maven.version>
   </properties>
   <dependencyManagement>
     <dependencies>
-      <!-- Avro dependencies we mostly get transitively, manual version coallescing -->
-      <dependency>
-        <groupId>org.apache.avro</groupId>
-        <artifactId>avro</artifactId>
-        <version>${avro.version}</version>
-      </dependency>
       <dependency>
         <groupId>org.apache.hbase</groupId>
         <artifactId>hbase-annotations</artifactId>
         <type>test-jar</type>
         <scope>test</scope>
       </dependency>
-
       <dependency>
         <groupId>org.apache.hbase</groupId>
         <artifactId>hbase-server</artifactId>
         <version>${hbase.version}</version>
         <scope>provided</scope>
       </dependency>
-
-      <dependency>
-        <groupId>org.apache.hbase.connectors</groupId>
-        <artifactId>hbase-kafka-proxy</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.apache.hbase.connectors</groupId>
-        <artifactId>hbase-kafka-model</artifactId>
-        <version>${project.version}</version>
-      </dependency>
     </dependencies>
   </dependencyManagement>
   <build>
     <pluginManagement>
       <plugins>
+        <!-- See https://maven.apache.org/maven-ci-friendly.html-->
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>flatten-maven-plugin</artifactId>
+          <version>1.0.1</version>
+          <configuration>
+            <updatePomFile>true</updatePomFile>
+          </configuration>
+          <executions>
+            <execution>
+              <id>flatten</id>
+              <phase>process-resources</phase>
+              <goals>
+                <goal>flatten</goal>
+              </goals>
+            </execution>
+            <execution>
+              <id>flatten.clean</id>
+              <phase>clean</phase>
+              <goals>
+                <goal>clean</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
         <plugin>
           <artifactId>maven-assembly-plugin</artifactId>
           <configuration>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
+        <version>3.0.0-M2</version>
         <dependencies>
           <dependency>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>extra-enforcer-rules</artifactId>
-            <version>1.0-beta-6</version>
+            <version>1.0-beta-9</version>
           </dependency>
         </dependencies>
         <!-- version set by parent -->