Nexus for linux安装
安裝Nexus
下載安裝包
https://www.sonatype.com/download-oss-sonatype
解壓縮文件
解壓縮文件后生成兩個目錄。
nexus-3.5.1-02 該目錄包含 nexus的運行文件、依賴包等文件。
sonatype-work 該目錄包含 nexus生成的配置文件、倉庫文件。
啟動
./nexus start
驗證
http://localhost:8081
Nexus默認的管理員用戶名和密碼是admin/admin123
在項目中使用
在單個項目中使用
<!-- Nexus私服 -->
<repositories>
<repository>
<id>nexus</id>
<name>Nexus</name>
<url>http://10.0.0.100:8081/repository/maven-public/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>Nexus</name>
<url>http://10.0.0.100:8081/repository/maven-public/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
應用于所有項目
<!--配置鏡像-->
<mirror> ?
? ? <id>nexus</id> ?
? ? <mirrorOf>*</mirrorOf> ?
? ? <url>http://10.0.0.100:8081/repository/maven-public/</url>?
</mirror>?
總結
以上是生活随笔為你收集整理的Nexus for linux安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Google ARCore SDK
- 下一篇: 秒懂5G!通俗易懂外行也能看明白