锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久亚洲AV无码精品色午夜 ,国产亚洲精品成人久久网站,亚洲AV无码专区亚洲AV伊甸园http://www.tkk7.com/masen/category/45284.htmlzh-cnWed, 09 Jun 2010 11:53:32 GMTWed, 09 Jun 2010 11:53:32 GMT60Maven2錛堝垵-杞琁BM錛?/title><link>http://www.tkk7.com/masen/articles/323129.html</link><dc:creator>Masen</dc:creator><author>Masen</author><pubDate>Wed, 09 Jun 2010 03:14:00 GMT</pubDate><guid>http://www.tkk7.com/masen/articles/323129.html</guid><wfw:comment>http://www.tkk7.com/masen/comments/323129.html</wfw:comment><comments>http://www.tkk7.com/masen/articles/323129.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/masen/comments/commentRss/323129.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/masen/services/trackbacks/323129.html</trackback:ping><description><![CDATA[<blockquote style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鏈枃涓昏闃愯堪 Maven2 鐨勬柊鐗規(guī)э紝榪欎簺鏂扮壒鎬у彲浠ュぇ澶у湴緙╃煭浜嗗紑鍙戠鐞嗕腑鐨勫伐浣滈噺錛屼嬌寰楀紑鍙戜漢鍛樺皢綺懼姏闆嗕腑鍦ㄥ疄闄呯殑涓氬姟闂涓娿?/blockquote> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven 鍑虹幇鍒扮幇鍦ㄤ篃鏈夊緢闀挎椂闂翠簡錛屽垵璇嗗畠鐨勬劅瑙夎嚦浠婁粛娓呮櫚鐨勫嵃鍦ㄨ剳嫻蜂腑銆傜幇鍦ㄦ兂鏉ワ紝褰撴椂浠?Ant 縐繪儏 Maven 鐨勬兂娉曞叾瀹炲緢鏈寸礌錛屽氨鏄洜涓?Maven 鍙互浠ョ綉绔欑殑褰㈠紡灞曠幇涓庨」鐩浉鍏崇殑淇℃伅錛屽寮鍙戜漢鍛樺垪琛ㄣ佸悇縐?Report銆傝繖縐嶆柟寮忎負欏圭洰鐨勬瀯寤哄甫鏉ヤ簡鏋佸ぇ鐨勬柟渚匡紝灝ゅ叾鏄?Report 鐨勩傝瘯鎯沖浜庝駭鐢熺殑 Junit-Report銆丣avaDoc銆丆heckStyle銆丳MD 絳夋姤鍛婏紝濡傛灉娌℃湁涓涓粺涓鐨勫叆鍙o紝姣忔鍒囨崲鐩綍鏄涔堜護浜哄帉鐑︾殑浜嬫儏錛?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven 鏃犵枒鏄浉褰撴垚鍔熺殑錛岃繖涓鐐逛粠瓚婃潵瓚婂鐨勫紑婧愰」鐩紑濮嬩嬌鐢?Maven 灝卞彲浠ョ湅鍑恒侻aven 鍙栧緱鎴愬姛鐨勫師鍥犲緢綆鍗曪細鍦ㄧ畝鍖栨瀯寤鴻剼鏈殑鍚屾椂錛屽姛鑳藉茍娌℃湁緙╂按錛屽弽鑰屾湁鎵澧炲己錛涙彁渚涙眹闆嗛」鐩俊鎭殑宸ュ叿錛屽茍浠ョ浉褰撳弸濂界殑鏂瑰紡鍛堢幇錛涗赴瀵岀殑鎻掍歡綆鍖栦簡宸ヤ綔銆傚姝ゆ湁鍔涚殑宸ュ叿鍑虹幇錛岃嚜鐒舵槸浜夌浉浣跨敤銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N1005E"><span id="ekkkyik" class="atitle" style="font-family: Arial, sans-serif; font-weight: bold; font-size: 18px; ">鏂扮壒鎬?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">濡備粖 Maven2 宸茬粡鎺ㄥ嚭錛孧aven 鐨勫畼鏂圭綉绔欑О錛孧aven2 鐩稿浜?Maven1 鏄竴涓浉褰撳ぇ鐨勮漿鍙橈紝鐢氳嚦涓嶆儨鐗虹壊鍏煎鎬ф潵杈懼埌榪欎竴鐩殑銆傦紙涓轟簡 Maven1 鐨勭敤鎴風潃鎯籌紝Maven1 浠嶅湪緇х畫浠栫殑浣垮懡銆傦級濡傛澶х殑鍙樺姩鍒板簳鎹㈡潵浜嗕粈涔堟牱鐨勭粨鏋滐紵</p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10067"><span id="ywuoccc" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">1錛?鏇村揩銆佹洿綆鍗?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">姣旇搗 Maven1 閭d笉鎬ヤ笉鎱㈢殑榪愯閫熷害錛孧aven2鍦ㄩ熷害涓婃湁浜嗚川鐨勯璺冿紝鐢氳嚦涓嶢nt鐩告瘮涔熸涓嶉婅壊錛堝綋鐒訛紝涓嬭澆涓嶇畻錛夈傞櫎姝や箣澶栵紝"綆鍖栧伐浣滐紝浣跨敤涓氱晫鍏鐨勬渶浣?jīng)_疄璺?涔熸槸鏄?Maven2 鐨勫彟涓澶т富棰橈紝鍏朵粬鐨勬柊鐗規(guī)ф棤澶勪笉鍦ㄤ綋鐜?Maven2 涓虹畝鍖栧伐浣滆屽仛鍑虹殑鍔姏銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10070"><span id="yywysku" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">2錛?鏇村皯鐨勯厤緗枃浠?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven1 鍜?Maven2 涓昏閰嶇疆鏂囦歡鐨勫姣旓細</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>Maven1錛歱roject.xml銆乵aven.xml銆乸roject.properties鍜宐uild.properties銆?/li> <li>Maven2錛歱om.xml鍜宻ettings.xml銆?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">POM鏄疢aven鐨勬牳蹇冨璞℃ā鍨嬶紝鍦∕aven2涓璓OM宸茬敱project.xml杞Щ鍒皃om.xml涓嬌鐢紝鐗堟湰涔熺敱3鍗囩駭涓?銆傚浜庨」鐩紝涓鑸彧闇瑕乸om.xml灝辮浜嗐?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍦∕aven2涓笉闇瑕佷篃涓嶆彁鍊′嬌鐢╩aven.xml錛屽師鍥犲涓嬶細</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>plugin鐨勬槗鐢ㄦх殑澧炲己銆?/li> <li>鏁e竷浜巑aven.xml涓殑鍐呭闅句互鍦ㄤ笉鍚岄」鐩棿鍏變韓錛屼篃涓嶅埄浜庣淮鎶ゃ傚湪Maven2涓緩璁嬌鐢ㄨ嚜瀹氫箟鐨刾lugin鏉ュ皝瑁呰繖浜涘唴瀹廣?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">濡傛灉浠嶆湡鏈涜兘澶熶嬌鐢ㄧ被浼糾aven.xml鐨勫姛鑳斤紝濡?lt;preGoal>錛岃鍙傝?a style="color: #5c81a7; ">Inserting non-standard build steps using preGoals and postGoals銆?/a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍦∕aven2涓紝閰嶇疆浣跨敤settings.xml錛屽畠鍙栦唬浜嗗師鏈夌殑project.properties鍜宐uild.properties銆傞厤緗湪Maven2涓瓨鍦ㄤ袱縐嶇駭鍒細</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>鐢ㄦ埛綰э紝閽堝鎿嶄綔緋葷粺鐧誨綍鐢ㄦ埛鑰岃█銆備竴鑸湪$home/.m2/錛屽浜巜indows鐢ㄦ埛錛屽氨鏄洰褰曪細C:\Documents and Settings\鐢ㄦ埛鍚峔.m2\settings.xml銆?/li> <li>鍏ㄥ眬綰э細涓鑸湪%M2_HOME%/conf/settings.xml錛孧2_HOME鏄疢aven2鐨勬牴鐩綍鐜鍙橀噺鍚嶃?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍦╯ettings.xml涓彲浠ラ厤緗紝濡傛湰鍦癛epository銆乸roxy絳夌瓑錛屽叧浜巗ettings.xml鐨勭粨鏋勫彲浠ヤ粠Maven鐨勫畼鏂圭綉绔欎笂鑾峰彇銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N100A6"><span id="ecegsoo" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">3錛?Plugin璇█鏇存崲</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍦∕aven2涓紝緙栧啓plugin鐨勮璦鐢眏elly鍙樻洿涓篔ava鍜孊eanShell銆侸ava鍦ㄩ熷害涓婃洿鏈変紭鍔匡紝鑰屼笖寮鍙戜漢鍛樼殑鐔熸?zhèn)壗E嬪害鏇撮珮銆傚浜庡叾浠栫殑嫻佽鑴氭湰錛屽groovy錛孧aven鐨勫畼鏂圭綉绔欑殑鎰忚鏄紝絳夊緟鍏舵洿鎴愮啛鏃跺啀鑰冭檻</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">銆?/span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N100AF"><span id="ecwqsyw" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">4錛?鎻愪緵棰勫畾涔夌殑鐩綍妯℃澘</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">濂界殑鐩綍緇撴瀯鍙互浣垮紑鍙戜漢鍛樻洿瀹規(guī)槗鐞嗚В欏圭洰錛屼負浠ュ悗鐨勭淮鎶ゅ伐浣滀篃鎵撲笅鑹ソ鐨勫熀紜銆侻aven2鏍規(guī)嵁涓氱晫鍏鐨勬渶浣崇洰褰曠粨鏋勶紝涓哄紑鍙戣呮彁渚涗簡緙虹渷鐨勬爣鍑嗙洰褰曟ā鏉褲侻aven2鐨勬爣鍑嗙洰褰曠粨鏋勫涓嬶細</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><img alt="" border="0" height="581" src="http://www.ibm.com/developerworks/cn/opensource/os-maven2/images/table1.gif" width="319" /></span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">浣跨敤鐩綍妯℃澘錛屽彲浠ヤ嬌pom.xml鏇寸畝媧併傚洜涓篗aven2宸茬粡鏍規(guī)嵁緙虹渷鐩綍錛岄瀹氫箟浜嗙浉鍏崇殑鍔ㄤ綔錛岃屾棤闇浜哄伐鐨勫共棰勩備互resources鐩綍涓轟緥錛?/p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>src/main/resources錛岃礋璐g鐞嗛」鐩富浣撶殑璧勬簮銆傚湪浣跨敤Maven2鎵цcompile涔嬪悗錛岃繖涓洰褰曚腑鐨勬墍鏈夋枃浠跺強瀛愮洰褰曪紝浼氬鍒跺埌target/classes鐩綍涓紝涓轟互鍚庣殑鎵撳寘鎻愪緵浜嗘柟渚褲?/li> <li>src/test/resources錛岃礋璐g鐞嗛」鐩祴璇曠殑璧勬簮銆傚湪浣跨敤Maven2鎵цtest-compile涔嬪悗錛岃繖涓洰褰曚腑鐨勬墍鏈夋枃浠跺強瀛愮洰褰曪紝浼氬鍒跺埌target/test-classes鐩綍涓紝涓哄悗緇殑嫻嬭瘯鍋氬ソ浜嗗噯澶囥?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">榪欎簺鍔ㄤ綔鍦?Maven1 涓紝鏄渶瑕佸湪 maven.xml 涓嬌鐢?lt;preGoal>鎴?lt;postGoal>鏉ュ畬鎴愮殑銆傚浠婏紝瀹屽叏涓嶉渶瑕佸湪pom.xml涓寚瀹氬氨鑳藉鑷姩瀹屾垚銆傚湪src鍜宼est閮戒嬌鐢╮esources錛屾柟渚挎瀯寤哄拰嫻嬭瘯錛岃繖縐嶆柟寮忔湰灝卞凡鏄墠浜虹殑緇忛獙銆傞氳繃浣跨敤Maven2錛屼嬌榪欎釜緇忛獙鍦ㄥ紑鍙戝洟闃熶腑寰楀埌鏅強銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍒涘緩鏍囧噯鐩綍妯℃澘錛屽彲浠ラ氳繃濡備笅鍛戒護錛?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; ">mvn archetype:create -DgroupId=com.codeline.commons -DartifactId=codelineCommons </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">groupId鍜宎rtifactId鐨勫惈涔変笌Maven1涓殑鍚箟涓鏍鳳紝鍙傛暟artifactId鐨勫間細浣滀負欏圭洰鏍圭洰褰曠殑鍚嶅瓧銆傞櫎浜嗗緩绔嬬浉搴旂殑鐩綍涔嬪錛孧aven2榪樹細鍒涘緩緙虹渷鐨刾om.xml銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven2涔熻冭檻鍒幫細涓嶅悓綾誨瀷鐨勯」鐩渶瑕佹嫢鏈変笉鍚岀殑鐩綍緇撴瀯銆傚鍒涘緩web欏圭洰錛屽彲浠ヤ嬌鐢ㄥ懡浠わ細</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; ">mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N100F3"><span id="wkeiciy" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">5錛?鐢熷懡鍛ㄦ湡鐨勫紩鍏?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍦∕aven2涓湁浜嗘槑紜殑鐢熷懡鍛ㄦ湡姒傚康錛岃屼笖閮芥彁渚涗笌涔嬪搴旂殑鍛戒護錛屼嬌寰楅」鐩瀯寤烘洿鍔犳竻鏅版槑浜嗐備富瑕佺殑鐢熷懡鍛ㄦ湡闃舵錛?/p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>validate錛岄獙璇佸伐紼嬫槸鍚︽紜紝鎵鏈夐渶瑕佺殑璧勬簮鏄惁鍙敤銆?/li> <li>compile錛岀紪璇戦」鐩殑婧愪唬鐮併?/li> <li>test-compile錛岀紪璇戦」鐩祴璇曚唬鐮併?/li> <li>test錛屼嬌鐢ㄥ凡緙栬瘧鐨勬祴璇曚唬鐮侊紝嫻嬭瘯宸茬紪璇戠殑婧愪唬鐮併?/li> <li>package錛屽凡鍙戝竷鐨勬牸寮忥紝濡俲ar錛屽皢宸茬紪璇戠殑婧愪唬鐮佹墦鍖呫?/li> <li>integration-test錛屽湪闆嗘垚嫻嬭瘯鍙互榪愯鐨勭幆澧冧腑澶勭悊鍜屽彂甯冨寘銆?/li> <li>verify錛岃繍琛屼換浣曟鏌ワ紝楠岃瘉鍖呮槸鍚︽湁鏁堜笖杈懼埌璐ㄩ噺鏍囧噯銆?/li> <li>install錛屾妸鍖呭畨瑁呭湪鏈湴鐨剅epository涓紝鍙互琚叾浠栧伐紼嬩綔涓轟緷璧栨潵浣跨敤</li> <li>deploy錛屽湪鏁村悎鎴栬呭彂甯冪幆澧冧笅鎵ц錛屽皢鏈緇堢増鏈殑鍖呮嫹璐濆埌榪滅▼鐨剅epository錛屼嬌寰楀叾浠栫殑寮鍙戣呮垨鑰呭伐紼嬪彲浠ュ叡浜?/li> <li>generate-sources錛屼駭鐢熷簲鐢ㄩ渶瑕佺殑浠諱綍棰濆鐨勬簮浠g爜錛屽xdoclet銆?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">濡傛灉瑕佹墽琛岄」鐩紪璇戯紝閭d箞鐩存帴杈撳叆錛歮vn compile鍗沖彲錛屽浜庡叾浠栫殑闃舵鍙互綾繪帹銆傞樁孌典箣闂存槸瀛樺湪渚濊禆鍏崇郴錛坉ependency錛夌殑錛屽test渚濊禆test-compile銆傚湪鎵цmvn test鏃訛紝浼氬厛榪愯mvn test-compile錛岀劧鍚庢墠鏄痬vn test銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10120"><span id="uuoyagg" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">6錛?鏂板Dependency Scope</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍦≒OM 4涓紝<dependency>涓繕寮曞叆浜?lt;scope>錛屽畠涓昏綆$悊渚濊禆鐨勯儴緗層傜洰鍓?lt;scope>鍙互浣跨敤5涓鹼細</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>compile錛岀己鐪佸鹼紝閫傜敤浜庢墍鏈夐樁孌碉紝浼氶殢鐫欏圭洰涓璧峰彂甯冦?/li> <li>provided錛岀被浼糲ompile錛屾湡鏈汮DK銆佸鍣ㄦ垨浣跨敤鑰呬細鎻愪緵榪欎釜渚濊禆銆傚servlet.jar銆?/li> <li>runtime錛屽彧鍦ㄨ繍琛屾椂浣跨敤錛屽JDBC椹卞姩錛岄傜敤榪愯鍜屾祴璇曢樁孌點?/li> <li>test錛屽彧鍦ㄦ祴璇曟椂浣跨敤錛岀敤浜庣紪璇戝拰榪愯嫻嬭瘯浠g爜銆備笉浼氶殢欏圭洰鍙戝竷銆?/li> <li>system錛岀被浼紁rovided錛岄渶瑕佹樉寮忔彁渚涘寘鍚緷璧栫殑jar錛孧aven涓嶄細鍦≧epository涓煡鎵懼畠銆?/li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><scope>鐨勪嬌鐢ㄤ婦渚嬶細</p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; "><dependency> <groupId>hibernate</groupId> <artifactId>hibernate</artifactId> <version>3.0.3</version> <scope>test</scope> </dependency> </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10147"><span id="eauwsqo" class="smalltitle" style="font-family: arial, nsimsun, sans-serif; font-weight: bold; font-size: 15px; ">7錛?浼犻掍緷璧栵紝綆鍖栦緷璧栫鐞?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鍦∕aven1涓紝闇瑕佹妸渚濊禆鎵闇瑕佺殑鍖呬篃涓騫跺垪鍑恒傝繖瀵逛簬浣跨敤綾諱技濡侶ibernate鐨勭敤鎴鋒潵璇存墍鎿嶇殑蹇冨お澶氫簡錛岃屼笖涔熶笉鏂逛究銆傚湪Maven2涓疄鐜頒簡浼犻掍緷璧栵紝濡傛瀵逛簬Hibernate鎵渚濊禆鐨勫寘錛孧aven2浼氳嚜鍔ㄤ笅杞斤紝寮鍙戜漢鍛樺彧闇鍏沖績Hibernate鍗沖彲銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">娉ㄦ剰錛氬彧鏈夊緱鍒癕aven鏀寔鐨勪緷璧栵紝閫氬父鏄痯lugin褰㈠紡鍑虹幇錛屾墠鑳借幏寰楄繖涓壒鎬с傝屼笖瀵逛簬涓浜涜佺殑plugin錛屽彲鑳界敱浜庢椂闂寸殑鍏崇郴涓嶆敮鎸佷紶閫掍緷璧栥傚鑷沖皯鍦∕aven 2.0.1涓紝瀵逛簬Hibernate 2.1.2錛屼粛鐒墮渶瑕佹樉寮忓垪鍑篐ibernate 2.1.2鎵渚濊禆鐨勫寘銆?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td style="line-height: 19px; "><img width="100%" src="http://www.ibm.com/i/v14/rules/blue_rule.gif" height="1" alt="" /><br /> <img alt="" width="8" height="6" border="0" src="http://www.ibm.com/i/c.gif" /></td> </tr> </tbody> </table> <table class="no-print" cellspacing="0" cellpadding="0" align="right" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr align="right"> <td style="line-height: 19px; "><img width="100%" height="4" src="http://www.ibm.com/i/c.gif" alt="" /><br /> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="middle" style="line-height: 19px; "><img width="16" src="http://www.ibm.com/i/v14/icons/u_bold.gif" height="16" border="0" alt="" /><br /> </td> <td valign="top" align="right" style="line-height: 19px; "><a class="fbox" style="color: #5c81a7; text-decoration: none; font-family: verdana, nsimSun, arial, sans-serif; font-size: 12px; line-height: 13px; "><strong>鍥為〉棣?/strong></a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10153"><span id="qwqwsge" class="atitle" style="font-family: Arial, sans-serif; font-weight: bold; font-size: 18px; ">浣跨敤綆浠?/span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">瀹夎Maven2鐨勬楠ら潪甯哥畝鍗曪細棣栧厛浠嶮aven瀹樻柟緗戠珯涓嬭澆鐩稿簲鐨勮蔣浠跺寘錛岀洰鍓嶆槸Maven 2.0.1錛涚劧鍚庤В鍘嬶紝騫惰緗幆澧冨彉閲廙2_HOME= Maven2鐨勮В鍘嬪畨瑁呯洰褰曪紱鏈鍚庡皢%M2_HOME%/bin娣誨姞鍒皃ath涓紝鏂逛究Maven鍦ㄤ換浣曠洰褰曚笅榪愯銆?/p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven2鐨勮繍琛屽懡浠ゆ槸mvn錛屼嬌鐢╩vn -h鍙互鑾峰緱鐩稿叧鐨勫府鍔╀俊鎭傚父鐢ㄦ儏褰細</p> <ul style="margin-top: 2px; margin-bottom: 2px; padding-top: 2px; padding-bottom: 2px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <li>鍒涘緩Maven欏圭洰錛歮vn archetype:create</li> <li>緙栬瘧婧愪唬鐮侊細mvn compile</li> <li>緙栬瘧嫻嬭瘯浠g爜錛歮vn test-compile</li> <li>榪愯嫻嬭瘯錛歮vn test</li> <li>浜х敓site錛歮vn site</li> <li>鎵撳寘錛歮vn package</li> <li>鍦ㄦ湰鍦癛epository涓畨瑁卝ar錛歮vn install</li> <li>娓呴櫎浜х敓鐨勯」鐩細mvn clean</li> </ul> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">鎴栬鏄敱浜庡垰鍒氭帹鍑虹殑緙樻晠錛孧aven2鐩墠榪樻槸鏈変竴浜涗笉灝藉浜烘剰鐨勫湴鏂廣傚挨鍏舵槸Report閮ㄥ垎鐨刾lugin錛屾湁鐨勬槸鍥犱負鐩墠榪樻病鏈夛紝濡俲unit-report銆傛湁鐨勫垯鏄竴浜涜帿鍚嶅叾濡欑殑闂錛屽checktyle鍜宲md錛屽湪鏈湴l(fā)ocale涓嬮兘鏃犳硶姝e父宸ヤ綔銆備互pmd涓句緥錛屽湪浜х敓PMD鎶ュ憡鏃朵細鎶涘嚭濡備笅寮傚父錛?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td class="code-outline" style="line-height: 19px; background-color: #eeeeee; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; "> <pre class="displaycode" style="margin-top: 0px; margin-bottom: 0px; font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace; font-size: 11px; ">java.util.MissingResourceException: Can't find bundle for base name pmd-report, locale zh_CN at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle .java:839) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:808) at java.util.ResourceBundle.getBundle(ResourceBundle.java:702) …… </pre> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">騫歌繍鐨勬槸錛孧aven2涓鍑虹幇灝卞鍙楀叧娉紝瑕佷笉浜嗗闀挎椂闂達紝璇稿姝ょ被鐨勯棶棰樺簲璇ュ氨浼氬緢蹇В鍐熾?/p> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr> <td style="line-height: 19px; "><img width="100%" src="http://www.ibm.com/i/v14/rules/blue_rule.gif" height="1" alt="" /><br /> <img alt="" width="8" height="6" border="0" src="http://www.ibm.com/i/c.gif" /></td> </tr> </tbody> </table> <table class="no-print" cellspacing="0" cellpadding="0" align="right" style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "> <tbody> <tr align="right"> <td style="line-height: 19px; "><img width="100%" height="4" src="http://www.ibm.com/i/c.gif" alt="" /><br /> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="middle" style="line-height: 19px; "><img width="16" src="http://www.ibm.com/i/v14/icons/u_bold.gif" height="16" border="0" alt="" /><br /> </td> <td valign="top" align="right" style="line-height: 19px; "><a class="fbox" style="color: #5c81a7; text-decoration: none; font-family: verdana, nsimSun, arial, sans-serif; font-size: 12px; line-height: 13px; "><strong>鍥為〉棣?/strong></a></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span><span style="font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><br /> </span> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; "><a name="N10189"><span id="cacmqoe" class="atitle" style="font-family: Arial, sans-serif; font-weight: bold; font-size: 18px; ">緇撹</span></a></p> <p style="padding-bottom: 8px; padding-top: 5px; margin-top: 0px; margin-bottom: 0px; font-family: verdana, nsimsun, sans-serif; font-size: 12px; line-height: 19px; ">Maven2鍦∕aven1鐨勪紭鍔垮熀紜涔嬩笂錛屽張鍚戝墠榪堣繘浜嗕竴澶ф銆傚畠鎻愪緵鐨勮繖浜涙柊鐗規(guī)уぇ澶у湴緙╃煭浜嗗紑鍙戠鐞嗕腑鐨勫伐浣滈噺錛屼嬌寰楀紑鍙戜漢鍛樺皢綺懼姏闆嗕腑鍦ㄥ疄闄呯殑涓氬姟闂涓娿傝屼笖榪欎簺鏂扮壒鎬у浜庣畝鍖栦嬌鐢紝鏅強鏈浣?jīng)_疄璺碉紝涔熻搗鍒頒簡縐瀬鐨勪綔鐢ㄣ?/p> <img src ="http://www.tkk7.com/masen/aggbug/323129.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/masen/" target="_blank">Masen</a> 2010-06-09 11:14 <a href="http://www.tkk7.com/masen/articles/323129.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://0595laser.com" target="_blank">最新免费jlzzjlzz在线播放</a>| <a href="http://77133144.com" target="_blank">精品无码人妻一区二区免费蜜桃</a>| <a href="http://ydstbj.com" target="_blank">在线播放免费人成视频在线观看</a>| <a href="http://pgyadv.com" target="_blank">亚洲精品无码久久毛片波多野吉衣 </a>| <a href="http://601508.com" target="_blank">亚洲AV永久无码精品一福利</a>| <a href="http://w6446.com" target="_blank">台湾一级毛片永久免费 </a>| <a href="http://zhuguangbaoyu.com" target="_blank">亚洲AV永久无码精品成人</a>| <a href="http://kdltuliao.com" target="_blank">国产国产人免费人成成免视频</a>| <a href="http://8mav1007.com" target="_blank">日本一道高清不卡免费</a>| <a href="http://yakonet.com" target="_blank">性色av极品无码专区亚洲</a>| <a href="http://9988u.com" target="_blank">波多野结衣中文一区二区免费 </a>| <a href="http://519vip.com" target="_blank">亚洲日本天堂在线</a>| <a href="http://an930.com" target="_blank">啦啦啦手机完整免费高清观看</a>| <a href="http://js-jiarui.com" target="_blank">亚洲一线产品二线产品</a>| <a href="http://020iws.com" target="_blank">日本不卡在线观看免费v</a>| <a href="http://yisousou.com" target="_blank">狼色精品人妻在线视频免费</a>| <a href="http://477077.com" target="_blank">亚洲午夜AV无码专区在线播放</a>| <a href="http://805ios.com" target="_blank">中文字幕视频在线免费观看</a>| <a href="http://yiren2233.com" target="_blank">亚洲综合一区二区国产精品</a>| <a href="http://yy6636.com" target="_blank">精品香蕉在线观看免费</a>| <a href="http://jte-sh.com" target="_blank">亚洲日韩AV一区二区三区中文 </a>| <a href="http://zhaosifuwang.com" target="_blank">国产亚洲AV手机在线观看</a>| <a href="http://qimiaodh.com" target="_blank">你懂的免费在线观看</a>| <a href="http://zjhmpaper.com" target="_blank">精品亚洲永久免费精品</a>| <a href="http://pufenghotel.com" target="_blank">95免费观看体验区视频</a>| <a href="http://6132423.com" target="_blank">国产人成亚洲第一网站在线播放</a>| <a href="http://www-9970.com" target="_blank">国产传媒在线观看视频免费观看</a>| <a href="http://www09191z.com" target="_blank">一本到卡二卡三卡免费高</a>| <a href="http://717795.com" target="_blank">亚洲网址在线观看你懂的</a>| <a href="http://kkk28.com" target="_blank">大学生美女毛片免费视频</a>| <a href="http://bbav04.com" target="_blank">一级午夜免费视频</a>| <a href="http://sdzsx.com" target="_blank">亚洲精品高清久久</a>| <a href="http://pjwys.com" target="_blank">免费黄色网址入口</a>| <a href="http://pj9xx6.com" target="_blank">a级片免费在线播放</a>| <a href="http://as5566.com" target="_blank">亚洲国产夜色在线观看</a>| <a href="http://www99xyxy.com" target="_blank">免费在线观看中文字幕</a>| <a href="http://7766qq.com" target="_blank">久久免费福利视频</a>| <a href="http://www-bajie.com" target="_blank">精品亚洲国产成人av</a>| <a href="http://www62hth.com" target="_blank">亚洲AV无码一区二区乱孑伦AS</a>| <a href="http://www6661126.com" target="_blank">歪歪漫画在线观看官网免费阅读</a>| <a href="http://sewo66.com" target="_blank">亚洲精品视频免费观看</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>