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

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

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

開(kāi)通VIP
關(guān)于nexus

我對比了一些maven的私服以后,感覺(jué)nexus最好使,把搭建的過(guò)程步驟一下吧,我的環(huán)境是cent5, tomcat 6
1、下載war包,部署到tomcat中,啟動(dòng)tomcat;
2、訪(fǎng)問(wèn):http://xxx/nexus-1.1.1/index.html;
3、用admin/admin123登錄;
4、修改admin的密碼,但是不要修改別的屬性和修改別的用戶(hù)信息
5、進(jìn)入administration中的repositories,依次修改三個(gè)type是proxy的項目,將其Download Remote Indexes修改為true;然后郵件他們,分別re-index一下;Nexus中有三個(gè)重要的代理倉庫,分別是中央倉庫,Apache倉庫,Codehau倉庫,他們的每一個(gè)倉庫都包含了數千或者數萬(wàn)的構件,不可能下載所有構件,而是保存了一個(gè)索引,以提供快速和有效的搜索。
6、將你自己機器上的manven緩存(一般是在C:\Documents and Settings\登錄名\.m2下面)全部拷貝到/home/你的用戶(hù)名/sonatype-work/nexus/storage下面的central和releases各一份;
7、修改你本地的(一般是在C:\Documents and Settings\登錄名\.m2下面)setting.xml文件改成下面的:

Xml代碼 

1. <settings>  

2.       <proxies>  

3.         <proxy>  

4.           <id>normal</id>  

5.           <active>true</active>  

6.           <protocol>http</protocol>  

7.           <username>deployment</username>  

8.           <password>deploy</password>  

9.           <host>172.19.0.177:8080/nexus-1.1.1</host>  

10.           <port>80</port>  

11.           <nonProxyHosts>172.19.0.177:8080/nexus-1.1.1</nonProxyHosts>  

12.         </proxy>  

13.       </proxies>  

14.       <servers>  

15.       </servers>  

16.       <mirrors>  

17.          <mirror>  

18.           <id>nexus-public-snapshots</id>  

19.           <mirrorOf>public-snapshots</mirrorOf>  

20.           <url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public-snapshots</url>  

21.         </mirror>  

22.         <mirror>  

23.           <!--This sends everything else to /public -->  

24.           <id>nexus</id>  

25.           <mirrorOf>*</mirrorOf>  

26.           <url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public</url>  

27.         </mirror>  

28.       </mirrors>  

29.       <profiles>  

30.         <profile>  

31.           <id>development</id>  

32.           <repositories>  

33.             <repository>  

34.               <id>central</id>  

35.               <url>http://central</url>  

36.               <releases><enabled>true</enabled></releases>  

37.               <snapshots><enabled>true</enabled></snapshots>  

38.             </repository>  

39.           </repositories>  

40.          <pluginRepositories>  

41.             <pluginRepository>  

42.               <id>central</id>  

43.               <url>http://central</url>  

44.               <releases><enabled>true</enabled></releases>  

45.               <snapshots><enabled>true</enabled></snapshots>  

46.             </pluginRepository>  

47.           </pluginRepositories>  

48.         </profile>  

49.         <profile>  

50.           <id>public-snapshots</id>  

51.           <repositories>  

52.             <repository>  

53.               <id>public-snapshots</id>  

54.               <url>http://public-snapshots</url>  

55.               <releases><enabled>false</enabled></releases>  

56.               <snapshots><enabled>true</enabled></snapshots>  

57.             </repository>  

58.           </repositories>  

59.          <pluginRepositories>  

60.             <pluginRepository>  

61.               <id>public-snapshots</id>  

62.               <url>http://public-snapshots</url>  

63.               <releases><enabled>false</enabled></releases>  

64.               <snapshots><enabled>true</enabled></snapshots>  

65.             </pluginRepository>  

66.           </pluginRepositories>  

67.         </profile>  

68.       </profiles>  

69.         <activeProfiles>  

70.         <activeProfile>development</activeProfile>  

71.       </activeProfiles>  

72. </settings>  

