"required class was missing" during Maven sonar scanning

Can you share the logs on debug level (mvn -X verify sonar:sonar) ? There should be a line just before the exception like Transpiling JSP .... , this should identify the file we want to ignore.