You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
null is returned when I execute System.getProperty("base.dir") in the code. When I remove the fork configuration, the same property is set properly. I have read the documents that the process is forked when jvmArguments or agent is specified, I somehow forgot the fork configuration and it took me quite a time to just remove the line. I expected jvmArguments to override fork configuration, or a simple error that would fail the build is also OK.
The text was updated successfully, but these errors were encountered:
I understand that. But the problem is I could see the jvmArguments configuration in pom.xml, I executed run successfully, in my code I couldn't find any system property I set before.
I expected jvmArguments to override fork configuration, or a simple error that would fail the build is also OK
If you omit <fork> entirely the fact that <jvmArguments> are specified is enough to trigger forking. If you add <fork>false</fork> and <jvmArguments> you should see the following warning in your maven output:
For following pom file,
null
is returned when I executeSystem.getProperty("base.dir")
in the code. When I remove thefork
configuration, the same property is set properly. I have read the documents that the process is forked whenjvmArguments
oragent
is specified, I somehow forgot thefork
configuration and it took me quite a time to just remove the line. I expectedjvmArguments
to overridefork
configuration, or a simple error that would fail the build is also OK.The text was updated successfully, but these errors were encountered: