2011年2月16日
               摘要: android組件介紹  閱讀全文
          posted @ 2011-12-09 13:25 hello| 編輯 收藏
               摘要: spring @Transactional 事務(wù)屬性  閱讀全文
          posted @ 2011-10-27 18:21 hello| 編輯 收藏
               摘要: @Transactional spring 配置事務(wù)   閱讀全文
          posted @ 2011-10-27 18:06 hello| 編輯 收藏
               摘要: Spring @Transactional   閱讀全文
          posted @ 2011-10-27 18:00 hello| 編輯 收藏
               摘要: JQUERY驗(yàn)證框架  閱讀全文
          posted @ 2011-09-13 11:47 hello| 編輯 收藏
               摘要: 捕捉登出時(shí)間解決  閱讀全文
          posted @ 2011-09-01 09:06 hello| 編輯 收藏

          SpringSide是基于SSH架構(gòu)適用于企業(yè)級(jí)開(kāi)發(fā)的啟動(dòng)框架。作為業(yè)務(wù)不是特別定制化的應(yīng)用,它算是一個(gè)不錯(cuò)的起點(diǎn)。

          版本3.3.4中,quick-start負(fù)責(zé)安裝maven repository、編譯三個(gè)示例項(xiàng)目,啟動(dòng)數(shù)據(jù)庫(kù),啟動(dòng)項(xiàng)目等等。而generate-project負(fù)責(zé)生成eclipse可開(kāi)發(fā)的代碼模板。

          但如果機(jī)器上已經(jīng)裝有Maven版本,則quick-start的Step2編譯時(shí)會(huì)報(bào)錯(cuò):

          Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/c
          lassworlds/launcher/Launcher
          Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.lau
          ncher.Launcher
          ??????? at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          ??????? at java.security.AccessController.doPrivileged(Native Method)
          ??????? at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          ??????? at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          ??????? at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          ??????? at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
          Could not find the main class: org.codehaus.plexus.classworlds.launcher.Launcher

          檢查bat代碼后發(fā)現(xiàn)問(wèn)題出現(xiàn)在

          						
          call %MVN% %OFF_LINE% clean install -Dmaven . test.skip=true這一句話。

          前面MVN設(shè)置為SpringSide自帶的2.2.1版,但bin\mvn.bat中會(huì)使用系統(tǒng)的M2_HOME,而如果系統(tǒng)中安裝了其他版本的MVN,則M2_HOME會(huì)被指到其他位置,從而導(dǎo)致編譯出錯(cuò)。

          一個(gè)解決辦法是在該步之前覆蓋系統(tǒng)中的M2_HOME,在bat中MVN的設(shè)置后面添加
          set ANT_HOME=%cd%\tools\maven\apache-ant-1.8.1
          set M2_HOME=%cd%\tools\maven\apache-maven-2.2.1

          再次執(zhí)行,成功運(yùn)行。

          posted @ 2011-03-15 12:11 hello| 編輯 收藏
               摘要: 開(kāi)源免費(fèi)論壇軟件JiveJdon  閱讀全文
          posted @ 2011-03-10 16:18 hello| 編輯 收藏
               摘要: 如何成為Java高手  閱讀全文
          posted @ 2011-03-10 16:04 hello| 編輯 收藏
               摘要: 安裝maven插件失敗的解決辦法  閱讀全文
          posted @ 2011-02-16 12:13 hello| 編輯 收藏
               摘要: 坐標(biāo)規(guī)劃  閱讀全文
          posted @ 2011-02-16 12:11 hello| 編輯 收藏
               摘要: Maven中央倉(cāng)庫(kù)——你可能不知道的細(xì)節(jié)  閱讀全文
          posted @ 2011-02-16 12:11 hello| 編輯 收藏
               摘要: POM重構(gòu)之增還是刪  閱讀全文
          posted @ 2011-02-16 12:07 hello| 編輯 收藏
               摘要: 多模塊項(xiàng)目的POM重構(gòu)  閱讀全文
          posted @ 2011-02-16 12:06 hello| 編輯 收藏
               摘要: 基于Maven的持續(xù)集成實(shí)踐  閱讀全文
          posted @ 2011-02-16 12:04 hello| 編輯 收藏
          主站蜘蛛池模板: 河池市| 金门县| 康保县| 凤山县| 泸西县| 毕节市| 泰顺县| 高清| 曲阜市| 墨玉县| 嘉荫县| 蒙阴县| 八宿县| 定兴县| 弋阳县| 湘乡市| 荔波县| 达尔| 额敏县| 泗洪县| 正镶白旗| 丰县| 永新县| 德惠市| 西贡区| 尖扎县| 萨迦县| 德庆县| 肥西县| 喀什市| 花垣县| 冀州市| 灵川县| 宁夏| 林芝县| 鄂托克前旗| 保山市| 德兴市| 合江县| 黄龙县| 金昌市|