zoukankan      html  css  js  c++  java
  • maven的settings.xml里设置aliyun镜像以及jdk1.8版本编译

    demo:

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    
      <localRepository>D:/root/apache-maven-3.6.3/repository</localRepository>
    
      <mirrors>
        <mirror>
          <id>alimaven</id>
          <name>aliyun maven</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>        
        </mirror>
      </mirrors>
    
      <profiles>
             <profile>    
                <id>jdk8</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>
    
      <activeProfiles>
            <activeProfile>jdk8</activeProfile>
      </activeProfiles>
    
    </settings>

    记得设置maven环境变量,在系统变量里添加:

    MAVEN_HOME = D:
    ootapache-maven-3.6.3
    

    end.

  • 相关阅读:
    tcp/ip_properties_file
    tcp_ip/udp
    笔记1
    css样式使用_css
    常用的html标签总结_html
    利用sqlalchemy(ORM框架)连接操作mysql_mysql
    mysql基础命令_mysql
    redis使用_python
    RabitMQ使用_python
    后台管理页面2种常用模板_html
  • 原文地址:https://www.cnblogs.com/zhuwenjoyce/p/13233651.html
Copyright © 2011-2022 走看看