Maven won't run my Project : Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

后端 未结 14 664
暖寄归人
暖寄归人 2020-12-09 04:21

I can\'t run the Maven Netbeans JavaFX example :

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exe         


        
14条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 05:02

    1. This error would spring up arbitrarily and caused quite a bit of trouble though the code on my end was solid.

    I did the following :

    • I closed it on netbeans.
    • Then open the project by clicking "Open Project", selecting my project and
    • Simply hit the run button in netbeans.

    I would not build or clean build it. Hope that helps you out.

    1. I noticed another reason why this happens. If you moved your main class to another package, the same error springs up. In that case you :
      • Right Click Project > Properties > Run
      • Set the "Main Class" correctly by clicking "Browse" and selecting.

提交回复
热议问题