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


I can't run the Maven Netbeans JavaFX example :

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project mavenproject3: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.

My POM looks like this :

<project xmlns="" xmlns:xsi="" xsi:schemaLocation="">


<name>Almex Office Client</name>


    <!-- Used as the 'Vendor' for JNLP generation -->
    <name>Your Organisation</name>




Does anyone know why this is happening?

And if not, does anyone know how to get Maven running with the -e or the -X switch via Netbeans? I assume it is via a right click on the POM and then run goal then entering something in the textfield there.

11/19/2013 5:19:05 PM

  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.
4/22/2016 5:04:06 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow