jinfeng_wang

          G-G-S,D-D-U!

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks

          1、下載并解壓zip到你自己指定的目錄
          2
          、檢查是否設定了JAVA_HOME,然后設定MAVEN_HOME為安裝目錄和Path=%MAVEN_HOME%\bin
          3
          、將lib\maven.jar 解壓縮,修改其中的default.properties文件中的幾個屬性。
            
             maven.home.local = d:/maven
             maven.repo.local = d:/maven/repository
            
             ## ----------------------------------------------------------
             ## ${user.home}/build.properties
             ## ----------------------------------------------------------
             maven.proxy.host = proxy
             maven.proxy.port = 80
             maven.proxy.username = username
             maven.proxy.password = password
          4
          maven使用時會出現亂碼,這是由于maven.jarorg\apache\maven\messages\messages_zh_CN.properties這個文件的毛病。
             native2ascii
          進行轉換,然后重新覆蓋此文件即可。
            

           

          5、運行maven命令,即可生成一系列的文件

           

          6、運行maven genapp 即可生成測試文件,自動下載文件,然后就可以 maven java:compile了。

          7.  default.properties中遠程repository重新設置: maven.repo.remote = http://apache.linuxforum.net/dist/java-repository,http://dist.codehaus.org/,http://mirrors.sunsite.dk/maven/,http://public.planetmirror.com/pub/maven,http://www.ibiblio.org/maven,http://www.ganet.org/maven/,http://test.topicus.nl/maven/

           

          maven tutorial :  

           http://www-900.ibm.com/developerWorks/cn/java/j-maven/

           http://www.theserverside.com/articles/article.tss?l=MavenMagic

                使用中如果有問題,可以參考下面文章. :)  http://java.mblogger.cn/layout/posts/5731.aspx

             但我下載的源代碼和原文"Figure 3 "的目錄結構不一致, 只有三個目錄:service, Foobar-Web,ear. 執行結果不正確.

          我分別在這三個目錄下,分別執行maven, 前兩個已經完成,但是在ear目錄下執行maven命令,則報錯如下:
          "Case-sensitive issue: The dependency xerces:xerces has a case problem. The dependency was either retrieved in the past with the wrong case or has been specified with the wrong case in your project.xml file. Fix your project.xml or update your local repository with the properly-cased file and try again."

          讓人郁悶的是, 我把repository里面的xerces目錄刪除,還是只可以完成前兩步,第三步報同一個錯誤.

          我將每個depencyproperties元素刪除,就可以了 sucessful :(

          可以請教一下么?   

           

          posted on 2005-02-16 16:03 jinfeng_wang 閱讀(2173) 評論(1)  編輯  收藏 所屬分類: maven

          評論

          # re: maven的tutorial 2005-03-10 14:57 jinfeng_wang
          Case-sensitive issue問題解決,更新下載maven-ear-plugin-1.6.1.jar到maven\plugin目錄中,并刪除maven\cache,重新在maven目錄運行maven命令。  回復  更多評論
            

          主站蜘蛛池模板: 社旗县| 丹江口市| 淳化县| 海阳市| 洪泽县| 奈曼旗| 乌鲁木齐县| 乌恰县| 信丰县| 山阳县| 阿巴嘎旗| 晴隆县| 玛纳斯县| 博爱县| 许昌县| 临沂市| 扬州市| 岢岚县| 涞源县| 洛川县| 阆中市| 赣州市| 阿巴嘎旗| 安乡县| 泰州市| 正定县| 塔城市| 定安县| 桂平市| 临清市| 浙江省| 万山特区| 合江县| 萨迦县| 通州市| 旺苍县| 甘谷县| 陵水| 高碑店市| 修武县| 宜黄县|