I'll show how to build a cordova android app in NetBeans 8, and release a signed apk file.
The first part is relatively easy. Start up NetBeans 8, and from the main menu select File -> New Project. This brings up the New Project dialog.
In the dialog 'Categories' open the Samples folder and select the HTML5 subfolder. In the dialog 'Projects', select the Cordova Maps Sample, and click Next, name the project and click Finish:
This generates the application. Open index.html in your root, connect your android phone to the usb and hit F6 to run the project.
You should see something like this on your phone:
That was the easy part. Net beans doesn't have any menu selections to build a signed apk that you can distribute. However, Cordova uses an ant build process, and NetBeans is ant friendly.
So, the first thing you need to do is create your key:
$ keytool -genkey -v -keystore myapp.keystore -alias myapp -keyalg RSA -keysize 2048 -validity 10000
The keystore utility will walk you through some questions. You'll need to enter your app name and password, app alias, alias password and developer name. The remaining can be defaulted.
Now, in NetBeans project explorer, select the files tab, and create a file named ./platforms/android/ant.properties. entering the following contents:
key.store=/home/bruce/Git/myapp/myapp.keystore
key.alias=myapp
key.store.password=password
key.alias.password=password
Now you can right-click on ./platforms/android/build.xml and select Run Target -> release:
It will take a minute or two, and the ant build process will generate ./platforms/android/bin/MyApp-release.apk, a signed distribution file.
Maybe I was wrong - with a little tlc, NetBeans does have a menu selection to build your apk!