IDEA配置全域性預設Maven(圖文講解)
阿新 • • 發佈:2019-01-02
IDEA全域性Maven
步驟一:
File > Other Settings > Settings for New Projects…
步驟二:
Build,Execution,Deployment > Build Tools > Maven
步驟三:
配置settings.xml
把settings.xml檔案直接往IDEA里拉,把多餘的註釋和節點刪掉
程式碼:
<?xml version="1.0" encoding="UTF-8"?> <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 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <!--配置阿里雲映象伺服器。在mirrors標籤裡新增以下一段即可。--> <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> </settings>