<?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. 利用BFS解决拯救007问题 -- 数据结构

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

  2. uoj218_火车管理

    题意 \(n\)个位置,每个位置一个栈,三种操作,询问区间栈顶的和,区间入栈某个数,单点出栈某个数. 分析 用一个线段树来维护栈顶的和,区间(单点)更新和区间询问. 用一个主席树来维护每个位置最新一次 ...

  3. Codeforces 1220D. Alex and Julian

    传送门 首先考虑怎样的集合一定是合法的 发现全部是奇数的集合一定合法,因为每次都是奇数连偶数,偶数连奇数 然后考虑如果集合同时有奇数和偶数是否一定不合法,结论是一定不合法,证明如下: 设某个奇数为 $ ...

  4. ES使用text类型字段排序报错

    elasticsearch text字段排序报错解决使用elasticsearch 进行排序的时候,我们一般都会排序数字.日期.但是在排序text类型的时候就会出现错误. GET xytest/sut ...

  5. java学习笔记(4)多态

    一.多态 --------------------------------------------- 1.定义:某一类事物的多种存在形态 例如:动物中猫,狗. 猫这个对象对应的类型是猫类型 猫 x  ...

  6. time、date、datetime、timestamp和year

    在此声明mysql数据库 时间上总共有五中表示方法:它们分别是 time.date.datetime.timestamp和year. time : “hh:mm:ss”格式表示的时间值,格式显示TIM ...

  7. laravel5.8 源码分析(1) Route

    https://learnku.com/docs/laravel/5.8 源码路径 vendor\laravel\framework\src\Illuminate\Routing\Router.php ...

  8. Linux基础命令练习题(附答案)

    1.分别用cat \tac\nl三个命令查看文件/etc/ssh/sshd_config文件中的内容,并用自己的话总计出这三个文档操作命令的不同之处? [root@localhost ~]# cat ...

  9. Spring mvc数据转换 格式化 校验(转载)

    原文地址:http://www.cnblogs.com/linyueshan/p/5908490.html 数据绑定流程 1. Spring MVC 主框架将 ServletRequest 对象及目标 ...

  10. WinEdit编辑器中中文乱码

    这个问题困扰了我很久.我的电脑上装的CTEX的最新版本,原来我的系统是windows 7 64位系统.装好了CTEX之后,在里面可以直接输入中文,显示和编译生成的PDF文件都正常.但是后来系统崩溃了一 ...