[ 
https://issues.apache.org/jira/browse/MSHADE-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533469#comment-16533469
 ] 

Manu Manjunath commented on MSHADE-36:
--------------------------------------

Can you guys at least provide us a flag in shade plugin like this:
{code:xml}
<useDependencyReducedPomInJar>true</useDependencyReducedPomInJar>
{code}
When set to true, the {{jar}} that is built should contain {{pom.xml}} whose 
content is same {{dependency-reduced-pom.xml}} that shade  plugin generates. 
That way:
# Backword compatibility is maintained
# Developers can keep this false if some of the dependent code is dynamically 
loading classes, using classloader.



> Dependency reduced pom does not replace the packaged META-INF/maven version
> ---------------------------------------------------------------------------
>
>                 Key: MSHADE-36
>                 URL: https://issues.apache.org/jira/browse/MSHADE-36
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Mark Hobson
>            Priority: Major
>
> The dependency reduced pom needs to replace the packaged pom at:
> META-INF/maven/<groupId>/<artifactId>/pom.xml
> This will allow tools that use this metadata to read the correct shaded 
> dependencies (e.g. maven-runtime).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to