[
https://issues.apache.org/jira/browse/MSHADE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17640707#comment-17640707
]
Chesnay Schepler commented on MSHADE-321:
-----------------------------------------
Was it an intentional side-effect that dependency reduction is now also run on
modules with the pom packaging?
> Always respect 'createDependencyReducedPom' flag
> ------------------------------------------------
>
> Key: MSHADE-321
> URL: https://issues.apache.org/jira/browse/MSHADE-321
> Project: Maven Shade Plugin
> Issue Type: Improvement
> Affects Versions: 3.2.1
> Reporter: Ilya Cherkasov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.3.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> h3.
> Dependency reduced pom (DRP) is generated only if resulting shaded artifact
> was 'renamed'
> https://github.com/apache/maven-shade-plugin/blob/dbd2a5c04619da76559c61c58755e7062fb8fab9/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java#L536
> However, the documentation regarding DRP states:
> {code:java}
> Flag whether to generate a simplified POM for the shaded artifact. If set to
> true, dependencies that have been included into the uber JAR will be removed
> from the <dependencies> section of the generated POM. The reduced POM will be
> named dependency-reduced-pom.xml and is stored into the same directory as the
> shaded artifact. Unless you also specify dependencyReducedPomLocation, the
> plugin will create a temporary file named dependency-reduced-pom.xml in the
> project basedir.
> Default value is: true.{code}
> It's not stating any changes in this flag behavior, by this hiding the
> conditions upon which DRP would be generated.
> This should be fixed, and DRP should be generated whenever the flag is being
> set to 'true'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)