Maven & Java: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java are missing or invalid

前端 未结 5 1477
清酒与你
清酒与你 2020-12-03 06:52

My Java EE proj builds fine, but when trying to execute get following error:

gert@gert-VirtualBox:~/workspace/CDBOOKSTORE$ mvn exec:java 
[INFO] Scanning for         


        
5条回答
  •  暖寄归人
    2020-12-03 07:42

    Make sure you execute the mvn exec:java from within the same directory where your pom.xml with exec configuration resides.

提交回复
热议问题