This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix-connectors.git


The following commit(s) were added to refs/heads/master by this push:
     new 5bd5855  PHOENIX-6165 Add Phoenix-Connectors assembly to create 
tarball of jar artifacts
5bd5855 is described below

commit 5bd5855a47145bd245f550541cd8aa0c1d1ca332
Author: Richard Antal <[email protected]>
AuthorDate: Tue Sep 29 12:53:52 2020 +0200

    PHOENIX-6165 Add Phoenix-Connectors assembly to create tarball of jar 
artifacts
---
 BUILDING.md                                        |   8 +
 phoenix-flume-base/phoenix5-flume/pom.xml          |   1 +
 phoenix-hive-base/phoenix5-hive/pom.xml            |   2 +-
 phoenix-hive-base/pom.xml                          |   2 +-
 phoenix-kafka-base/phoenix5-kafka/pom.xml          |   1 +
 phoenix-kafka-base/pom.xml                         |   2 +-
 phoenix-pig-base/phoenix5-pig/pom.xml              |   1 +
 phoenix-pig-base/pom.xml                           |   2 +-
 phoenix-spark-base/phoenix5-spark/pom.xml          |   1 +
 phoenix4-connectors-assembly/pom.xml               | 166 +++++++++++++++++++++
 .../src/build/components/phoenix4-jars.xml         |  67 +++++++++
 .../package-phoenix4-connectors-to-tar-all.xml     |  36 +++++
 phoenix5-connectors-assembly/pom.xml               | 166 +++++++++++++++++++++
 .../src/build/components/phoenix5-jars.xml         |  67 +++++++++
 .../package-phoenix5-connectors-to-tar-all.xml     |  37 +++++
 pom.xml                                            |  49 ++++--
 16 files changed, 594 insertions(+), 14 deletions(-)

diff --git a/BUILDING.md b/BUILDING.md
index f2aec11..308d3f8 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -58,4 +58,12 @@ $ mvn verify -Dphoenix-four.version=4.16.0-SNAPSHOT 
-Dhbase-one.version=1.5.0
 ```
 ```
 $ mvn install -Dphoenix-five.version=5.1.0-SNAPSHOT -Dhbase-one.version=2.1.9 
