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 ...
随机推荐
- [codeforces1234F]Yet Another Substring Reverse
题目链接 大致题意为将某个子串进行翻转后,使得不包含相同字符的字符子串长度最长.只能翻转一次或零次. 设一个子串的状态为包含字符的二进制.如子串为$abacd$,则状态为$00000000000000 ...
- day 03 int bool str (索引,切片) for 循环
基础数类型总览 10203 123 3340 int +- * / 等等 '今天吃了没?' str 存储少量的数据,+ *int 切片, 其他操作方法 True False bool 判断真假 [12 ...
- form表单提交被拦截
最近做的一个项目,利用form表单(可以避免跨域问题)提交,在chrome可以正常进行跳转,但是在手机端,以及一些pc端浏览器却无法正常跳转.通过检查后台日志,没有正常跳转的都是因为后天直接没有收到该 ...
- luogu P4654 [CEOI2017]Mousetrap
传送门 这里把终点设为根方便后续处理,那么目标就是要让老鼠走到根 首先考虑老鼠动不了的情况,这种情况下可以把从这个点到终点路径上的分支堵住,然后再疏通路径上的走过的边,可以发现这是这种情况下最优的决策 ...
- J2EE WEB应用架构分析
1. 架构概述 J2EE体系包括java server pages(JSP) ,java SERVLET, enterprise bean,WEB service等技术.这些技术的出现给电子商务时代的 ...
- grunt接触
grunt使用 以下内容均为已经安装好grunt,具体grunt的安装过程不述,可以参考grunt的相关资料. 1.项目初始化grunt 在项目文件夹的根目录下面,打开命令行grunt init,执行 ...
- js实现简单进度条
主要用到的 offsetWidth 属性,定时器. <!DOCTYPE html> <html> 3 <head> <meta http-equiv=&quo ...
- 枚举java语言中的修饰符组合
package model; /*22:37 2019/7/20*/ /* top class的修饰符组合 abstract final public 2 * 2 * 2 warning: abstr ...
- 【leetcode】 463. Island Perimeter
题目: 以二维数组形式表示坐标岛屿,求边长. 例子: [[0,1,0,0], [1,1,1,0], [0,1,0,0], [1,1,0,0]] Answer: 16 Explanation: The ...
- linux 桥接模式下 固定ip 设置
DEVICE=eht0 #网卡名称BOOTPROTO=none #关闭自动获取 dhcp IPADDR=192.168.0.178 #ip地址GATEWAY=192.168.0.1 DN ...