You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/04/12 10:06:00 UTC
[jira] [Commented] (MSHADE-262) Add jpms goal
[ https://issues.apache.org/jira/browse/MSHADE-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17521056#comment-17521056 ]
Slawomir Jaranowski commented on MSHADE-262:
--------------------------------------------
There is also appear idea for creating transformer for module-info.
https://lists.apache.org/thread/925qq3hljq06c5qjhdvbnhfo47z7lmhv
> Add jpms goal
> -------------
>
> Key: MSHADE-262
> URL: https://issues.apache.org/jira/browse/MSHADE-262
> Project: Maven Shade Plugin
> Issue Type: New Feature
> Reporter: Robert Scholte
> Assignee: Robert Scholte
> Priority: Major
>
> With Java 9 we get module descriptors for strong encapsulation and reliable configuration.
> When shading we should not merge or ignore these descriptors.
> In case of an application we should think of the way spring boot works, i.e. bundle the jars in a jar and provide a new classloader. This is the only way to preserve the strong encapsulation right now.
> After a talk with [~pwebb] and [~dblevins] we came to the conclusion that it should NOT be combined with the current shade goal. First idea was to make a new plugin, but after some rethinking I'd prefer to just make a separate goal for it in this shade-plugin.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)