Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 4c593d7d8 -> 507333968


AMBARI-20544. Prune files contained in jcepolicyinfo.jar to a minimal set 
(rlevas)


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

Branch: refs/heads/branch-2.5
Commit: 507333968282a67e98a8364a34b346bc4a86aefb
Parents: 4c593d7
Author: Robert Levas <[email protected]>
Authored: Thu Mar 30 09:21:12 2017 -0400
Committer: Robert Levas <[email protected]>
Committed: Thu Mar 30 09:21:12 2017 -0400

----------------------------------------------------------------------
 ambari-agent/pom.xml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/50733396/ambari-agent/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-agent/pom.xml b/ambari-agent/pom.xml
index 03df72b..94148fd 100644
--- a/ambari-agent/pom.xml
+++ b/ambari-agent/pom.xml
@@ -325,7 +325,7 @@
                   
<location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}/var/lib/ambari-agent</location>
                   <includes>
                     <include>/cred/lib/*.jar</include>
-                    <include>/tools/zkmigrator.jar</include>
+                    <include>/tools/*.jar</include>
                     
<include>/cache/stacks/HDP/2.1.GlusterFS/services/STORM/package/files/wordCount.jar</include>
                     
<include>/cache/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar</include>
                     
<include>/cache/common-services/STORM/0.9.1/package/files/wordCount.jar</include>
@@ -422,6 +422,14 @@
               <goal>shade</goal>
             </goals>
             <configuration>
+              <minimizeJar>true</minimizeJar>
+              <artifactSet>
+                <includes>
+                  <include>commons-cli:commons-cli</include>
+                  <include>org.slf4j:*</include>
+                  <include>log4j:*</include>
+                </includes>
+              </artifactSet>
               <transformers>
                 <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                   
<mainClass>org.apache.ambari.tools.jce.JcePolicyInfo</mainClass>

Reply via email to