maven項目打包傳入私服 nexus

  • 配置pom 文件
	<!-- 部署 -->
	<distributionManagement>
		<repository>
		 <!-- nexus服務器中用戶名:在settings.xml中<server>的id-->
			<id>hckj-thirdpart</id>
			<!-- 這個名稱自己定義 -->
			<name>Nexus thirdpart Repository</name>
			<!--私服地址-->
			<url>http://localhost:8300/repository/hckj-thirdpart/</url>
		</repository>
	</distributionManagement>

nexus服務器中用戶名: 中的 對應在settings.xml中的

  • maven setting.xml 配置
<servers>
	<server>
         <id>hckj-thirdpart</id>
         <username>hckjdev</username>
         <password>hckj@831903</password>
    </server>
 </servers>
  • 打包上傳
    在這裏插入圖片描述
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章