We have seen that the Eclipse IDE provides support for Maven projects and allows us to run Maven commands from the IDE. Let us now see how we can manage dependencies using Eclipse.
Use the following steps in Eclipse IDE to manage the dependencies:
Open the demoproject-selendroid file in Eclipse.
Open the
pom.xml
file.Click on the Dependencies tab as shown in the following screenshot:
A new dependency can be added by clicking on the Add… button (see in the preceding screenshot for the Add... button):
As you can see in the preceding screenshot, you can specify the values in the Group Id:, Artifact Id:, and Version: textboxes along with the value in the Scope dropdown. Alternately, you can search for an artifact in the Enter groupId, artifactId or sha1 prefix or pattern (*): textbox, and eclipse will populate the relevant columns based on your selection in the Search Results list.
You can also see the dependency tree by clicking on the Dependency...