jira-importer commented on issue #44:
URL: 
https://github.com/apache/maven-apache-resources/issues/44#issuecomment-2678276423

   **[Maysam 
Yabandeh](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=maysamyabandeh)**
 commented
   
   Thanks for the clear answer [Dennis 
Lundberg](https://issues.apache.org/jira/secure/[email protected]).
 I now understand that solution I was pursuing is not feasible. But, let me 
explain the original problem and the valuable feature that it seems to be 
missing from maven. The jar that maven builds includes (a) project source code, 
(b) project resources, and (c) project dependencies. There are many cases in 
practice that the framework that receives a fat jar file, wishes to 
**reassemble** the jar file, excluding certain dependencies from it. This is 
however not currently possible since the packed information in the jar is not 
sufficient to tell which classes originate from the project source code and 
which originate from the dependencies.
   
   There are some workarounds like setting the dependencies to be assembled 
unpacked (as a jar file inside the final jar file). Then it would be easy to 
reassemble the jar file and exclude certain dependencies. But, I created this 
"wish" jira to express the need for a standard approach to this. If maven 
assembly plugin could also pack the dependency information in a standard way, 
this feature will be feasible.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to