隨筆 - 55  文章 - 187  trackbacks - 0
          <2008年2月>
          272829303112
          3456789
          10111213141516
          17181920212223
          2425262728291
          2345678

          常用鏈接

          留言簿(12)

          隨筆分類

          隨筆檔案

          groovy

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          假設要添加庫文件richfaces-ui-3.1.3.GA.jar
          1、為庫richfaces-ui-3.1.3.GA.jar文件建立pom文件richfaces-ui-3.1.3.GA.pom
          <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
           <modelVersion>4.0.0</modelVersion>
           <groupId>org.richfaces</groupId>
           <artifactId>richfaces-ui</artifactId>
           <version>3.1.3.GA</version>
           <name>RichFaces JSF components library</name>
           <packaging>jar</packaging>
          </project>
          2、用ant為jar和pom文件分別生成校驗文件.sha1
          <project default="main">
           <target name="main" description="Generate checksum file for jar and pom">  
                 <checksum algorithm="SHA" fileext=".sha1">  
                     <fileset dir="F:/software/java/richfaces-ui-3.1.3.GA/lib" id="id">   
                        <include name="**/*.pom" />  
                        <include name="**/*.jar" />  
                        <include name="**/*.xml" />  
                        <exclude name="**/*.sh1" />  
                     </fileset>  
                 </checksum>  
           </target>
          </project>
          3、在.m2目錄中創建該庫文件的代碼庫目錄.m2\repository\org\richfaces\richfaces-ui\3.1.3.GA
          其中,org\richfaces為包路徑,richfaces-ui為包名,3.1.3.GA為版本,這三項是與pom文件中的groupId,artifactId,version分別對應的。
          richfaces-ui-3.1.3.GA.jar,richfaces-ui-3.1.3.GA.jar.sha1,richfaces-ui-3.1.3.GA.pom,richfaces-ui-3.1.3.GA.pom.sha1拷貝到該目錄下。
          4、在工程的pom文件中添加依賴
          <dependency>
           <groupId>org.richfaces</groupId>
           <artifactId>richfaces-ui</artifactId>
           <version>3.1.3.GA</version>
          </dependency>

          --------------------

              WE準高手
          posted on 2008-02-12 15:07 大衛 閱讀(1456) 評論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 阳东县| 南安市| 冕宁县| 黄平县| 鱼台县| 德令哈市| 土默特右旗| 井研县| 定远县| 全椒县| 彩票| 九龙县| 龙州县| 嘉禾县| 铁岭市| 会理县| 丹阳市| 荆州市| 旬邑县| 泗水县| 麻栗坡县| 夏邑县| 伊吾县| 宣城市| 阳朔县| 泸西县| 沙田区| 滦南县| 浮山县| 新乡市| 嘉鱼县| 渑池县| 肇庆市| 百色市| 望谟县| 瑞金市| 广安市| 正阳县| 莆田市| 乌鲁木齐县| 丰镇市|