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

.mvn/jvm.config not picked up on submodule action #110

Open
kaszuster opened this issue Sep 19, 2023 · 2 comments
Open

.mvn/jvm.config not picked up on submodule action #110

kaszuster opened this issue Sep 19, 2023 · 2 comments

Comments

@kaszuster
Copy link

My project consists of a parent module and several sub modules. To be able to migrate von Java 11 to Java 17 i had to add several JVM configurations. I picked the .mvn/jvm.config approach (https://maven.apache.org/configure.html). I created a directory .mvn in the root of the Project and placed a file named jvm.config with the following content inside:

--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
  • Running "right click parent => Run maven => clean install" results in a process with these settings picked up.
  • Running "right click any submodule => Run maven => clean install" results in a process with these settings NOT picked up.

I used ps aux | grep add-opens to check that.

After setting the option "Use a Terminal to run goals, with a custom mvn command: " to "mvn", the configuration is also picked up when a submodule is executed.

To Reproduce
see above

Expected behavior
The options set in projectroot/.mvn/jvm.config should always be picked up, when no projectroot/submodule/.mvn/jvm.config is found in the submodule's root.

@krasa
Copy link
Owner

krasa commented Sep 19, 2023

@kaszuster
Copy link
Author

I have found that one too, but I think that bug is about being able to place jvm.config files in every submodule.

I want that: https://youtrack.jetbrains.com/issue/IDEA-205178/Support-.mvn-jvm.config-for-defining-JVM-configuration-for-Maven-builds#focus=Comments-27-5385229.0-0

I have no knowledge about the architecture of Idea Plugins. If you are telling me, that your Plugin depends upon default Idea feature, then it has to be an Idea bug.

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

2 participants