欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
【Maven】Nexus配置和使用

Nexus安裝

  nexus安裝,可以參照:【Maven】Nexus(Maven倉庫私服)下載與安裝

Nexus簡(jiǎn)單說(shuō)明

  •  用途:指定私服的中央地址、將自己的Maven項目指定到私服地址、從私服下載中央庫的項目索引、從私服倉庫下載依賴(lài)組件、將第三方項目jar上傳到私服供其他項目組使用
  •    倉庫:

      hosted   類(lèi)型的倉庫,內部項目的發(fā)布倉庫 

      releases 內部的模塊中release模塊的發(fā)布倉庫

      snapshots 發(fā)布內部的SNAPSHOT模塊的倉庫  

      3rd party 第三方依賴(lài)的倉庫,這個(gè)數據通常是由內部人員自行下載之后發(fā)布上去 

      proxy   類(lèi)型的倉庫,從遠程中央倉庫中尋找數據的倉庫

      group   類(lèi)型的倉庫,組倉庫用來(lái)方便我們開(kāi)發(fā)人員進(jìn)行設置的倉庫

      

Nexus配置

  nexus配置大部分使用默認配置即可,主要是配置一個(gè)項目索引

  選擇Central倉庫,設置Download Remote Indexes:True

  

Nexus使用

  •   項目使用nexus私服的jar包,在項目的pom.xml文件中指定私服倉庫
     1 <repositories> 2     <repository> 3         <id>nexus</id> 4         <name>nexus</name> 5         <url>http://192.168.1.103:8081/nexus/content/groups/public/</url> 6         <releases> 7             <enabled>true</enabled> 8         </releases> 9         <snapshots>10             <enabled>true</enabled>11         </snapshots>12     </repository>13 </repositories>

     

  •   項目使用nexus私服的插件,在項目的pom.xml文件中指定插件倉庫
     1 <pluginRepositories> 2     <pluginRepository> 3         <id>nexus</id> 4         <name>nexus</name> 5         <url>http://192.168.1.103:8081/nexus/content/groups/public/</url> 6         <releases> 7             <enabled>true</enabled> 8         </releases> 9         <snapshots>10             <enabled>true</enabled>11         </snapshots>12     </pluginRepository>13 </pluginRepositories>

     

  •   如果想本機所有的maven項目都使用私服的組件,可以在maven的設置文件settings.xml中添加屬性,并激活
     1 <profiles> 2     <profile> 3         <id>nexusProfile</id> 4         <repositories> 5             <repository> 6                 <id>nexus</id> 7                 <name>nexus</name> 8                 <url>http://192.168.1.103:8081/nexus/content/groups/public/</url> 9                 <releases>10                     <enabled>true</enabled>11                 </releases>12                 <snapshots>13                     <enabled>true</enabled>14                 </snapshots>15             </repository>16         </repositories>17     </profile>18 </profiles>19 <!-- 激活 -->20 <activeProfiles>21     <activeProfile>nexusProfile</activeProfile>22 </activeProfiles>

     

  •  項目發(fā)布到私服,maven項目使用命令:mvn clean deploy;需要在pom文件中配置一下代碼;
     1 <distributionManagement> 2         <repository> 3             <id>user-release</id> 4             <name>User Project Release</name> 5             <url>http://192.168.1.103:8081/nexus/content/repositories/releases/</url> 6         </repository> 7  8         <snapshotRepository> 9             <id>user-snapshots</id>10             <name>User Project SNAPSHOTS</name>11             <url>http://192.168.1.103:8081/nexus/content/repositories/snapshots/</url>12         </snapshotRepository>13     </distributionManagement>

    注意還需要配置mvn發(fā)布的權限,否則會(huì )報401錯誤,在settings.xml中配置權限,其中id要與pom文件中的id一致

     1 <server> 2     <id>user-release</id> 3     <username>admin</username> 4     <password>admin123</password> 5 </server> 6 <server> 7     <id>user-snapshots</id> 8     <username>admin</username> 9     <password>admin123</password>10 </server>

    發(fā)布成功后,可以在nexus中看到

    

  •   上傳第三方的jar包,選擇3rd party-->Artifact Upload--> 選擇GAV方式-->填好構建參數-->增加jar包-->上傳,在Browse Storeage查看

   

   

 

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
用nexus搭建自己的maven私有倉庫
Maven發(fā)布項目 (jar包) 到Nexus私服中
Nexus搭建Maven私服(二) 分發(fā)構件至遠程倉庫
Nexus-在項目中使用Maven私服,Deploy到私服、上傳第三方j(luò )ar包、在項目中使用私服jar包
Java技術(shù)學(xué)習筆記:Maven安裝和作用
上傳jar包到nexus私服
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久