Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the maven dependencies to the runtime #8

Open
HGuillemet opened this issue Mar 5, 2022 · 0 comments
Open

Adding the maven dependencies to the runtime #8

HGuillemet opened this issue Mar 5, 2022 · 0 comments

Comments

@HGuillemet
Copy link
Contributor

The Apache Maven JLink Plugin, by default, add to the runtime (--add-modules option of jlink) all the modules of the Maven dependencies. This is particularly useful when the list of needed modules cannot be hard-coded using module descriptors (requires in module-info) but computed at build time by Maven.

Could you think of a way to add this feature ? Like allowing in <addmodules> the <dependencysets> element that can already be specified in <modulepath>.

Note that we already can write something like <addmodule>ALL-MODULE-PATH</addmodule> which works but has the side effect of including in the image all the modules from the JDK, not the sufficient modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant