This topic describes how to manage artifacts in a Maven private repository.
Prerequisites
You need to create a Maven artifact repository before managing artifacts. For more information, see Create an artifact repository.
Use a Maven repository
Click the created Maven repository. In the left-side navigation pane, select Repository Guide and follow the instructions to configure repository push and pull.

Click the button in the Credentials area to view the Maven username and password.

View and manage Maven artifacts
Search for artifacts
On the repository home page, click Package list to view all artifacts in the repository. You can search for artifacts by name.

Upload artifacts manually
Click Upload Artifact to manually upload local Maven artifacts to the artifact repository. In the Upload Artifact dialog box, you need to accurately fill in the Group, Artifactory, and Version information, select the correct package type, upload the local package file, and then click Upload.

View artifact version details
Click the target package name. The right panel displays detailed information about the artifact. By default, the latest version information is displayed. You can switch between versions. In the File List, you can download corresponding files such as pom and jar as needed.

Pull artifacts
After clicking the target package name, the right panel displays detailed information about the artifact. You can Configure Maven or Gradle Dependencies according to project requirements.

For example: For Maven projects, all dependency management is done in the pom.xml file. The following are the basic steps:
Add dependencies: Open the
pom.xmlfile and add the required dependencies in the<dependencies>section. For example, to add a dependency named "0.0.3-SNAPSHOT", you can do the following:<dependencies> <dependency> <groupId>com.example</groupId> <artifactId>demo</artifactId> <version>0.0.3-SNAPSHOT</version> </dependency> </dependencies>Switch versions: To change the version of a dependency, specify the required version number in the
<version>element.Update dependencies: Use Maven's update command to obtain the latest dependency list:
mvn dependency:resolveOr execute a complete project build to update dependencies:
mvn clean install
Disable an artifact version
In the artifact details panel, click Disable Artifact to disable that artifact version.

The scope of disabling is limited to the version rather than the entire artifact. If you disable version 1.0 of an artifact on the artifact product page, version 1.0 cannot be downloaded, but other versions of the artifact can still be downloaded and used.
Delete an artifact version
In the artifact details panel, click Metadata to manage the metadata information of the artifact version. Metadata only applies to the specified artifact version. Click Delete This Version to delete an artifact version. After the artifact version is deleted, you can recover it from the Artifact Recycle Bin.
