maven的配置

配置setting.xml

       <localRepository>C:\Users\admin\.m2\repository</localRepository>
        
       <mirrors>
        <mirror>
                  <!--This sends everything else to /public -->
                  <id>nexus-aliyun</id>
                  <mirrorOf>*</mirrorOf>
                  <name>Nexus aliyun</name>
                  <url>http://maven.aliyun.com/nexus/content/groups/public</url>
            </mirror>
       </mirrors>


      <profiles>
        <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>
     </profiles>


   环境配置:https://blog.csdn.net/weixin_43811057/article/details/108235117
posted @ 2020-12-20 15:29  jock_javaEE  阅读(46)  评论(0编辑  收藏  举报