You need to enable JavaScript to run this app.
Container Registry

Container Registry

Copy page
Download PDF
Maven package management
Configuring local credentials
Copy page
Download PDF
Configuring local credentials
After obtaining permanent or temporary credentials for the Maven artifact repository, you need to add these repository credentials to the settings.xml file in your local environment to properly access the artifact repository. This section takes configuring permanent credentials in a local environment as an example to explain how to add access credentials for the artifact repository to your local Maven configuration file.​
Prerequisites​
  • Have registered a Volcano Engine root user and activated the artifact repository Service.​
  • Maven has been installed locally.​
Procedure​
  1. Log in to the command-line interface of your local environment.​
  1. Execute the following command to navigate to the Maven folder.​
​
sudo cd ~/.m2​
​
  1. Copy and add the access credentials to the settings.xml file. Here, <username> and <password> represent the username and password for the artifact repository.​
warning​
The top-level tag <settings> in the settings.xml file can only appear once. Therefore, if your settings.xml file already contains configurations, please copy only the content within the <servers> </servers> tags as shown below.​
​
<settings>​
<servers>​
<server>​
<id>[REPOSITORY ID]</id>​
<username>[********] </username>​
<password>[********]</password>​
</server>​
</servers>​
</settings>​
​
​
Parameter​
Description​
REPOSITORY ID​
Configure the name of the artifact repository instance. You can view the instance name in the Instances.​
username​
Configure the username for the artifact repository instance.​
tip​
The username for the artifact repository follows the format username@userid. You can view your username where you configured the permanent credentials for the artifact repository.​
password​
Configure the password for the artifact repository instance.​
​
  1. Save the file to complete the configuration.​
​
Last updated: 2025.10.24 11:20:39