[2017-11-09] Configuring your clients and projects to use your Nexus repos
来源:互联网 发布:知乎发帖时间 编辑:程序博客网 时间:2024/06/17 01:45
Put this in your ~/.m2/settings.xml
file. This will configure the credentials to publish to your hosted repos, and will tell your mvn to use your repo as a mirror of central:
<servers> <server> <id>nexus-snapshots</id> <username>admin</username> <password>admin123</password> </server> <server> <id>nexus-releases</id> <username>admin</username> <password>admin123</password> </server> </servers> <mirrors> <mirror> <id>central</id> <name>central</name> <url>http://your-host:8081/repository/maven-group/</url> <mirrorOf>*</mirrorOf> </mirror> </mirrors></settings>
And now configure your projects.
If you want only to download dependencies from Nexus, put this in the pom.xml:
<project ...> ... <repositories> <repository> <id>maven-group</id> <url>http://your-host:8081/repository/maven-group/</url> </repository> </repositories></project>
And if you want also to publish your project, add:
<project ...> ... <distributionManagement> <snapshotRepository> <id>nexus-snapshots</id> <url>http://your-host:8081/repository/maven-snapshots/</url> </snapshotRepository> <repository> <id>nexus-releases</id> <url>http://your-host:8081/repository/maven-releases/</url> </repository> </distributionManagement></project>
阅读全文
0 0
- [2017-11-09] Configuring your clients and projects to use your Nexus repos
- Sharing with Git,Learn how to use Git to share your Xcode projects
- How to use Tower on Mac to control your local Xcode Projects
- [转载] Use Code Smith to Speed Up Your Projects ----By Shivprasad koirala
- How to consume your time in your developing and how to use a efficient way?
- Use intent and Uri to interact with your anroid device,.
- How to Reference and Use JSTL in your Web Application
- how-to-create-and-use-your-own-icon-fonts
- Free SVN Repositories to Host your Projects
- How to use your GemFile
- Zend Framework and Firebug – Log and Debug your Projects
- How to use Automake and Autoconf to manage your project? ( 1 )
- Use Orastress! to test your database
- Use SVN to manage your code
- How to use Log4net in your project
- use make_immutable to accelerate your Class Moose
- Use unique_ptr to RAII your file objects
- use nodeJs to run your server
- 听说中国最顶尖的原创安全技术都聚集在此了
- 设计模式-建造者模式
- 服务器找坑记
- 让Ubuntu的vi支持backspace
- java读取本地文件失败终极解决方案FileNotFoundException等一系列相关异常解决
- [2017-11-09] Configuring your clients and projects to use your Nexus repos
- 常用工具类、依赖、权限
- 打印日志的工具类
- Mysql雨松工具类使用
- 华容道搜索算法研究
- 远程登陆不了ubuntu上的mysql的解决办法
- Java基础——学习前的一些准备
- SSAS发布到IIS
- 快问快答 | 助教带你学习数据科学(附答疑视频领取)