Slimming of Maven dependency tree - improves assembly build speed, ------------------------------------------------------------------
Key: HBASE-2334 URL: https://issues.apache.org/jira/browse/HBASE-2334 Project: Hadoop HBase Issue Type: Improvement Components: build Affects Versions: 0.20.1 Reporter: Paul Smith Attachments: hbase-dependency-tidy-1.patch >From a discussion on IRC, the Maven assembly speed is pretty bad, this is >likely due to http://jira.codehaus.org/browse/MASSEMBLY-424 (process fork per >dependency, ouch). Slimming the dependency tree will not only make the generated assembly more compact, it can speed up the build process. Will attach patch to propose slimming the dependencies based on stacks comments on the mailing list: {quote} Here is a list of things I found in lib that we don't need to run: -rwsrwsrwt 1 Stack staff 1034049 Mar 16 16:45 ant-1.6.5.jar -rwsrwsrwt 1 Stack staff 279781 Mar 16 16:45 commons-httpclient-3.0.1.jar -rwsrwsrwt 1 Stack staff 706710 Mar 16 16:45 hsqldb-1.8.0.10.jar -rwsrwsrwt 1 Stack staff 377780 Mar 16 16:45 jets3t-0.7.1.jar -rwsrwsrwt 1 Stack staff 11981 Mar 16 16:45 kfs-0.3.jar -rwsrwsrwt 1 Stack staff 388864 Mar 16 16:45 mail-1.4.jar -rwsrwsrwt 1 Stack staff 65261 Mar 16 16:45 oro-2.0.8.jar -rwsrwsrwt 1 Stack staff 28415 Mar 16 16:45 paranamer-1.5.jar -rwsrwsrwt 1 Stack staff 3067 Mar 16 16:45 paranamer-ant-1.5.jar -rwsrwsrwt 1 Stack staff 6841 Mar 16 16:45 paranamer-generator-1.5.jar -rwsrwsrwt 1 Stack staff 167436 Mar 16 16:45 qdox-1.9.1.jar -rwsrwsrwt 1 Stack staff 23445 Mar 16 16:45 slf4j-api-1.5.8.jar -rwsrwsrwt 1 Stack staff 9679 Mar 16 16:45 slf4j-log4j12-1.5.8.jar -rwsrwsrwt 1 Stack staff 7585 Mar 16 16:45 slf4j-simple-1.5.8.jar To add exclusions, I need to add the exclusion on the dependency that adds in the above? For most of the above, it looks like hadoop is the includer. I'd look at its pom and figure which hadoop component included the above and then add an exclusion in our pom on that dependency? {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.