国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

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

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

開(kāi)通VIP
Maven使用nexus配置,SNAPSHOT版本介紹及發(fā)布jar到nexus
Maven Setting.xml配置
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">  
  3. <!-- 本地倉(cāng)庫(kù)配置 -->  
  4. <localRepository>D:\java\mavenRepos</localRepository>  
  5. <pluginGroups>  
  6. </pluginGroups>  
  7. <proxies>  
  8. </proxies>  
  9. <!-- 服務(wù)用戶配置 -->  
  10. <servers>  
  11. <server>  
  12. <id>releases</id>  
  13. <username>deployment</username>  
  14. <password>cykj</password>  
  15. </server>  
  16. <server>  
  17. <id>snapshots</id>  
  18. <username>deployment</username>  
  19. <password>cykj</password>  
  20. </server>  
  21. </servers>  
  22. <!-- 鏡像配置 -->  
  23. <mirrors>  
  24. <!-- 對(duì)snapshots版本有效 -->  
  25. <mirror>  
  26. <id>nexusSnapashots</id>  
  27. <url>http://192.168.2.18:8081/nexus/content/groups/public/</url>  
  28. <mirrorOf>public-snapshots</mirrorOf>  
  29. <interval>always</interval>  
  30. </mirror>  
  31. <mirror>  
  32. <id>nexusMirror</id>  
  33. <name>local repos</name>  
  34. <url>http://192.168.2.18:8081/nexus/content/groups/public/</url>  
  35. <mirrorOf>*</mirrorOf>  
  36. </mirror>  
  37. </mirrors>  
  38. <!-- 條件配置 -->  
  39. <profiles>  
  40. <profile>  
  41. <id>nexusRepository</id>  
  42. <!-- jar包倉(cāng)庫(kù)配置 -->  
  43. <repositories>  
  44. <repository>  
  45. <id>nexusSnapashots</id>  
  46. <name>nexus-snapshots</name>  
  47. <url>http://192.168.2.18:8081/nexus/content/groups/public/</url>  
  48. <releases>  
  49. <enabled>false</enabled>  
  50. </releases>  
  51. <snapshots>  
  52. <enabled>true</enabled>  
  53. </snapshots>  
  54. <layout>default</layout>  
  55. <snapshotPolicy>always</snapshotPolicy>  
  56. </repository>  
  57. <repository>  
  58. <id>nexusMirror</id>  
  59. <name>nexus-snapshots</name>  
  60. <url>http://192.168.2.18:8081/nexus/content/groups/public/</url>  
  61. <releases>  
  62. <enabled>true</enabled>  
  63. </releases>  
  64. <snapshots>  
  65. <enabled>false</enabled>  
  66. </snapshots>  
  67. <layout>default</layout>  
  68. <snapshotPolicy>always</snapshotPolicy>  
  69. </repository>  
  70. </repositories>  
  71. <!-- 插件倉(cāng)庫(kù)配置 -->  
  72. <pluginRepositories>  
  73. <pluginRepository>  
  74. <id>nexusMirror</id>  
  75. <name>nexus mirror</name>  
  76. <url>http://192.168.2.18:8081/nexus/content/groups/public/</url>  
  77. <releases>  
  78. <enabled>true</enabled>  
  79. </releases>  
  80. <snapshots>  
  81. <enabled>false</enabled>  
  82. <updatePolicy>always</updatePolicy>  
  83. <checksumPolicy>warn</checksumPolicy>    
  84. </snapshots>  
  85. </pluginRepository>  
  86. </pluginRepositories>  
  87. </profile>  
  88. </profiles>  
  89. <!-- 激活profile -->  
  90. <activeProfiles>  
  91. <activeProfile>nexusRepository</activeProfile>  
  92. </activeProfiles>  
  93. </settings>  

關(guān)于發(fā)布到nexus倉(cāng)庫(kù)中,使用mvn deploy命令

eclipse中配置run configuration中加入deploy參數(shù),如圖


發(fā)布項(xiàng)目到nexus上在pom.xml中加入

  1. <distributionManagement>  
  2.         <repository>  
  3.             <id>releases</id>  
  4.             <name>Nexus Releases Repository</name>  
  5.             <url>http://192.168.2.18:8081/nexus/content/repositories/releases/</url>  
  6.         </repository>  
  7.         <snapshotRepository>  
  8.             <id>snapshots</id>  
  9.             <name>Nexus Snapshots Repository</name>  
  10.             <uniqueVersion>false</uniqueVersion>  
  11.             <layout>legacy</layout>  
  12.             <url>http://192.168.2.18:8081/nexus/content/repositories/snapshots/</url>  
  13.         </snapshotRepository>  
  14.     </distributionManagement>  
注意id與setting中server的id保持一致
server中配置的用戶名密碼為nexus中的用戶id和密碼,注意是id不是name,否則報(bào)錯(cuò),當(dāng)時(shí)也是被坑了個(gè)first blood出來(lái)..

關(guān)于SNAPSHOT版本簡(jiǎn)單介紹一下

如pom.xml中配置<version>1.0.0-SNAPSHOT</version>

表示快照版本,版本雖為1.0.0,但是每次都會(huì)使用最新的版本,參考nexus倉(cāng)庫(kù)截圖,每次提交都會(huì)產(chǎn)生不同的版本號(hào)


關(guān)于發(fā)布到nexus倉(cāng)庫(kù)中,使用mvn deploy命令

eclipse中配置run configuration中加入deploy參數(shù),如圖

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
使用MyEclipse構(gòu)建MAVEN項(xiàng)目
用nexus搭建自己的maven私有倉(cāng)庫(kù)
關(guān)于Maven
我的Maven之旅(5)-建立你自己的本地倉(cāng)庫(kù)(Maven倉(cāng)庫(kù)管理-Nexus)
Maven2中snapshot快照庫(kù)的使用 | 鐵木箱子
Maven多項(xiàng)目依賴配置
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服