Since you use the word βmoduleβ, I suppose you mean the Netbeans Platform module added to the Netbeans platform application?
Here's how to do it (Netbeans IDE v7.1.2):
From the File menu, select New Project. Select the Maven category and select Netbeans Module in the right list.
Now you are provided with a wizard that will collect various information. The most important thing about your question is Project Location. It is important that you select the parent directory for your application here, so that each module belonging to your application becomes a subdirectory of this parent directory. If your parent application is located in "C: \ JavaDevelopment \ MySuperApp", then you put this in the "Project Location".
Having done this, the new module will automatically be added to your parent application as a dependency. Of course, the module will be autonomous and can, of course, be used in several projects if you like, but for me it most often makes sense to place the module with the application to which it naturally belongs, that is, everything in the same directory tree.
If you prefer to do this in split directory trees, you must manually add the dependency.
peterh
source share