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

Use Maven's Java for executable #173

Open
magno32 opened this issue Aug 28, 2023 · 2 comments
Open

Use Maven's Java for executable #173

magno32 opened this issue Aug 28, 2023 · 2 comments

Comments

@magno32
Copy link

magno32 commented Aug 28, 2023

From #21, when running inside an IDE (IntelliJ in my case), the plugin ignores whatever JDK we have selected for the project.

This can be solved in the plugin configuration with:

<configuration>
   ...
    <executable>${java.home}/bin/java</executable>
   ...
</configuration>

This feels like it should be the default behavior.

@furai
Copy link

furai commented Oct 22, 2023

I've just came across same problem. Had to use the workaround above to be able to run the executable. Else it was using different java version than the one set in $JAVA_HOME.

@Maze-fr
Copy link

Maze-fr commented Oct 18, 2024

You saved my life !

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

3 participants