本地安装nexus私服步骤以及配置到本地maven插件中
2017-11-24 23:05
751 查看
解压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即可
进入软件文件的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 OSS私服仓库的安装和配置以及与Maven整合配置
- CentOS安装Nexus(Maven私有库)详细配置及上传本地jar到私服
- Linux安装配置maven3.0以及搭建nexus私服
- MyEclipse 配置maven项目pom.xml设置 上传项目到nexus私服,通过中转仓库下载插件,以及nexus的配置
- Linux安装配置maven以及搭建nexus私服
- Linux安装配置maven3.0以及搭建nexus私服
- Linux安装配置maven以及搭建nexus私服(编写启动脚本)
- Linux安装配置maven3.0以及搭建nexus私服
- eclipse 配置maven插件 以及nuxus 搭建本地私服仓库
- CentOS 6.6下安装Jenkins和Maven以及私服nexus的步骤
- Linux 安装配置maven3.0 以及搭建nexus私服
- Linux 安装配置maven3.0 以及搭建nexus私服
- Linux安装配置maven以及搭建nexus私服(实践记录)
- Linux安装配置maven以及搭建nexus私服
- CentOS 6.6下安装Jenkins和Maven以及私服nexus的步骤
- linux 安装配置nexus以及maven私服应用
- Nexus OSS私服仓库的安装和配置以及与Maven整合配置
- Maven私有库和本地库的安装与配置 Sonatype Nexus + Maven
- Maven安装,本地远程仓库创建以及eclipse的配置
- Windows下 maven3.0.4的安装步骤+maven配置本地仓库