I had the same problem with Java Maven, Spring Boot when I tried a demo application. I use Netbeans. The class path error continued despite adding "<mainClass>fully.qualified.MainClass</mainClass>" in the pom.xml as suggested.
Then I right clicked on the project > Set Configuration > Customize...
And in the Customize window, Select Main Class. This solved the problem and the project started to run without class path error.