不是IDEA内置的打开自己安装maven目录下的conf-setings.xml
打开setings.xml这个文件
把下面这段配置加上
- <mirror>
-
- <id>nexus-aliyunid>
-
- <mirrorOf>centralmirrorOf>
- <name>Nexus aliyunname>
-
- <url>http://maven.aliyun.com/nexus/content/groups/publicurl>
- mirror>
配上
<localRepository>C:\Users\Ben\.m2\repositorylocalRepository>
再配上
- <profile>
-
-
- <id>jdk-19id>
- <activation>
- <activeByDefault>trueactiveByDefault>
- <jdk>19jdk>
- activation>
- <properties>
-
- <maven.compiler.source>19maven.compiler.source>
- <maven.compiler.target>19maven.compiler.target>
- <maven.compiler.compilerVersion>19maven.compiler.compilerVersion>
- properties>
- profile>