-Dhadoop-three.version=3.0.3
+```
+
+### Skipping Phoenix 4/5 modules
+
+You can specify `-Dskip-phoenix4` or `-Dskip-phoenix5` system property to skip 
building the connectors for Phoenix 4 or Phoenix 5 altogether. It is useful to 
reduce the feedback time while working on a change for a specific Phoenix 
version or when you don't actually need the connectors for both Phoenix 4 and 5.
+
+```
+mvn clean package -DskipTests -Dskip-phoenix4
 ```
\ No newline at end of file
diff --git a/phoenix-flume-base/phoenix5-flume/pom.xml 
b/phoenix-flume-base/phoenix5-flume/pom.xml
index f979a50..a1c0b60 100644
--- a/phoenix-flume-base/phoenix5-flume/pom.xml
+++ b/phoenix-flume-base/phoenix5-flume/pom.xml
@@ -40,6 +40,7 @@
         <curator.version>4.0.0</curator.version>
         <jdk.version>1.8</jdk.version>
         <maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
+        <phoenix.main.version>5</phoenix.main.version>
     </properties>
 
     <dependencies>
diff --git a/phoenix-hive-base/phoenix5-hive/pom.xml 
b/phoenix-hive-base/phoenix5-hive/pom.xml
index 38ab3c0..e9dd236 100644
--- a/phoenix-hive-base/phoenix5-hive/pom.xml
+++ b/phoenix-hive-base/phoenix5-hive/pom.xml
@@ -43,7 +43,7 @@
         <curator.version>4.0.0</curator.version>
         <jetty.version>9.3.8.v20160314</jetty.version>
         <jdk.version>1.8</jdk.version>
-        <phoenix.compat.version>5</phoenix.compat.version>
+        <phoenix.main.version>5</phoenix.main.version>
     </properties>
 
     <dependencies>
diff --git a/phoenix-hive-base/pom.xml b/phoenix-hive-base/pom.xml
index 0fa9625..39010c3 100644
--- a/phoenix-hive-base/pom.xml
+++ b/phoenix-hive-base/pom.xml
@@ -256,7 +256,7 @@
                             </goals>
                             <configuration>
                                 <appendAssemblyId>false</appendAssemblyId>
-                                
<finalName>phoenix-${project.version}-hive</finalName>
+                                
<finalName>phoenix${phoenix.main.version}-${project.version}-hive</finalName>
                             </configuration>
                         </execution>
                     </executions>
diff --git a/phoenix-kafka-base/phoenix5-kafka/pom.xml 
b/phoenix-kafka-base/phoenix5-kafka/pom.xml
index 8c53b87..a0fdd4e 100644
--- a/phoenix-kafka-base/phoenix5-kafka/pom.xml
+++ b/phoenix-kafka-base/phoenix5-kafka/pom.xml
@@ -41,6 +41,7 @@
         <jdk.version>1.8</jdk.version>
         <maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
         <jetty.version>9.3.19.v20170502</jetty.version>
+        <phoenix.main.version>5</phoenix.main.version>
     </properties>
 
 
diff --git a/phoenix-kafka-base/pom.xml b/phoenix-kafka-base/pom.xml
index 5abb25b..7fb8a6a 100644
--- a/phoenix-kafka-base/pom.xml
+++ b/phoenix-kafka-base/pom.xml
@@ -308,7 +308,7 @@
                                                                
<goal>shade</goal>
                                                        </goals>
                                                        <configuration>
-                                                               
<finalName>phoenix-kafka-${project.version}-minimal</finalName>
+                                                               
<finalName>phoenix${phoenix.main.version}-kafka-${project.version}-minimal</finalName>
                                                                
<shadedArtifactAttached>false</shadedArtifactAttached>
                                                                
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
                                                                
<shadeTestJar>false</shadeTestJar>
diff --git a/phoenix-pig-base/phoenix5-pig/pom.xml 
b/phoenix-pig-base/phoenix5-pig/pom.xml
index 747503a..1d83ccb 100644
--- a/phoenix-pig-base/phoenix5-pig/pom.xml
+++ b/phoenix-pig-base/phoenix5-pig/pom.xml
@@ -42,6 +42,7 @@
         <jdk.version>1.8</jdk.version>
         <maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
         <jetty.version>9.3.19.v20170502</jetty.version>
+        <phoenix.main.version>5</phoenix.main.version>
     </properties>
 
     <dependencies>
diff --git a/phoenix-pig-base/pom.xml b/phoenix-pig-base/pom.xml
index c7a9941..dc037d5 100644
--- a/phoenix-pig-base/pom.xml
+++ b/phoenix-pig-base/pom.xml
@@ -201,7 +201,7 @@
                 <goal>shade</goal>
               </goals>
               <configuration>
-                <finalName>phoenix-${project.version}-pig</finalName>
+                
<finalName>phoenix${phoenix.main.version}-${project.version}-pig</finalName>
                 <shadedArtifactAttached>false</shadedArtifactAttached>
                 
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
                 <shadeTestJar>false</shadeTestJar>
diff --git a/phoenix-spark-base/phoenix5-spark/pom.xml 
b/phoenix-spark-base/phoenix5-spark/pom.xml
index 308eb54..247b038 100644
--- a/phoenix-spark-base/phoenix5-spark/pom.xml
+++ b/phoenix-spark-base/phoenix5-spark/pom.xml
@@ -44,6 +44,7 @@
         <fasterxml.jackson.version>2.10.0</fasterxml.jackson.version>
         <codehaus.jackson.version>1.9.13</codehaus.jackson.version>
         <javax.version>3.1.0</javax.version>
+        <phoenix.main.version>5</phoenix.main.version>
     </properties>
 
     <dependencies>
diff --git a/phoenix4-connectors-assembly/pom.xml 
b/phoenix4-connectors-assembly/pom.xml
new file mode 100644
index 0000000..7dd552b
--- /dev/null
+++ b/phoenix4-connectors-assembly/pom.xml
@@ -0,0 +1,166 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<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";>
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.phoenix</groupId>
+        <artifactId>phoenix-connectors</artifactId>
+        <version>6.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>phoenix4-connectors-assembly</artifactId>
+    <packaging>pom</packaging>
+    <name>Phoenix 4 Connectors Distribution Assembly</name>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>package-phoenix4-to-tar</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                        <configuration>
+                            <skipAssembly>${skip-phoenix4}</skipAssembly>
+                            <descriptors>
+                                
<descriptor>src/build/package-phoenix4-connectors-to-tar-all.xml</descriptor>
+                            </descriptors>
+                            
<finalName>phoenix4-connectors-${project.version}</finalName>
+                            <tarLongFileMode>posix</tarLongFileMode>
+                            <appendAssemblyId>false</appendAssemblyId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>exec-maven-plugin</artifactId>
+                <groupId>org.codehaus.mojo</groupId>
+                <executions>
+                    <execution>
+                        <id>flume without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-flume-base/phoenix4-flume/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix4-flume-${project.version}.jar
+                                </argument>
+                                <argument>
+                                    phoenix4-flume.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>hive without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-hive-base/phoenix4-hive/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix4-${project.version}-hive.jar
+                                </argument>
+                                <argument>
+                                    phoenix4-hive.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>pig without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-pig-base/phoenix4-pig/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix4-${project.version}-pig.jar
+                                </argument>
+                                <argument>
+                                    phoenix4-pig.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>spark without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-spark-base/phoenix4-spark/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix4-spark-${project.version}.jar
+                                </argument>
+                                <argument>
+                                    phoenix4-spark.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>kafka without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-kafka-base/phoenix4-kafka/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    
phoenix4-kafka-${project.version}-minimal.jar
+                                </argument>
+                                <argument>
+                                    phoenix4-kafka.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git 
a/phoenix4-connectors-assembly/src/build/components/phoenix4-jars.xml 
b/phoenix4-connectors-assembly/src/build/components/phoenix4-jars.xml
new file mode 100644
index 0000000..2fe4e2f
--- /dev/null
+++ b/phoenix4-connectors-assembly/src/build/components/phoenix4-jars.xml
@@ -0,0 +1,67 @@
+<?xml version='1.0'?>
+<!--
+
+ 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.
+
+-->
+<component>
+  <fileSets>
+     <!-- Add the client & mapreduce jars. Expects the client jar packaging 
phase to already be run,
+      which is determined by specification order in the pom. -->
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-flume-base/phoenix4-flume/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix4-flume-${project.version}.jar</include>
+        <include>phoenix4-flume.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-kafka-base/phoenix4-kafka/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix4-kafka-${project.version}-minimal.jar</include>
+        <include>phoenix4-kafka.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-pig-base/phoenix4-pig/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix4-${project.version}-pig.jar</include>
+        <include>phoenix4-pig.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-spark-base/phoenix4-spark/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix4-spark-${project.version}.jar</include>
+        <include>phoenix4-spark.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-hive-base/phoenix4-hive/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix4-${project.version}-hive.jar</include>
+        <include>phoenix4-hive.jar</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</component>
diff --git 
a/phoenix4-connectors-assembly/src/build/package-phoenix4-connectors-to-tar-all.xml
 
b/phoenix4-connectors-assembly/src/build/package-phoenix4-connectors-to-tar-all.xml
new file mode 100644
index 0000000..683bce6
--- /dev/null
+++ 
b/phoenix4-connectors-assembly/src/build/package-phoenix4-connectors-to-tar-all.xml
@@ -0,0 +1,36 @@
+<?xml version='1.0'?>
+<!--
+
+ 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.
+
+-->
+
+<assembly 
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0";
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
 http://maven.apache.org/xsd/assembly-1.1.0.xsd";>
+  <!--This 'all' id is not appended to the produced bundle because we do this: 
http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#required-classifiers
 -->
+  <id>all</id>
+  <formats>
+    <format>tar.gz</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+
+  <componentDescriptors>
+    
<componentDescriptor>src/build/components/phoenix4-jars.xml</componentDescriptor>
+  </componentDescriptors>
+</assembly>
\ No newline at end of file
diff --git a/phoenix5-connectors-assembly/pom.xml 
b/phoenix5-connectors-assembly/pom.xml
new file mode 100644
index 0000000..89d8efc
--- /dev/null
+++ b/phoenix5-connectors-assembly/pom.xml
@@ -0,0 +1,166 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<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";>
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.phoenix</groupId>
+        <artifactId>phoenix-connectors</artifactId>
+        <version>6.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>phoenix5-connectors-assembly</artifactId>
+    <packaging>pom</packaging>
+    <name>Phoenix 5 Connectors Distribution Assembly</name>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>package-phoenix5-to-tar</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                        <configuration>
+                            <skipAssembly>${skip-phoenix5}</skipAssembly>
+                            <descriptors>
+                                
<descriptor>src/build/package-phoenix5-connectors-to-tar-all.xml</descriptor>
+                            </descriptors>
+                            
<finalName>phoenix5-connectors-${project.version}</finalName>
+                            <tarLongFileMode>posix</tarLongFileMode>
+                            <appendAssemblyId>false</appendAssemblyId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>exec-maven-plugin</artifactId>
+                <groupId>org.codehaus.mojo</groupId>
+                <executions>
+                    <execution>
+                        <id>flume without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-flume-base/phoenix5-flume/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix5-flume-${project.version}.jar
+                                </argument>
+                                <argument>
+                                    phoenix5-flume.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>hive without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-hive-base/phoenix5-hive/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix5-${project.version}-hive.jar
+                                </argument>
+                                <argument>
+                                    phoenix5-hive.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>pig without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-pig-base/phoenix5-pig/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix5-${project.version}-pig.jar
+                                </argument>
+                                <argument>
+                                    phoenix5-pig.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>spark without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-spark-base/phoenix5-spark/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    phoenix5-spark-${project.version}.jar
+                                </argument>
+                                <argument>
+                                    phoenix5-spark.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>kafka without version</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                        <configuration>
+                            <executable>ln</executable>
+                            
<workingDirectory>${project.basedir}/../phoenix-kafka-base/phoenix5-kafka/target</workingDirectory>
+                            <arguments>
+                                <argument>-fnsv</argument>
+                                <argument>
+                                    
phoenix5-kafka-${project.version}-minimal.jar
+                                </argument>
+                                <argument>
+                                    phoenix5-kafka.jar
+                                </argument>
+                            </arguments>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git 
a/phoenix5-connectors-assembly/src/build/components/phoenix5-jars.xml 
b/phoenix5-connectors-assembly/src/build/components/phoenix5-jars.xml
new file mode 100644
index 0000000..660974c
--- /dev/null
+++ b/phoenix5-connectors-assembly/src/build/components/phoenix5-jars.xml
@@ -0,0 +1,67 @@
+<?xml version='1.0'?>
+<!--
+
+ 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.
+
+-->
+<component>
+  <fileSets>
+     <!-- Add the client & mapreduce jars. Expects the client jar packaging 
phase to already be run,
+      which is determined by specification order in the pom. -->
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-flume-base/phoenix5-flume/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix5-flume-${project.version}.jar</include>
+        <include>phoenix5-flume.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-kafka-base/phoenix5-kafka/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix5-kafka-${project.version}-minimal.jar</include>
+        <include>phoenix5-kafka.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-pig-base/phoenix5-pig/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix5-${project.version}-pig.jar</include>
+        <include>phoenix5-pig.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-spark-base/phoenix5-spark/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix5-spark-${project.version}.jar</include>
+        <include>phoenix5-spark.jar</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      
<directory>${project.basedir}/../phoenix-hive-base/phoenix5-hive/target</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>phoenix5-${project.version}-hive.jar</include>
+        <include>phoenix5-hive.jar</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</component>
diff --git 
a/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-all.xml
 
b/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-all.xml
new file mode 100644
index 0000000..867fd87
--- /dev/null
+++ 
b/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-all.xml
@@ -0,0 +1,37 @@
+<?xml version='1.0'?>
+<!--
+
+ 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.
+
+-->
+
+<assembly 
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0";
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
 http://maven.apache.org/xsd/assembly-1.1.0.xsd";>
+  <!--This 'all' id is not appended to the produced bundle because we do this: 
http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#required-classifiers
 -->
+  <id>all</id>
+  <formats>
+    <format>tar.gz</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+
+
+  <componentDescriptors>
+    
<componentDescriptor>src/build/components/phoenix5-jars.xml</componentDescriptor>
+  </componentDescriptors>
+</assembly>
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 528fff4..96cd57a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,16 +22,6 @@
     <url>http://www.apache.org</url>
   </organization>
 
-  <modules>
-    <module>phoenix4-compat</module>
-    <module>phoenix5-compat</module>
-    <module>phoenix-flume-base</module>
-    <module>phoenix-pig-base</module>
-    <module>phoenix-kafka-base</module>
-    <module>phoenix-spark-base</module>
-    <module>phoenix-hive-base</module>
-  </modules>
-
   <repositories>
     <repository>
       <id>apache release</id>
@@ -104,6 +94,8 @@
     <numForkedIT>7</numForkedIT>
     <it.failIfNoSpecifiedTests>false</it.failIfNoSpecifiedTests>
     <surefire.failIfNoSpecifiedTests>false</surefire.failIfNoSpecifiedTests>
+    <skip-phoenix5>false</skip-phoenix5>
+    <skip-phoenix4>false</skip-phoenix4>
 
     <!-- Set default encoding so multi-byte tests work correctly on the Mac -->
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -111,6 +103,7 @@
     <curator.version>2.12.0</curator.version>
 
     <shaded.package>org.apache.phoenix.shaded</shaded.package>
+    <phoenix.main.version>4</phoenix.main.version>
   </properties>
 
   <build>
@@ -768,6 +761,42 @@
   </dependencyManagement>
 
   <profiles>
+    <profile>
+    <id>phoenix4</id>
+      <activation>
+        <property>
+          <name>!skip-phoenix4</name>
+        </property>
+      </activation>
+    <modules>
+      <module>phoenix4-compat</module>
+      <module>phoenix-flume-base/phoenix4-flume</module>
+      <module>phoenix-pig-base/phoenix4-pig</module>
+      <module>phoenix-kafka-base/phoenix4-kafka</module>
+      <module>phoenix-spark-base/phoenix4-spark</module>
+      <module>phoenix-hive-base/phoenix4-hive</module>
+      <module>phoenix4-connectors-assembly</module>
+    </modules>
+  </profile>
+    <profile>
+      <id>phoenix5</id>
+      <activation>
+        <property>
+          <name>!skip-phoenix5</name>
+        </property>
+      </activation>
+      <properties>
+      </properties>
+      <modules>
+        <module>phoenix5-compat</module>
+        <module>phoenix-flume-base/phoenix5-flume</module>
+        <module>phoenix-pig-base/phoenix5-pig</module>
+        <module>phoenix-kafka-base/phoenix5-kafka</module>
+        <module>phoenix-spark-base/phoenix5-spark</module>
+        <module>phoenix-hive-base/phoenix5-hive</module>
+        <module>phoenix5-connectors-assembly</module>
+      </modules>
+    </profile>
     <!-- disable doclint with 1.8+ JDKs-->
     <profile>
       <id>java8-doclint-disabled</id>

Reply via email to