泥巴麒麟的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 主配置

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

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

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 岳池县| 济南市| 鹤山市| 武陟县| 岱山县| 犍为县| 三河市| 中卫市| 浦江县| 安溪县| 达孜县| 长乐市| 宜昌市| 淮南市| 金乡县| 泸定县| 色达县| 云安县| 东乡县| 运城市| 南开区| 攀枝花市| 巩留县| 平南县| 肥西县| 财经| 高台县| 个旧市| 阿合奇县| 封开县| 芷江| 谷城县| 保定市| 新乡县| 青神县| 白银市| 嘉善县| 白水县| 庆阳市| 子洲县| 明星|