乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      上傳jar包到nexus私服

       時間要去哪 2014-11-18

      摘要 通過網(wǎng)頁和maven兩種方式,上傳本地的jar到nexus私服,以及引用jar時,自動引用依賴

      1通過網(wǎng)頁上傳

      這種方法只是上傳了jar包。通過maven引用當(dāng)前jar,不能取得jar的依賴


      from pom的方式,選擇pom文件,以及jar。通過maven引入jar時,會自動加載jar的依賴


      2通過maven的方式depoly

      maven的conf/setting.xml 配置nexus私服的管理賬號

      在servers標(biāo)簽下添加server

      1
      2
      3
      4
      5
         <server>
            <id>nexus-snapshots</id>
            <username>repouser</username>
            <password>repopwd</password>
          </server>

      id可自己定義一個名稱  以及私服的管理管的賬號密碼

      在mirrors和profiles下配置nexus私服

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28
      29
      30
      31
      32
      33
      34
      35
      36
      37
      38
      39
      <mirrors>
          <mirror>
            <!--This sends everything else to /public -->
            <id>nexus</id>
            <mirrorOf>*</mirrorOf>
            <url>http://192.168.10.8:18080/nexus/content/repositories/releases/</url>
          </mirror>
        </mirrors>
        <profiles>
          <profile>
            <id>nexus</id>
            <!--Enable snapshots for the built in central repo to direct -->
            <!--all requests to nexus via the mirror -->
            <repositories
              <repository
                  <id>nexus</id
                  <name>local private nexus</name
                  <url>http://192.168.10.8:18080/nexus/content/groups/public</url
                  <releases><enabled>true</enabled><updatePolicy>always</updatePolicy>
                  <checksumPolicy>warn</checksumPolicy></releases
                  <snapshots><enabled>false</enabled></snapshots
              </repository>        
            </repositories
            <pluginRepositories
              <pluginRepository
                  <id>nexus</id
                  <name>local private nexus</name
                  <url>http://192.168.10.8:18080/nexus/content/groups/public</url
                  <releases><enabled>true</enabled><updatePolicy>always</updatePolicy>
                  <checksumPolicy>warn</checksumPolicy></releases
                  <snapshots><enabled>false</enabled></snapshots
              </pluginRepository>        
             </pluginRepositories
          </profile>
        </profiles>
        <activeProfiles>
          <!--make the profile active all the time -->
          <activeProfile>nexus</activeProfile>
        </activeProfiles>

      在項目的pom.xml中配置

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
       <distributionManagement>
              <repository>
                  <id>nexus-releases</id>
                  <name>Nexus Release Repository</name>
                  <url>http://192.168.10.8:18080/nexus/content/repositories/releases/</url>
              </repository>
              <snapshotRepository>
                  <id>nexus-snapshots</id>
                  <name>Nexus Snapshot Repository</name>
                  <url>http://192.168.10.8:18080/nexus/content/repositories/snapshots/</url>
              </snapshotRepository>
          </distributionManagement>

      id與settings.xml中的server的id對應(yīng)


      當(dāng)項目package后

      1
      mvn deploy

      就可以將jar上傳到nexus私服

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多