Bug 1067288

Summary: TECH DEBT: reduce size of zanata.war; exclude unused dependencies
Product: [Retired] Zanata Reporter: Sean Flanigan <sflaniga>
Component: Deployment, MaintainabilityAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Damian Jansen <djansen>
Severity: medium Docs Contact:
Priority: medium    
Version: developmentCC: dchen, djansen, zanata-bugs
Target Milestone: ---   
Target Release: 3.5   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: zanata-war-3.5.0-SNAPSHOT Doc Type: Bug Fix
Doc Text:
Story Points: 5
Clone Of: Environment:
Last Closed: 2015-01-26 23:28:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sean Flanigan 2014-02-20 06:36:57 UTC
Description of problem:

zanata.war is currently (as of v3.3) about 135MB, when it should probably be less than 50MB.  A large reason is the dependency jars in WEB-INF/lib.  We should check whether we need all our dependencies, both direct[1] and transitive.

Resources which may help:


[1] We do use maven-dependency-plugin to check for unused direct dependencies, but the grandfathered dependencies in zanata-war/pom.xml need to be checked and either removed or commented.  maven-dependency-plugin does not check for unused transitive dependencies.

Comment 1 Alex Eng 2014-05-26 05:23:07 UTC
Pull request:

Comment 2 Damian Jansen 2014-06-20 00:20:14 UTC
Down to 65MB. Good effort guys.

Comment 3 Sean Flanigan 2014-06-20 03:36:02 UTC
Unfortunately, I don't think it really shrank quite that much.  Some of our Jenkins builds enable more GWT permutations than others.  I think it's more like 100MB for a full build.