-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Hello there,
Is your feature request related to a problem? Please describe.
I've converted an application of mine into java modules and tried to build it via native maven plugin. The problem: Native maven plugin seams not support to build native image automatically via the module parameters. So i have to add all project modules and maven dependencies manually to the --module-path parameter which isn't very comfortable in large projects.
For executing junit tests via native image profile i did not find the correct parameters on my own for getting the tests running with modules in native image.
Describe the solution you'd like
I would suggest implement support for automatically detecting that the current project, that is built, is a java module and automatically feed the native-image command with the module parameters, like other maven plugins do.
For example running unit tests with surefire automatically runs them in "module mode" without any additional parameters for the plugin, it's enough the have a module-info.java present in the project.
I've already checked the documentation here https://graalvm.github.io/native-build-tools/latest/maven-plugin.html but didn't found any information for building module projects with native maven plugin.
Hopefully it's understandable what my point is, if you need additional information or a sample application i can provide it.
Regards
Christoph