[
https://issues.apache.org/jira/browse/MNG-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16285706#comment-16285706
]
Sunil Kumar Singh commented on MNG-6287:
----------------------------------------
Thanks Robert. I tried it today and I agree with you that the functionality
that I have implemented in the code-collector is very similar to what
maven-shade-plugin does with the minimizeJar set to true. Probably the only
thing that my code does additionally is that it downloads the source code for
the reduced set of dependencies so the user can visualize it and see it in her
source code tree if using an IDE. May be we can add a flag in the configuration
section in the maven-shade-plugin to download the source code for these
dependencies. or is it already there as well?
> improving inclusion of open source code referenced by java projects.
> ---------------------------------------------------------------------
>
> Key: MNG-6287
> URL: https://issues.apache.org/jira/browse/MNG-6287
> Project: Maven
> Issue Type: New Feature
> Reporter: Sunil Kumar Singh
>
> All the details are on git hub at:
> https://github.com/ksunilsingh/code-collector
> This is an idea on improving inclusion of open source code referenced by java
> projects. Currently when we use a java build system (such as maven or
> gradle), the build system downloads the jar files referenced by a java
> project. What I am proposing here is a replacement for that:
> Find out all the classes referenced by the classes in a java project (say,
> project A).
> Download the source code for these dependencies recursively and include the
> downloaded source code in the source tree of project A.
> Remove the dependency(ies) from project build configuration file (e.g.
> pom.xml) and build the project.
> The resulting jar file would be smaller in size than if the full jar for the
> dependency is included as is.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)