Skip to content
欢迎扫码关注公众号

IDEA 配置 maven(配置阿里云中央仓库)


原文:IDEA 配置 maven(配置阿里云中央仓库)


默认 /{username}/.m2/ 下面没有 settings.xml 文件,可以从 IDEA 安装目录的 \plugins\maven\lib\maven3\conf\ 目录下复制一份过来修改。

xml
<mirrors>
   <mirror>
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
  </mirror>
</mirrors>

这个文件也可以放在别的地方,然后在 IDEA 的设置中指定该文件。

Setting=>Build,Execution,Deployment=>Build Tools=>Maven 中的 User settings file 选项

默认不可更改,勾上右边的 Override,然后选择自定义的 setting.xml 文件。

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.