zoukankan      html  css  js  c++  java
  • Maven .conf实际使用

    Maven实际使用

    <?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>C:UsersAdministrator.m2
    epository</localRepository>  
      <pluginGroups/>  
      <proxies/>  
      <servers> 
        <server> 
          <id>releases</id>  
          <username>admin</username>  
          <password>admin123</password> 
        </server>  
        <server> 
          <id>snapshots</id>  
          <username>admin</username>  
          <password>admin123</password> 
        </server> 
      </servers>  
      <mirrors> 
        <mirror> 
          <id>releases</id>  
          <mirrorOf>*</mirrorOf>  
          <url>http://192.168.8.169:8081/nexus/content/groups/public/</url> 
        </mirror>  
        <mirror> 
          <id>snapshots</id>  
          <mirrorOf>*</mirrorOf>  
          <url>http://192.168.8.169:8081/nexus/content/groups/public/</url> 
        </mirror> 
      </mirrors>  
      <profiles> 
        <profile> 
          <id>nexus</id>  
          <repositories> 
            <repository> 
              <id>releases</id>  
              <url>http://releases</url>  
              <releases>
                <enabled>true</enabled>
              </releases>  
              <snapshots>
                <enabled>true</enabled>
              </snapshots> 
            </repository>  
            <repository> 
              <id>snapshots</id>  
              <url>http://snapshots</url>  
              <releases>
                <enabled>true</enabled>
              </releases>  
              <snapshots>
                <enabled>true</enabled>
              </snapshots> 
            </repository> 
          </repositories>  
          <pluginRepositories> 
            <pluginRepository> 
              <id>releases</id>  
              <url>http://releases</url>  
              <releases>
                <enabled>true</enabled>
              </releases>  
              <snapshots>
                <enabled>true</enabled>
              </snapshots> 
            </pluginRepository>  
            <pluginRepository> 
              <id>snapshots</id>  
              <url>http://snapshots</url>  
              <releases>
                <enabled>true</enabled>
              </releases>  
              <snapshots>
                <enabled>true</enabled>
              </snapshots> 
            </pluginRepository> 
          </pluginRepositories> 
        </profile>  
        <profile> 
          <id>sonar</id>  
          <activation> 
            <activeByDefault>true</activeByDefault> 
          </activation>  
          <properties> 
            <sonar.jdbc.url>jdbc:mysql://192.168.8.168:3306/sonar</sonar.jdbc.url>  
            <sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>  
            <sonar.jdbc.username>root</sonar.jdbc.username>  
            <sonar.jdbc.password>123456</sonar.jdbc.password>  
            <!-- SERVER ON A REMOTE HOST -->  
            <sonar.host.url>http://192.168.8.169:9000</sonar.host.url> 
          </properties> 
        </profile>  
        <profile> 
          <id>jdk18</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>nexus</activeProfile>    --> 
      </activeProfiles> 
    </settings>
  • 相关阅读:
    675 对象的引用-浅拷贝-深拷贝
    674 vue3侦听器watch
    673 vue计算属性:缓存,setter和getter
    明明有了promise,为啥还需要async await?
    Js常用数组方法汇总
    一些非常有用的Js单行代码
    Js获取验证码倒计时
    前端截取字符串:JS截取字符串之substring、substr和slice详解
    javascript全局变量与局部变量
    JS实现快速排序算法
  • 原文地址:https://www.cnblogs.com/yifanSJ/p/12980290.html
Copyright © 2011-2022 走看看