• <td id="ae6ms"><li id="ae6ms"></li></td>
  • <xmp id="ae6ms"><td id="ae6ms"></td><table id="ae6ms"></table>
  • <table id="ae6ms"></table>
  • <td id="ae6ms"></td>
    <td id="ae6ms"></td>
  • <table id="ae6ms"></table><table id="ae6ms"><td id="ae6ms"></td></table>
  • <td id="ae6ms"></td>
  • <table id="ae6ms"><li id="ae6ms"></li></table>
  • <table id="ae6ms"></table>
    西西軟件園多重安全檢測下載網站、值得信賴的軟件下載站!
    西西首頁 常用軟件 軟件下載 安卓軟件 游戲下載 安卓游戲 MAC應用 驅動下載 安卓電視
    系統工具網絡工具媒體工具圖形圖像聊天工具應用軟件編程開發手機軟件安卓應用電腦安全字體素材

    maven依賴包

    • maven依賴包
    • 軟件大小:33.3M
    • 更新時間:2014-07-23 10:00
    • 軟件語言:英文
    • 軟件廠商:
    • 軟件類別:國外軟件 / 免費軟件 / 編程輔助
    • 軟件等級:4級
    • 應用平臺:WinAll, Win7
    • 官方網站:http://www.pirinnaturalssoapandspa.com
    好評:50%
    壞評:50%

    裝機必備軟件

    軟件介紹

    將依賴打入jar包,由于maven管理了所有的依賴,所以將項目的代碼和依賴打成一個包對它來說是順理成章的功能。maven的這個功能之前就用過,但這次使用時忘了細節,只記得用maven的assembly插件,但assembly插件功能強大,可以打zip、war各種包,所以一下子找不到如何將依賴打入jar包了。浪費了一點時間,所以一定要記錄一下。 
    在pom.xml中加入如下配置即可,關鍵是configuration-descriptorRefs-descriptorRef,這個就表示要將依賴打入jar包。 

    Xml代碼  

    <plugin>  

      <artifactId>maven-assembly-plugin</artifactId>  

      <configuration>  

        <descriptorRefs>  

          <descriptorRef>jar-with-dependencies</descriptorRef>  

        </descriptorRefs>  

      <archive>  

        <manifest>  

          <mainClass></mainClass>  

        </manifest>  

      </archive>  

      </configuration>  

      <executions>  

        <execution>  

          <id>make-assembly</id>  

          <phase>package</phase>  

          <goals>  

            <goal>single</goal>  

          </goals>  

       </execution>  

      </executions>  

    </plugin>  

    手動安裝Maven依賴包  

    例如要安裝這樣一個依賴到maven本地倉庫:

    1.將此依賴添加到項目的pom.xml
    <dependency>
       <groupId>com.microsoft.sqlserver</groupId>
       <artifactId>sqljdbc4</artifactId>
       <version>3.0</version>
    </dependency>


    2.在命令行中執行install命令
    mvn install:install-file -Dfile=sqljdbc4-3.0.jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=3.0 -Dpackaging=jar


    3.將sqljdbc4-3.0.jar拷貝到此依賴安裝目錄
    將sqljdbc4-3.0.jar拷貝到X:\Documents and Settings\%USER%\.m2\repository\com\microsoft\sqlserver\sqljdbc4\3.0 中即可.

    軟件標簽: maven

    軟件截圖

    maven依賴包

      其他版本下載

      熱門評論

      最新評論

      發表評論 查看所有評論(0)

      昵稱:
      表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
      字數: 0/500 (您的評論需要經過審核才能顯示)

      下載幫助下載幫助西西破解版軟件均來自互聯網, 如有侵犯您的版權, 請與我們聯系。

      TOP
      軟件下載
      女人让男人桶30分钟免费视频,女人张开腿让男人桶个爽,一进一出又大又粗爽视频
    • <td id="ae6ms"><li id="ae6ms"></li></td>
    • <xmp id="ae6ms"><td id="ae6ms"></td><table id="ae6ms"></table>
    • <table id="ae6ms"></table>
    • <td id="ae6ms"></td>
      <td id="ae6ms"></td>
    • <table id="ae6ms"></table><table id="ae6ms"><td id="ae6ms"></td></table>
    • <td id="ae6ms"></td>
    • <table id="ae6ms"><li id="ae6ms"></li></table>
    • <table id="ae6ms"></table>