本地安装nexus私服步骤以及配置到本地maven插件中
来源:互联网 发布:迅捷路由器绑定mac干嘛 编辑:程序博客网 时间:2024/05/23 17:11
解压nexus的相关压缩文件: nexus-2.12.0-01-bundle.zip
进入软件文件的conf文件夹下的nexus.properties:
软件端口是8081,访问地址是http://localhost:8081/nexus,默认登录账户是admin密码是admin123,仓库分为4类7种
要想使用私服的jar包就要配置本地的maven插件setting.xml文件
这个是要访问私服的账户密码设置
要从私服下载的话,还要配置:
<profile>
<!--profile的id-->
<id>dev</id>
<repositories>
<repository>
<!--仓库id,repositories可以配置多个仓库,保证id不重复-->
<id>nexus</id>
<!--仓库地址,即nexus仓库组的地址-->
<url>http://localhost:8081/nexus/content/groups/public/</url>
<!--是否下载releases构件-->
<releases>
<enabled>true</enabled>
</releases>
<!--是否下载snapshots构件-->
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<!-- 插件仓库,maven的运行依赖插件,也需要从私服下载插件-->
<pluginRepository>
<!-- 插件仓库的id不允许重复,如果重复后边配置会覆盖前边 -->
<id>public</id>
<name>Public Repositories</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
</profile>
同时也要激活这个id为dev的profile
<activeProfiles>
<activeProfile>dev</activeProfile>
</activeProfiles>
想要上传哪一个模块就要在哪一个模块的pom.xml文件中指定上传的地址:
<!--指定jar包上传地址 -->
<distributionManagement>
<repository>
<id>releases</id>
<url>http://localhost:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
想上传哪一个项目模块的jar包就右键点击这个项目模块,runas选择mavenbuild…输入上传指令deploy即可
- 本地安装nexus私服步骤以及配置到本地maven插件中
- maven 安装本地包到nexus服务器
- Maven本地仓库nexus的安装配置
- nexus本地私服对应的maven一些配置问题
- nexus maven 本地仓库配置
- maven安装以及 maven本地仓库配置
- apache-maven-3.2.3的安装步骤+maven配置本地仓库+Eclipse中配置maven
- eclipse 配置maven插件 以及nuxus 搭建本地私服仓库
- Maven私服--Nexus的本地xml配置
- maven配置nexus的本地库
- linux中安装配置nexus以及maven的安装配置
- maven-nexus中添加本地仓库
- 【图解】Windows下 apache-maven-3.2.3的安装步骤+maven配置本地仓库+Eclipse中配置maven
- maven3.0.4的安装步骤+maven配置本地仓库
- maven安装本地jar到本地仓库
- Maven 私有库和本地的安装与配置 Sonatype Nexus + Maven
- 持续集成--Maven私有库和本地库的安装与配置 Sonatype Nexus + Maven
- Maven私有库和本地库的安装与配置 Sonatype Nexus + Maven
- Codeforces Educational Codeforces Round 33 C 893CRumor(并查集)
- java选择判断语句(switch)
- 下标引用、函数调用、结构体操作符
- [Hihocoder week177]Full Binary Tree Picture
- ubuntu软件包系统已损坏
- 本地安装nexus私服步骤以及配置到本地maven插件中
- spark 两个rdd求交集,差集,并集
- java list集合去重复
- Java EE从零开始-0001 Hello World !
- Linux学习内容总结2017/11/19(linux文本编辑器及基本进程管理)
- 我喜欢上你时的内心活动
- 使用MATLAB中的HDL coder工具箱,对一个线性调频信号进行FIR滤波,最终在FPGA上实现
- 【Java】关于文件
- 粒子物理后传之:构建流计算拓扑[大结局]