泥巴麒麟的BLOG

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

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            195 Posts :: 2 Stories :: 80 Comments :: 0 Trackbacks

          首先下載(我比較喜歡包形式)
          設(shè)置
          MAVEN_HOME
          JAVA_HOME
          add MAVEN_HOME/bin to your path (optional)
          資源庫的設(shè)置,可以找一個已存在的資源庫,節(jié)約下載時間。
          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

          創(chuàng)建一個project
           maven genapp 生成模板
          配置文件:
          project.xml 主配置

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

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

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


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 共和县| 霍山县| 昌乐县| 新沂市| 仙桃市| 巴彦淖尔市| 东光县| 乐清市| 城步| 保山市| 加查县| 望城县| 雷波县| 蓬莱市| 巴马| 德安县| 宣威市| 柘荣县| 山阳县| 乌审旗| 涟源市| 石泉县| 梅河口市| 江门市| 古浪县| 任丘市| 东辽县| 磐安县| 辉县市| 胶南市| 湖州市| 邵阳市| 樟树市| 来安县| 松阳县| 喀喇| 南丹县| 始兴县| 怀仁县| 饶阳县| 连南|