The project dependencies that are displayed under a project's Dependencies node are Maven artifacts. Each Maven artifact has a unique coordinate (groupId, artifactId and version) that is used to identify the artifact in a project's POM. An artifact can also have dependencies. The artifacts available to a project can be viewed under the Maven Repositories node in the Services window.
You can right-click an artifact in the Projects window or the Services window to invoke a popup menu with commands for downloading the sources and Javadoc of an artifact, finding usages and viewing artifact details. You can use the Artifact Viewer to view details about individual artifacts.
To open the Artifact Viewer, perform either of the following steps.
The Artifact Viewer displays details in the following tabs.
The buttons in the toolbar of the Artifact Viewer enable you to perform the following tasks.
Button | Description |
---|---|
![]() | Add as Dependency. Click this to open the Add Dependency dialog box and choose a project. |
![]() | Checkout Sources. If the sources of the artifact are available in a repository, click this to open the Checkout Sources wizard and specify a location for a local repository for the sources. |
![]() | Create Library. Click this to create a NetBeans library from the artifact. The new library will be available in the Ant Library Manager. |
The Graph tab of the Artifact Viewer enables you to easily visualize dependencies. The visualizer also provides tools to help you find and resolve potential problems resulting from dependency version conflicts. In the Graphs tab, artifacts with a version conflict are indicated by a red background. You can click on the suggestion icon to open a dialog box with a description of the conflict and options for resolving the conflict.
To open the graph view of dependencies, perform either of the following steps.