maven 私服的setting.xml配置
<?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配置的更多相关文章
- 使用阿里云的maven私服的setting.xml, 提高maven项目jar下载速度
下载: http://files.cnblogs.com/files/007sx/settings.zip 然后替换自己原本maven的配置文件. 如下载失败,可内容替换: <?xml vers ...
- Maven系列二setting.xml 配置详解
文件存放位置 全局配置: ${M2_HOME}/conf/settings.xml 用户配置: ${user.home}/.m2/settings.xml note:用户配置优先于全局配置.${use ...
- maven私服nexus3.9安装配置
maven私服nexus3.9安装配置 私服介绍 私服是指私有服务器,是架设在局域网的一种特殊的远程仓库,目的是代理远程仓库及部署第三方构建.有了私服之后,当 Maven 需要下载构件时,直接请求私服 ...
- Maven学习笔记—私服(包含maven的setting.xml配置)
为什么要用远程仓库(私服) 如果没有私服,我们所需的所有构件都需要通过maven的中央仓库和第三方的maven仓库下载到本地,而一个团队中的所有人都重复的从maven仓库下载构件,这样就加大了中央仓库 ...
- maven私服的项目使用配置
环境: eclipse .maven.nexus. 1.配置setting.xml文件 1.1.配置本地仓库位置:文件中,存在节点 “localRepository”,默认是注释,也就是本地仓库使用 ...
- Maven系列一pom.xml 配置详解
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20 ...
- Maven项目的pom.xml配置文件格式初识
Maven项目 有pom.xml文件的项目就已经是一个maven项目了,但是还没有被maven托管,我们需要将该项目添加为maven项目 <project xmlns="http:// ...
- eclipse开发工具之“指定Maven仓库和setting.xml文件位置”
1.先点击window,然后选择Preferences按钮进入设置 2.找到Maven,选择UserSettings 点击Browse控件,添加setting.xml 点击Reindex控件,添加依赖 ...
- maven 本地setting.xml配置
<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://mav ...
随机推荐
- 洛谷 U78696 图书馆馆长的考验 题解
题面 1. 图书馆馆长的考验(library) 红魔馆的拥有者蕾米莉亚的好友帕秋莉是红魔馆的大图书馆的馆长.擅长操纵五行,名言是“万物都有属性.所谓的属性,和弱点是一样的”. 一天,因为魔理沙看了神之 ...
- Qt两个类通过信号槽通信
qt需要通过信号槽来通信,connect的时候总是返回false,请教了公司的一个小哥,才解决了问题,虽然是个很白痴的问题. bool b = QObject::connect(m_pCollectO ...
- python 列表操作-切片
- 一遍记住 8 种排序算法与 Java 代码实现
☞ 程序员进阶必备资源免费送「21种技术方向!」 ☜ 作者:KaelQ, www.jianshu.com/p/5e171281a387 1.直接插入排序 经常碰到这样一类排序问题:把新的数据插入到已经 ...
- React Native 开源项目汇总
最近闲来无事,学习了React Native开发Android APP,自我感觉RN APP的效果和Native APP比还是蛮不错,以下是找到的一些优秀源码,仅供学习参考... React Nati ...
- linux下mysql的常用命令
更改mysql数据库root的密码 首次进入数据库是不用密码的: [root@localhost ~]# /usr/local/mysql/bin/mysql -uroot Welcome to th ...
- 2.SpringBoot整合Mybatis(一对一)
前言: 上一篇整合springboot和mybatis的项目的建立,以及单表的简单的增删改查.这里是上一篇blog的地址:https://www.cnblogs.com/wx60079/p/11461 ...
- owncloud 安装
假定lamp已安装完成. 1 安装owncloud 使用curl命令下载其发行版密钥(key),并使用add命令将其与apt-key实用程序一起导入: curl https://download.ow ...
- AIX系统的备份和恢复
1.AIX备份命令
- 文件上传 MIME类型检测
简介 MIME(Multipurpose Internet Mail Extensions)多用途网络邮件扩展类型,可被称为Media type或Content type, 它设定某种类型的文件当被浏 ...