Maven full settings.xml

简介:
复制代码
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

<!--
 | This is the configuration file for Maven. It can be specified at two levels:
 |
 |  1. User Level. This settings.xml file provides configuration for a single user, 
 |                 and is normally provided in ${user.home}/.m2/settings.xml.
 |
 |                 NOTE: This location can be overridden with the CLI option:
 |
 |                 -s /path/to/user/settings.xml
 |
 |  2. Global Level. This settings.xml file provides configuration for all Maven
 |                 users on a machine (assuming they're all using the same Maven
 |                 installation). It's normally provided in 
 |                 ${maven.home}/conf/settings.xml.
 |
 |                 NOTE: This location can be overridden with the CLI option:
 |
 |                 -gs /path/to/global/settings.xml
 |
 | The sections in this sample file are intended to give you a running start at
 | getting the most out of your Maven installation. Where appropriate, the default
 | values (values used when the setting is not specified) are provided.
 |
 |-->
<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
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ${user.home}/.m2/repository
  <localRepository>/path/to/local/repo</localRepository>
  -->
 <localRepository>C:\Users\ahu\.m2\repository</localRepository>
 
  <pluginGroups>
      <pluginGroup>org.mortbay.jetty</pluginGroup>
      <pluginGroup>org.codehaus.cargo</pluginGroup>
  </pluginGroups>

  <proxies>
  </proxies>

  <servers>
      <server>
          <id>releases</id>
          <username>deployment</username>
          <password>deployment123</password>
      </server>
      <server>
          <id>snapshots</id>
          <username>deployment</username>
          <password>deployment123</password>
      </server>  
  </servers>

  

  <profiles>
    <profile>
      <id>nexus</id>
      <repositories>
      <repository>
          <id>central</id>
          <name>central</name>
          <url>http://servername/nexus/content/groups/public/</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
        
        <repository>
          <id>soapui</id>
          <name>soapui</name>
          <url>http://www.soapui.org/repository/maven2</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
        
        <repository>
            <id>jfrog-plugins</id>
            <name>jfrog-plugins-dist</name>
            <url>http://repo.jfrog.org/artifactory/plugins-releases</url>
       </repository>
       <repository>
            <id>repo.jenkins-ci.org</id>
            <name>jenkins-plugins-dist</name>
            <url>http://repo.jenkins-ci.org/public/</url>            
       </repository>
        
      </repositories>
     <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://servername/nexus/content/groups/public/</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
        <pluginRepository>
          <id>soapui</id>
          <name>soapui</name>
          <url>http://www.soapui.org/repository/maven2</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>repo.jenkins-ci.org</id>
            <url>http://repo.jenkins-ci.org/public/</url>
            <releases><enabled>true</enabled></releases>
            <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
   </profiles>
   
    <mirrors>
    
    <mirror>
      <id>central</id>
      <mirrorOf>*,!soapui,!jfrog-plugins,!repo.jenkins-ci.org</mirrorOf>
      <url>http://servername/nexus/content/groups/public/</url>
    </mirror>
    <!--
    <mirror>
      <id>soapui</id>
      <url>http://www.soapui.org/repository/maven2</url>
      <mirrorOf>*</mirrorOf>
    </mirror> -->
    
    
  </mirrors>
<!-- Give access to Jenkins plugins --> 
  <activeProfiles>
    <activeProfile>nexus</activeProfile>
  </activeProfiles>
  
  
</settings>

</settings>

<!-- id should be the same as above server id-->
<!--
<distributionManagement> 

<repository> 
    <id>releases</id>  
    <name>Internal Releases</name> 
    <url>http://servername/nexus/content/groups/public/</url> 
</repository> 
<snapshotRepository> 
    <id>snapshots</id> 
    <name>Internal Snapshots</name> 
    <url>http://servername/nexus/content/groups/public/
</distributionManagement>

-->
复制代码



目录
相关文章
|
5月前
|
存储 Java 测试技术
JAVA-MAVEN初学者教程(配置、pom.xml、依赖管理等)
JAVA-MAVEN初学者教程(配置、pom.xml、依赖管理等)
729 0
|
5月前
|
安全 Java Linux
一文了解 Maven 的 settings.xml 配置文件
一文了解 Maven 的 settings.xml 配置文件
1006 0
|
2月前
|
XML JSON Java
使用IDEA+Maven搭建整合一个Struts2+Spring4+Hibernate4项目,混合使用传统Xml与@注解,返回JSP视图或JSON数据,快来给你的SSH老项目翻新一下吧
本文介绍了如何使用IntelliJ IDEA和Maven搭建一个整合了Struts2、Spring4、Hibernate4的J2EE项目,并配置了项目目录结构、web.xml、welcome.jsp以及多个JSP页面,用于刷新和学习传统的SSH框架。
42 0
使用IDEA+Maven搭建整合一个Struts2+Spring4+Hibernate4项目,混合使用传统Xml与@注解,返回JSP视图或JSON数据,快来给你的SSH老项目翻新一下吧
|
4月前
|
运维 安全 Java
阿里云云效操作报错合集之maven的setting.xml 上,本地拉取时,报401问题,该怎么办
本合集将整理呈现用户在使用过程中遇到的报错及其对应的解决办法,包括但不限于账户权限设置错误、项目配置不正确、代码提交冲突、构建任务执行失败、测试环境异常、需求流转阻塞等问题。阿里云云效是一站式企业级研发协同和DevOps平台,为企业提供从需求规划、开发、测试、发布到运维、运营的全流程端到端服务和工具支撑,致力于提升企业的研发效能和创新能力。
|
4月前
|
XML Java 数据库连接
技术笔记:Maven的pom.xml(坐标的gav、依赖的scope)
技术笔记:Maven的pom.xml(坐标的gav、依赖的scope)
101 0
|
4月前
|
Java Maven
Maven自用配置文件(settings.xml)
Maven自用配置文件(settings.xml)
467 0
|
5月前
|
Java Maven
maven配置settings.xml以及maven常用仓库
maven配置settings.xml以及maven常用仓库
743 0
|
5月前
|
Java Maven
SpringMVC常用Maven POM.xml依赖包片段
SpringMVC常用Maven POM.xml依赖包片段
|
5月前
|
XML Java 测试技术
【SpringBoot】基于 Maven 的 pom.xml 配置详解
【SpringBoot】基于 Maven 的 pom.xml 配置详解
770 0
【SpringBoot】基于 Maven 的 pom.xml 配置详解