<settings>

      <proxies>

        <proxy>

          <id>normal</id>

          <active>true</active>

          <protocol>http</protocol>

          <username>deployment</username>

          <password>deploy</password>

          <host>172.19.0.177:8080/nexus-1.1.1</host>

          <port>80</port>

          <nonProxyHosts>172.19.0.177:8080/nexus-1.1.1</nonProxyHosts>

        </proxy>

      </proxies>

      <servers>

      </servers>

      <mirrors>

         <mirror>

          <id>nexus-public-snapshots</id>

          <mirrorOf>public-snapshots</mirrorOf>

          <url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public-snapshots</url>

        </mirror>

        <mirror>

          <!--This sends everything else to /public -->

          <id>nexus</id>

          <mirrorOf>*</mirrorOf>

          <url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public</url>

        </mirror>

      </mirrors>

      <profiles>

        <profile>

          <id>development</id>

          <repositories>

            <repository>

              <id>central</id>

              <url>http://central</url>

              <releases><enabled>true</enabled></releases>

              <snapshots><enabled>true</enabled></snapshots>

            </repository>

          </repositories>

         <pluginRepositories>

            <pluginRepository>

              <id>central</id>

              <url>http://central</url>

              <releases><enabled>true</enabled></releases>

              <snapshots><enabled>true</enabled></snapshots>

            </pluginRepository>

          </pluginRepositories>

        </profile>

        <profile>

          <id>public-snapshots</id>

          <repositories>

            <repository>

              <id>public-snapshots</id>

              <url>http://public-snapshots</url>

              <releases><enabled>false</enabled></releases>

              <snapshots><enabled>true</enabled></snapshots>

            </repository>

          </repositories>

         <pluginRepositories>

            <pluginRepository>

              <id>public-snapshots</id>

              <url>http://public-snapshots</url>

              <releases><enabled>false</enabled></releases>

              <snapshots><enabled>true</enabled></snapshots>

            </pluginRepository>

          </pluginRepositories>

        </profile>

      </profiles>

        <activeProfiles>

        <activeProfile>development</activeProfile>

      </activeProfiles>

</settings>

  

    將172.19.0.177地址修改為你自己的服務(wù)器地址
    
8、在你的項目中的pom.xml中增加一段:

Xml代碼 

1. <distributionManagement>  

2.         <repository>  

3.             <id>repo</id>  

4.             <name>public</name>  

5.             <url>http://172.19.0.177:8080/nexus-1.1.1/content/repositories/releases</url>  

6.         </repository>  

7.         <snapshotRepository>  

8.             <id>Snapshots</id>  

9.             <name>Snapshots</name>  

10.             <url>http://172.19.0.177:8080/nexus-1.1.1/content/repositories/snapshots</url>  

11.         </snapshotRepository>  

12.     </distributionManagement>  


這樣一來(lái)經(jīng)過(guò)我的測試,如果你在沒(méi)有局域網(wǎng)的環(huán)境中(也就是沒(méi)辦法訪(fǎng)問(wèn)你的私服),只要將pom里面的那段刪除就可以了。

(這里默認是部署到realease下,我們可以部署到不同的部署倉庫,特別是不同的部門(mén)之間

有時(shí)候會(huì )出現401錯誤,那是因為默認是使用deployment賬號登錄,realease它的默認的Deployment Policy是“Disable Redeploy”,所以無(wú)法部署的問(wèn)題在這個(gè)地方,該過(guò)來(lái):

不過(guò)這樣就變得誰(shuí)都可以部署了,所以還需要設置deployment的密碼:

然后再setting中加上密碼:

 <server>

      <id>nexus-releases</id>

      <username>deployment</username>

      <password>deploydv89</password>

    </server>

  

    <server>

      <id>nexus-snapshots</id>

      <username>deployment</username>

      <password>deploydv89</password>

   </server>

注意,pom中的id要和這里的id一致。(這里的密碼還可以用其他方法加密)

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
私服相關(guān)配置
Sonatype Nexus 搭建Maven 私服
hadoop2.4 WARN util.NativeCodeLoader: Unable to load native
上傳jar包到nexus私服
【Maven】Nexus配置和使用
不聯(lián)網(wǎng)的情況下使用maven
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

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