Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans maven add module

Tags:

maven

netbeans

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.

like image 551
user373201 Avatar asked Dec 26 '10 05:12

user373201


People also ask

How do I add a Maven dependency in NetBeans?

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.

What is module in NetBeans?

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.

Where is the POM xml file in NetBeans?

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.

How configure Maven settings xml in NetBeans?

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.


2 Answers

Maven supports the concept of modules not to be confused with netbeans modules.

like image 127
marvin Avatar answered Oct 12 '22 01:10

marvin


Before in pom.xml , set packaging as pom for parent project .

packaging pom instead of jar

like image 34
updo Avatar answered Oct 12 '22 01:10

updo