You need to enable JavaScript to run this app.
Code Pipeline

Code Pipeline

Copy page
Download PDF
Compilation FAQ
Slow fetching of dependencies in Maven projects
Copy page
Download PDF
Slow fetching of dependencies in Maven projects
tip​
Support for adding a Maven Settings configuration file at the global level in Code Pipeline. This avoids repeated configuration in multiple pipeline tasks and improves the efficiency of pipeline creation and maintenance. For detailed operating instructions, refer to Add Maven Setting Global Configurations.​
  1. Add a configuration file in the project​
  • For example: add a configuration file named settings.xml. You can refer to the following configuration for its content.​
  • ​
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"​
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">​
    <mirrors>​
    <mirror>​
    <id>aliyunmaven</id>​
    <mirrorOf>*</mirrorOf>​
    <name>Public repository</name>​
    <url>https://maven.aliyun.com/repository/public</url>​
    </mirror>​
    </mirrors>​
    </settings>​
    ​
tip​
If the configuration file already exists, append to or modify the current configuration file.​
  1. Modify the content of the mvn command invocation to add the -s parameter.​
  • ​
    mvn -s settings.xml package​
    ​
​
Last updated: 2025.09.10 17:37:25