The plugins section should be included in your pom file.
There’s a few problems in your image.
Your java file (which is actually invalid, having no class definition) in not within a source folder, so its being treated as a text file.
Move and fix the class, then create a new run configuration, that is pointed as that ‘main’ class.