Managing dependencies and plugins

Repository indexes are also useful for adding dependencies and plugins from the project pop-up menu or from the Maven POM editor.

For example, when we click on the Add... button of the Dependencies tab of the Maven POM editor, we can insert the Maven coordinates of the needed dependency and confirm, and a new dependency element will be created in our POM. If we need a certain dependency but we do not exactly know its Maven coordinates, we can input a search string and the m2e plugin will query the repository indexes. We can choose the correct dependency in the search results that appear at the bottom of the window, as shown in the following screenshot (in which we are looking for the ANTLR dependency):

Managing dependencies and plugins

Searching Maven dependencies

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset