-
In China mainland, how do I need to configure my Maven to compile the project? 在中国,我要怎么配置我的 Maven 以便成功编译项目呢? |
Beta Was this translation helpful? Give feedback.
Answered by
healchow
Mar 9, 2022
Replies: 1 comment
-
My settings file of Maven is like this: <?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>/Users/healchow/repo/public</localRepository>
<offline>false</offline>
<mirrors>
<mirror>
<id>tencent-yun</id>
<mirrorOf>*</mirrorOf>
<name>tencent-yun</name>
<url>https://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>
</mirror>
<mirror>
<id>ali-yun</id>
<mirrorOf>*</mirrorOf>
<name>ali-yun</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
<mirror>
<id>huawei-cloud</id>
<name>huawei-cloud</name>
<mirrorOf>*</mirrorOf>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</mirror>
</mirrors>
<proxies>
</proxies>
<servers>
</servers>
<profiles>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>mvn-repository</id>
<name>mvn-repository</name>
<url>https://repo1.maven.org/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
healchow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My settings file of Maven is like this: