Open settings.xml file to find <mirrors> </ mirrors> find the node in the node is added:
<!-- 配置阿里云 --> <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
-
mirrors may be arranged a plurality of mirror, each mirror has id, name, url, mirrorOf properties.
-
id uniquely identifies a mirror
-
name seemingly not much use, the equivalent of a library is the official description url address
-
mirrorOf represents a mirror image of alternative locations, for example, represents a central place on the central official
The above configuration <mirrorOf> * </ mirrorOf> * in the meaning (according to id mirrorOf and repository of) matches all library (repository), this means that if you need a jar, he would go to download the jar from a mirror address . No matter how many you configure the library, even if the address is not the same these libraries will still be accessible from the mirror address.
Official Description: https: //maven.apache.org/guides/mini/guide-mirror-settings.html
conf file in maven file directory folder there is a settings.xml file, this is the Maven configuration file.
Open settings.xml files found <profiles> </ profiles> tag which added:
<profile> <id>jdk18</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> </properties> </profile>