nexus 搭建私服简单步骤
来源:互联网 发布:数字监控要网络吗 编辑:程序博客网 时间:2024/06/05 21:12
1. 下载nexus:http://www.sonatype.org/nexus/go, 我下载的是nexus-2.12.1-01-bundle.zip
2. 解压缩包到本地,包含两个文件夹:nexus-2.12.1-01, sonatype-work
3. 进入文件夹:nexus-2.12.1-01\bin\jsw\windows-x86-64, 启动nexus
C:\software\apache-maven-3.3.9\nexus-2.12.1-01\bin\jsw\windows-x86-64>console-nexus
4. open site: http://localhost:8081/nexus/
5. login with: admin/admin123
6. set true to 'download remote indexes'
- 7 method 1
7.1. modify project pom.xml
<repositories><repository>
<id>nexus</id>
<name>Team Nexus Repository</name>
<url>http://localhost:8081/nexus/content/groups/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>Team Nexus Repository</name>
<url>http://localhost:8081/nexus/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
7.2. execute command:
C:\software\apache-maven-3.3.9\lyrepo\my-webapp>mvn compile
will retrieve the jars from http://localhost:8081/nexus
- 8. method 2: using mirror
8.1 set settings.xml
<mirror><id>my-org-repo</id>
<name>Repository in My Orgnization</name>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
8.2. execute command:
C:\software\apache-maven-3.3.9\lyrepo\my-webapp>mvn compile
will retrieve the jars from http://localhost:8081/nexus
0 0
- nexus 搭建私服简单步骤
- Nexus 私服搭建
- Nexus搭建私服
- nexus私服搭建
- Nexus私服搭建
- nexus私服搭建
- nexus 搭建私服
- 利用Nexus搭建私服
- Nexus私服搭建_01
- Maven+Nexus私服搭建
- Nexus私服搭建_02
- maven搭建私服nexus
- Maven Nexus私服搭建
- maven nexus 搭建私服
- maven nexus私服搭建
- maven nexus私服搭建
- Maven+Nexus私服搭建
- 1.nexus 私服搭建
- android 各种常用默认设置项的参考【1】
- The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory的异常的原因及解决办法
- 剑指offer-面试题40:数组中只出现一次的数字
- android 神奇的android:clipChildren属性
- IntelliJ IDEA 常用快捷键
- nexus 搭建私服简单步骤
- SQLite和Berkeley DB(BDB)比较资料收集
- 纪念一下我的短暂的ios时光
- HTML基础
- java基础(四),数据类型转化,Date,Calendar
- navicat的创建数据库查询 unkonwdatabase
- 任意多边形的面积计算
- 关于plist文件和NSBundle之间关系的一点心得
- 检验邮箱格式,NSUserDefaults