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

Yet another (maybe user-error) problem with 4.8.1 #691

Closed
clayreimann opened this issue Mar 29, 2023 · 1 comment
Closed

Yet another (maybe user-error) problem with 4.8.1 #691

clayreimann opened this issue Mar 29, 2023 · 1 comment

Comments

@clayreimann
Copy link

Hi I also tried to upgrade to version 4.8.1 and am running into compile errors. I've seen #683 and #686 and couldn't exactly follow their problems, but I did come up with a tiny build that exhibits the issue I've got in our larger build https://github.com/clayreimann/scala-maven-plugin-reproducer

Maybe I've just misconfigured something and you can point me in the direct of a fix.

Unrelated to the compile error I also tried to set <displayCmd>true</displayCmd> and it doesn't seem to actually print anything.

Also, thanks for taking the time to maintain this super useful maven plugin!

@slandelle
Copy link
Collaborator

Hi,

These JVM args are invalid and cause the forked JVM to crash.

First, -Djava.net.preferIPv4Stack=true is a System property, not a JVM option. I don't even know what you're trying to achieve with this and how it could be related to compiling code.

Then, you must pass options individually, not as a single string that contains spaces:

                    <jvmArgs>
                        <jvmArg>--add-exports</jvmArg>
                        <jvmArg>java.base/jdk.internal.misc=ALL-UNNAMED</jvmArg>
                        <jvmArg>--add-exports</jvmArg>
                        <jvmArg>java.base/jdk.internal.ref=ALL-UNNAMED</jvmArg>
                    </jvmArgs>

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