泥巴麒麟的BLOG

          shenAwesome@hotmail.com 縱不能,將醉做生涯,休拘束

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            195 Posts :: 2 Stories :: 80 Comments :: 0 Trackbacks

          首先下載(我比較喜歡包形式)
          設置
          MAVEN_HOME
          JAVA_HOME
          add MAVEN_HOME/bin to your path (optional)
          資源庫的設置,可以找一個已存在的資源庫,節約下載時間。
          maven.jar中的defaults.properties
           maven.home.local = ${maven.home}/local
          maven -v 測試運行

          命令
          maven java:compile - this will compile the code and check for errors - nothing more
          maven test - this will compile the code and tests, then run all of the unit tests
          maven jar - this will build a JAR from your code, after running the tests as above
          maven site - even now, you can generate a site in target/docs and see what it will look like
          maven clean

          創建一個project
           maven genapp 生成模板
          配置文件:
          project.xml 主配置

          中文問題:
          進入maven.jar,發現org\apache\maven\messages目錄下的messages_zh_CN.properties里面直接寫了中文字符。刪掉它!就不會亂碼了。(或者用native2ascii轉換)

          posted on 2005-08-21 14:21 泥巴麒麟 閱讀(168) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 安义县| 鄱阳县| 延吉市| 宿松县| 平山县| 沈丘县| 屏边| 岳西县| 精河县| 香港| 桂阳县| 简阳市| 桃园市| 奉贤区| 磐安县| 松阳县| 克什克腾旗| 金湖县| 泽普县| 阿瓦提县| 乌鲁木齐县| 丰镇市| 湘西| 枝江市| 应用必备| 庆城县| 昆山市| 葵青区| 崇仁县| 石屏县| 于都县| 汉阴县| 拜泉县| 盐津县| 太谷县| 磐石市| 澄迈县| 马尔康县| 密云县| 怀柔区| 霍林郭勒市|