I am using maven 3.3.3. and I have <fork>true</fork>
. I ran into issues(MojoException) and fixed it by commenting out
<fork>true</fork>
<compilerVersion>${java.version}</compilerVersion>
My project was using Java 1.6 and java.version in above line refers to 1.6, but my computer environment variables was 1.7 and maven 3.3.3 needs Java 1.7 . Now my issues are fixed.
But I am not able to understand 1) what does fork mean here? 2) What does it do? 3) Having it set to true or false, what changes it?
I went through the documentation, but it is hard to follow. Thanks.