In Netbeans, how to add a module to a multi module maven project using the IDE. In Eclipse I can right click project > add > new > other > maven module. Does netbeans have a similar feature.
Making the Module a Dependency of MavenPlatformWordApp To add the dependency to the POM, you can edit the POM directly in the editor or by opening the Add Dependency dialog box from the Projects window. Expand the app in the Projects window, right-click the Dependencies node, and choose Add Dependency.
A NetBeans module is a group of Java classes that provides an application with a specific feature. You can also create new modules for NetBeans IDE itself. For example, you can write modules that make your favorite cutting-edge technologies available to users of NetBeans IDE.
For all Maven projects, the pom. xml file (POM) is located under the Project Files node in the Projects window. If you look at the POM for the NetBeans Platform Application project, you can see that the two other modules created by the wizard are listed as modules in the application.
Check your Maven settingsOpen the Options window in the IDE (Tools > Options; NetBeans > Preferences on Mac). Select the Java category in the Options window and click the Maven tab. Confirm that a Maven Home is specified.
Maven supports the concept of modules not to be confused with netbeans modules.
Before in pom.xml , set packaging as pom for parent project .
packaging pom instead of jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With