-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Spring Boot Maven plugin AOT cannot handle Maven modules with module-info.java #33383
Comments
Can you please explain why you're trying to use |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Just practical reason. On the other hand, ff something contains module-info.java - from Java standpoint perspective it is sealed also during compile time - from encapsulation perspective Jigsaw module brings similar benefits to native compilation... but I don't want to open yet another discussion about Java modules sense... |
Existing projects that happen to use modules will be discouraged from trying native images I suppose. Some will probably work just fine if they just remove the |
I also occured this problem ,is there any plan to fix this problem? |
We have no plans at this time. JPMS appears to bring few, if any, benefits to the vast majority of Spring Boot's users. As such, it's low priority for us as time spent elsewhere will have much broader benefits to the community as a whole. |
Wouldn't it at least be possible to ignore the module-info if it is present? This would make it easier for people making both regular java builds and native builds that can't simply delete the module-info. |
This comment was marked as outdated.
This comment was marked as outdated.
I think any app with a |
When native compiling a Maven module which is Java Module - aka it contains module-info.java, for example:
the following error is happening:
When module-info.java is removed - the native compilation moves on successfully.
The text was updated successfully, but these errors were encountered: