<?xml version="1.0" encoding="UTF-8"?>
2 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
5
6 <pluginGroups></pluginGroups>
7 <proxies></proxies>
8
9 <servers>
10 <server>
11 <id>nexus-releases</id>
12 <username>admin</username>
13 <password>admin123</password>
14 </server>
15 <server>
16 <id>nexus-snapshots</id>
17 <username>admin</username>
18 <password>admin123</password>
19 </server>
20 </servers>
21
22 <mirrors>
23 <mirror>
24 <id>nexus-releases</id>
25 <mirrorOf>*</mirrorOf>
26 <url>http://localhost:8081/nexus/content/groups/public</url>
27 </mirror>
28 <mirror>
29 <id>nexus-snapshots</id>
30 <mirrorOf>*</mirrorOf>
31 <url>http://localhost:8081/nexus/content/groups/public-snapshots</url>
32 </mirror>
33 </mirrors>
34
35 <profiles>
36 <profile>
37 <id>nexus</id>
38 <repositories>
39 <repository>
40 <id>nexus-releases</id>
41 <url>http://nexus-releases</url>
42 <releases><enabled>true</enabled></releases>
43 <snapshots><enabled>true</enabled></snapshots>
44 </repository>
45 <repository>
46 <id>nexus-snapshots</id>
47 <url>http://nexus-snapshots</url>
48 <releases><enabled>true</enabled></releases>
49 <snapshots><enabled>true</enabled></snapshots>
50 </repository>
51 </repositories>
52 <pluginRepositories>
53 <pluginRepository>
54 <id>nexus-releases</id>
55 <url>http://nexus-releases</url>
56 <releases><enabled>true</enabled></releases>
57 <snapshots><enabled>true</enabled></snapshots>
58 </pluginRepository>
59 <pluginRepository>
60 <id>nexus-snapshots</id>
61 <url>http://nexus-snapshots</url>
62 <releases><enabled>true</enabled></releases>
63 <snapshots><enabled>true</enabled></snapshots>
64 </pluginRepository>
65 </pluginRepositories>
66 </profile>
67 </profiles>
68
69 <activeProfiles>
70 <activeProfile>nexus</activeProfile>
71 </activeProfiles>
72
73 </settings>

maven 项目 的pom.xml配置

 1 <distributionManagement>
2 <!-- 两个ID必须与 setting.xml中的<server><id>nexus-releases</id></server>保持一致-->
3 <repository>
4 <id>nexus-releases</id>
5 <name>Nexus Release Repository</name>
6 <url>http://localhost:8081/nexus/content/repositories/releases</url>
7 </repository>
8 <snapshotRepository>
9 <id>nexus-snapshots</id>
10 <name>Nexus Snapshot Repository</name>
11 <url>http://localhost:8081/nexus/content/repositories/snapshots</url>
12 </snapshotRepository>
13 </distributionManagement>

maven 私服的setting.xml配置的更多相关文章

  1. 使用阿里云的maven私服的setting.xml, 提高maven项目jar下载速度

    下载: http://files.cnblogs.com/files/007sx/settings.zip 然后替换自己原本maven的配置文件. 如下载失败,可内容替换: <?xml vers ...

  2. Maven系列二setting.xml 配置详解

    文件存放位置 全局配置: ${M2_HOME}/conf/settings.xml 用户配置: ${user.home}/.m2/settings.xml note:用户配置优先于全局配置.${use ...

  3. maven私服nexus3.9安装配置

    maven私服nexus3.9安装配置 私服介绍 私服是指私有服务器,是架设在局域网的一种特殊的远程仓库,目的是代理远程仓库及部署第三方构建.有了私服之后,当 Maven 需要下载构件时,直接请求私服 ...

  4. Maven学习笔记—私服(包含maven的setting.xml配置)

    为什么要用远程仓库(私服) 如果没有私服,我们所需的所有构件都需要通过maven的中央仓库和第三方的maven仓库下载到本地,而一个团队中的所有人都重复的从maven仓库下载构件,这样就加大了中央仓库 ...

  5. maven私服的项目使用配置

    环境:  eclipse .maven.nexus. 1.配置setting.xml文件 1.1.配置本地仓库位置:文件中,存在节点 “localRepository”,默认是注释,也就是本地仓库使用 ...

  6. Maven系列一pom.xml 配置详解

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20 ...

  7. Maven项目的pom.xml配置文件格式初识

    Maven项目 有pom.xml文件的项目就已经是一个maven项目了,但是还没有被maven托管,我们需要将该项目添加为maven项目 <project xmlns="http:// ...

  8. eclipse开发工具之“指定Maven仓库和setting.xml文件位置”

    1.先点击window,然后选择Preferences按钮进入设置 2.找到Maven,选择UserSettings 点击Browse控件,添加setting.xml 点击Reindex控件,添加依赖 ...

  9. maven 本地setting.xml配置

    <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://mav ...

随机推荐

  1. 字典树(trie树) 后缀树 广义后缀树

    转自:http://www.cnblogs.com/dong008259/archive/2011/11/11/2244900.html (1)字典树(Trie树) Trie是个简单但实用的数据结构, ...

  2. 利用BFS解决拯救007问题 -- 数据结构

    题目: 7-1 拯救007 (30 分) 在老电影“007之生死关头”(Live and Let Die)中有一个情节,007被毒贩抓到一个鳄鱼池中心的小岛上,他用了一种极为大胆的方法逃脱 —— 直接 ...

  3. linux服务器之间互传文件

    1.传递单个文件 linux A 服务器 上的文件(假设文件为a.php) 复制到 linux B 服务器上(假设复制后的文件名为b.php) 格式为  scp 文件a的绝对路径  B服务器用户名@B ...

  4. mysql自增主键字段重排

    不带外键模式的 mysql 自增主键字段重排 1.备份表结构 create table table_bak like table_name; 2.备份表数据 insert into table_bak ...

  5. TCP协议的粘包现象和解决方法

    # 粘包现象 # serverimport socket sk = socket.socket()sk.bind(('127.0.0.1', 8005))sk.listen() conn, addr ...

  6. D - 卿学姐与魔法

    卿学姐与魔法 Time Limit: 1200/800MS (Java/Others)     Memory Limit: 65535/65535KB (Java/Others) Submit Sta ...

  7. Executor框架(转)

    摘要:        Executor作为灵活且强大的异步执行框架,其支持多种不同类型的任务执行策略,提供了一种标准的方法将任务的提交过程和执行过程解耦开发,基于生产者-消费者模式,其提交任务的线程相 ...

  8. python处理json文件(Yelp数据集)

    python脚本处理yelp数据集 import sys import json import re import os import time if __name__ == '__main__': ...

  9. 安装ELK平台 7.3.0版本

    0. 事前准备工作 0.1 防火墙 若是使用公网IP的话可以考虑关闭防火墙,或者放行相应端口 使用内网IP的话可以不用管防火墙 0.2 关闭SElinux # setenforce 0 文件:/etc ...

  10. [Wpf]在C#中添加 collectionViewSource

    Products = new ObservableCollection<Product>(products); ProductOptions = new ObservableCollect ...