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>
  • 相关阅读:
    使用tcmalloc编译启动时宕机
    使用tcmalloc编译出现undefined reference to `sem_init'
    使用AddressSanitizer做内存分析(一)——入门篇
    VIM-美化你的标签栏
    Entity Framework Code First (六)存储过程
    Entity Framework Code First (五)Fluent API
    Entity Framework Code First (四)Fluent API
    Entity Framework Code First (三)Data Annotations
    Entity Framework Code First (二)Custom Conventions
    Entity Framework Code First (一)Conventions
  • 原文地址:https://www.cnblogs.com/yifanSJ/p/12980290.html
Copyright © 2011-2022 走看看