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

How do I change the JDK dynamically #675

Closed
Levi-dong opened this issue Aug 28, 2022 · 7 comments
Closed

How do I change the JDK dynamically #675

Levi-dong opened this issue Aug 28, 2022 · 7 comments
Milestone

Comments

@Levi-dong
Copy link

Levi-dong commented Aug 28, 2022

For example,My environment variables are configured with JDK 17

image

At this point I need to change the JDK to 8 to compile the project,Because my modification of mvnd.properties does not take effect

image

I have to modify the environment configuration for this to take effect

image

The requirement I want is, how can I dynamically change the JDK compilation environment without changing the environment variables? thanks

@gnodet
Copy link
Contributor

gnodet commented Aug 29, 2022

The JAVA_HOME environment variable takes precedence over the java.home configuration property. So in order to be able to use the configuration property, you need to unset the JAVA_HOME environment variable.

@Levi-dong
Copy link
Author

Levi-dong commented Aug 29, 2022 via email

@Levi-dong
Copy link
Author

JAVA_HOME环境变量优先于配置java.home属性。因此,为了能够使用配置属性,您需要取消设置JAVA_HOME环境变量。

Will future versions change the priority of the plan?

@gnodet gnodet added this to the 0.8.1 milestone Aug 30, 2022
@gnodet gnodet closed this as completed in 6cc1770 Sep 7, 2022
@Levi-dong
Copy link
Author

when will the new version be released?

@gnodet
Copy link
Contributor

gnodet commented Sep 7, 2022

when will the new version be released?

ASAP, certainly before end of September.

@Levi-dong
Copy link
Author

I am looking forward to the new version of MVND very much. By the way, are there any plans to inherit MVND into IDEA

@Levi-dong
Copy link
Author

Levi-dong commented Oct 11, 2022 via email

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