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

前端 未结 5 1480
清酒与你
清酒与你 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:19

    If the is outside the , it is the configuration for the plugin to be used no matter what the life-cycle phase is.

    If the is inside the , it is the configuration to be used in certain life-cycle phase.

    As Vabis has suggested, use mvn exec:java@someID to execute the specific execution of the goal for a plugin.

    For more information, please see https://maven.apache.org/guides/mini/guide-configuring-plugins.html.

提交回复
热议问题