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 ...
随机推荐
- PhpStorm配置Xdebug调试
安装xdebug 去官网下载对应版本的xdebug扩展 XDEBUG EXTENSION FOR PHP | DOWNLOADS 如何选择正确版本 输出phpinfo()函数的内容 查看输出页面的网页 ...
- Paxos协议理解
第三次报告: 理解Paxos协议 一. Paxos协议背景 什么是Paxos协议? 一般地,从客户端和服务器的角度,任何一个分布式系统都可以理解成由一个服务器集合和一个客户端集合组成,一个或多个客户端 ...
- Leaving Auction CodeForces - 749D (set,贪心,模拟)
大意: 若干个人参加拍卖会, 给定每个人出价顺序, 保证价格递增, q个询问, 给出k个人的编号, 求删除这k个人的所有出价后, 最终谁赢, 他最少出价多少. set维护每个人最后一次投票的时间, 每 ...
- npm学习(八)之如何使用语义化版本
npm的语义化版本控制——Semantic versioning 在新发布的代码中传达更改的程度非常重要,因为有时更新会破坏包需要的代码(称为依赖项).语义化版本控制(semver)是一个旨在解决这个 ...
- 28、周末看电影(每周五自动从top250中随机选取三部电影,并将下载链接发到邮箱里)
练习介绍 在第3关的一个课后练习里,我们爬取了指定电影的下载链接:在第6关的一个课后练习里,我们存储了豆瓣TOP250的榜单信息. 现在,我们完善这个程序,每周五在存储的榜单中,随机抽三部 ...
- js 元素offset,client , scroll 三大系列总结
1,element.offsetWidth : 包括 padding 和 边框 2,element.clientWidth : 包括 padding ,不包含边框 , 内容超出会溢出盒子的时候,就用s ...
- ALV打印不显示打印界面的问题
用OO的方式screen0 不画屏幕会产生这个问题,解决办法就是不用screen0 要自己画一个区域
- Python回调函数用法实例
Python回调函数用法实例 作者:no.body链接:https://www.zhihu.com/question/19801131/answer/27459821 什么是回调函数? 我们绕点远路来 ...
- [工具] BurpSuite--XssValidator插件
0x00 安装 所需软件: 1.burpsuite 2.xssvalidator 源码:https://github.com/nVisium/xssValidator(按照编译指导编译) burpsu ...
- SCC统计
Kosoraju SCC总数及记录SCC所需要的最少边情况 #include<cstdio> ; ; ][N], nxt[][N], v[][N], ed, q[N], t, vis[N] ...