maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Karg (JIRA)" <>
Subject [jira] [Commented] (MSHADE-318) Specifically included class's dependencies are missing
Date Thu, 02 May 2019 18:11:00 GMT


Markus Karg commented on MSHADE-318:

I have turned the without draft PR into a normal PR which is ready to merge. Please review.

> Specifically included class's dependencies are missing
> ------------------------------------------------------
>                 Key: MSHADE-318
>                 URL:
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Markus Karg
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
> Using `<include>` one can specifically defined classes to exempt from minijar's
filtering. This is useful when a class is referenced by `String` name instead of `Class`
object reference, like e. g. reflection.
> Unfortunately *just* the explicitly included class is exempted from removal, while all
its transitive references (i. e. all the classes it uses it turn) are still removed when shading.
This effectively breaks the result's functionality. This is hard to work around, as *all*
such dependencies have to be explicitly given in the pom to prevent it. That is really nasty.
> As a solution, a specific include shall always automatically include all *transitive
dependencies* of the explicitly exempted class.

This message was sent by Atlassian JIRA

View raw message