maven相关配置记录保存

发布时间 2023-11-28 14:14:39作者: 鱼的记忆·

一、maven仓路径

1.settings.xml

<localRepository>E:\xxx\mavenRepository</localRepository>

2.镜像

    <mirror>
            <id>repo1</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>https://repo1.maven.org/maven2/</url>
        </mirror>
 
       
        <mirror>
            <id>repo2</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>https://repo2.maven.org/maven2/</url>
        </mirror>  

        <mirror>
          <id>aliyunmaven</id>
          <mirrorOf>*</mirrorOf>
          <name>阿里云公共仓库</name>
          <url>https://maven.aliyun.com/repository/public</url>
        </mirror>

二、编辑器配置

1.配置Maven

2.配置Maven下的Runner
属性值:-DarchetypeCatalog=internal