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

Container Registry

Copy page
Download PDF
FAQ
Maven repository cannot fetch packages
Copy page
Download PDF
Maven repository cannot fetch packages
Issue phenomenon​
After the user correctly configures the Maven repository, they find that packages cannot be retrieved correctly.​
​alt​​
Cause analysis​
The settings.xml file in the user's base image is configured with mirror settings, and repository requests are redirected using <mirrorOf>. Hijacking all requests to https://maven.aliyun.com/repository/central prevents access to the Volcano Engine artifact repository.​
​
<mirrors>​
<mirror>​
<id>aliyun-mirror</id>​
<mirrorOf>*</mirrorOf>​
<name>aliyun-mirror</name>​
<url>https://maven.aliyun.com/repository/central</url>​
</mirror>​
</mirrors>​
​
Solution​
Add the following configuration to the user configuration or project configuration (which have a higher priority than the default configuration file).​
​
<mirrors>​
<mirror>​
<id>[REPOSITORY_ID]-mirror-override</id>​
<mirrorOf>[REPOSITORY_ID]</mirrorOf>​
<url>[REPOSITORY_URL]/</url>​
</mirror>​
</mirrors>​
​
ConfigMap description, as shown in the following table.​
​
Parameter​
Description​
REPOSITORY_ID​
Configure the name of the artifact repository instance, e.g., Free-Share.​
REPOSITORY_URL​
Configure the access URL address of the artifact repository. This can be obtained from the artifact repository details. For details, please refer to Managing Repository.​
​
​
Last updated: 2025.10.24 11:20:37