Recently coming to a new project, I\'m trying to compile our source code. Everything worked fine yesterday, but today is another story.
Every time I\'m running
I followed this link https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html and added the below plugin in pom.xml and it worked,
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
</plugins>
</build>
[...]
</project>
For me, in Visual Studio Code
I did not do any changes in the pom.xml file or updated any dependency versions
Adding this line to settings.json
of Visual Studio Code solved the problem.
"maven.executable.options": "-DforkCount=0",