sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject sqoop git commit: SQOOP-2622: Sqoop2: Add documentation about connector classpath isolation
Date Tue, 29 Dec 2015 08:18:25 GMT
Repository: sqoop
Updated Branches:
  refs/heads/sqoop2 14eac41fa -> dedaee6e6


SQOOP-2622: Sqoop2: Add documentation about connector classpath isolation

(Dian Fu via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/dedaee6e
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/dedaee6e
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/dedaee6e

Branch: refs/heads/sqoop2
Commit: dedaee6e6a9b1a8445d01df71c387be42812da3b
Parents: 14eac41
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Tue Dec 29 09:17:32 2015 +0100
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Tue Dec 29 09:17:32 2015 +0100

----------------------------------------------------------------------
 .../site/sphinx/dev/ConnectorDevelopment.rst    | 39 ++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/dedaee6e/docs/src/site/sphinx/dev/ConnectorDevelopment.rst
----------------------------------------------------------------------
diff --git a/docs/src/site/sphinx/dev/ConnectorDevelopment.rst b/docs/src/site/sphinx/dev/ConnectorDevelopment.rst
index 0e8ea92..15075f1 100644
--- a/docs/src/site/sphinx/dev/ConnectorDevelopment.rst
+++ b/docs/src/site/sphinx/dev/ConnectorDevelopment.rst
@@ -316,6 +316,45 @@ Hence the pom.xml for the sqoop kite connector built using the kite-sdk
 might l
     ....
   </dependencies>
 
+
+Sqoop Connector Build
+=====================
+
+Sqoop 2 supports connectors to package their dependencies into the ``lib`` directory inside
the connector jar to provide classpath isolation between connectors. Add the following to
the pom.xml for the connector:
+
+::
+
+  <plugins>
+    <plugin>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-assembly-plugin</artifactId>
+      <version>${maven-assembly-plugin.version}</version>
+      <dependencies>
+        <dependency>
+          <groupId>org.apache.sqoop</groupId>
+          <artifactId>sqoop-assemblies</artifactId>
+          <version>${sqoop.version}</version>
+        </dependency>
+      </dependencies>
+      <executions>
+        <execution>
+          <id>make-assembly</id>
+          <phase>package</phase>
+          <goals>
+            <goal>single</goal>
+          </goals>
+          <configuration>
+            <finalName>${project.artifactId}-${project.version}</finalName>
+            <appendAssemblyId>false</appendAssemblyId>
+            <descriptorRefs>
+              <descriptorRef>sqoop-connector</descriptorRef>
+            </descriptorRefs>
+          </configuration>
+        </execution>
+      </executions>
+    </plugin>
+  </plugins>
+
 Configurables
 +++++++++++++
 


Mime
View raw message