Apache Maven
Have a look at the Apache Maven plugin documentation.
For the first generation project also have a look at Usage. The configuration and the parameters are the same for the Command Line Interface and for the Maven Plugin.
Versions¶
In the following video you can see how the Cloud-Connector for Maven is being used in NetBeans to run the code generation there.