Initialization failed for ‘https://start.spring.io’
最近用idea 新建模块时,提示Initialization failed for ‘https://start.spring.io’这个错误,原因是maven的setting文件配置问题。
因为是新配的maven,setting文件配置引入的阿里云地址不对,错误的不贴了,直接上正确的
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>nexus-public-snapshots</id>
<mirrorOf>public-snapshots</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
</mirror>
<profile>
<id>jdk-1.8</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>
<activeProfiles>
<!--需要激活 <profile>中的ID才生效 -->
<activeProfile>jdk-1.8</activeProfile>
</activeProfiles>
按上面配置后,重启idea 生效。