You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemall.apache.org by my...@apache.org on 2018/06/11 07:22:11 UTC

incubator-hivemall git commit: [HIVEMALL-203] Relocated org.codehaus.jackson to hivemall.codehause.jackson in hivemall-all.jar

Repository: incubator-hivemall
Updated Branches:
  refs/heads/master 494960324 -> f52b72809


[HIVEMALL-203] Relocated org.codehaus.jackson to hivemall.codehause.jackson in hivemall-all.jar

## What changes were proposed in this pull request?

Relocated `org.codehaus.jackson` to `hivemall.codehause.jackson` in hivemall-all.jar because Jackson can be missing in some Hadoop/Hive enviroment

## What type of PR is it?

Improvement

## What is the Jira issue?

https://issues.apache.org/jira/browse/HIVEMALL-203

## How was this patch tested?

manual tests

## Checklist

(Please remove this section if not needed; check `x` for YES, blank for NO)

- [x] Did you apply source code formatter, i.e., `./bin/format_code.sh`, for your commit?
- [x] Did you run system tests on Hive (or Spark)?

Author: Makoto Yui <my...@apache.org>

Closes #151 from myui/relocate_jackson.


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

Branch: refs/heads/master
Commit: f52b72809d1441852723e5a564e82b0f72c0f165
Parents: 4949603
Author: Makoto Yui <my...@apache.org>
Authored: Mon Jun 11 16:22:00 2018 +0900
Committer: Makoto Yui <my...@apache.org>
Committed: Mon Jun 11 16:22:00 2018 +0900

----------------------------------------------------------------------
 dist/pom.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/f52b7280/dist/pom.xml
----------------------------------------------------------------------
diff --git a/dist/pom.xml b/dist/pom.xml
index bea6226..4f8a49c 100644
--- a/dist/pom.xml
+++ b/dist/pom.xml
@@ -54,6 +54,13 @@
 			<version>${project.version}</version>
 			<scope>compile</scope>
 		</dependency>
+		<!-- Jackson -->
+		<dependency>
+			<groupId>org.codehaus.jackson</groupId>
+			<artifactId>jackson-core-asl</artifactId>
+			<version>1.8.3</version>
+			<scope>compile</scope>
+		</dependency>
 	</dependencies>
 
 	<build>
@@ -113,11 +120,19 @@
 									<include>org.apache.hivemall:hivemall-xgboost</include>
 									<include>io.github.myui:xgboost4j</include>
 									<include>com.esotericsoftware.kryo:kryo</include>
+									<!-- Jackson -->
+									<include>org.codehaus.jackson:jackson-core-asl</include>
 								</includes>
 								<excludes>
 									<exclude>org.apache.hivemall:hivemall-all</exclude>
 								</excludes>
 							</artifactSet>
+							<relocations>
+								<relocation>
+									<pattern>org.codehaus.jackson</pattern>
+									<shadedPattern>hivemall.codehaus.jackson</shadedPattern>
+								</relocation>
+							</relocations>
 							<transformers>
 								<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
 									<manifestEntries>