maven瀛︿範绗旇1-myeclipse10涓殑閰嶇疆

maven瀛︿範绗旇1--myeclipse10涓殑閰嶇疆

浠婂ぉ榧撴崳浜嗕竴澶╋紝缁堜簬鍦╩yeclipse涓婇潰鍒涘缓浜嗕竴涓猰aven web搴旂敤锛屽疄鍦ㄦ槸涓嶆槗鍟婏紝鏈熼棿鍚勭闂銆?/p>

濂藉惂锛岃褰曚竴涓嬪惂銆?/p>

maven鐜閰嶇疆

1.鍒癿aven瀹樼綉涓嬭浇涓€涓猰aven鍖咃紝涓嬭浇鍦板潃涓猴細https://maven.apache.org/download.cgi

2.灏嗕笅杞界殑zip鍖呰В鍘嬪埌鎸囧畾鐨勬湰鍦版枃浠剁洰褰曪紝鎴戣繖閲屾槸锛欶:toolsframe-jarsmaven

3.閰嶇疆maven鐨勭幆澧冨彉閲忥紝杩欎釜閰嶇疆璺焜dk鐨勯厤缃湁鐐圭浉浼?span style="color: #ff0000;">銆?M2_HOME"鎴?MAVEN_HOME"閰嶇疆涓猴細F:toolsframe-jarsmavenapache-maven-3.3.9锛?PATH"閰嶇疆涓猴細F:toolsframe-jarsmavenapache-maven-3.3.9bin

4.娴嬭瘯maven閰嶇疆鏄惁鎴愬姛锛屾墦寮€cmd鍛戒护宸ュ叿锛岃緭鍏vn -version鍙互鏌ョ湅鏄惁閰嶇疆鎴愬姛

鍒拌繖閲宮aven鐨勭幆澧冮厤缃氨绠楀畬鎴愪簡銆?/p>

鎺ヤ笅鏉ユ槸鍦╩yeclipse 10涓坊鍔犺嚜宸辩殑maven鍖呫€?/span>

鍏蜂綋鐨勬楠ゅ涓嬶細

1.鍏堣鍦∕yEclipse涓Maven杩涜璁剧疆:window>preferences>myeclipse>maven4myeclipse>installations>add.閫変腑鍒氬垰瑙e帇鐨刴aven鍖咃紝杩欐牱灏卞彲浠ョ洿鎺ュ皢鍏舵坊鍔犺繘鍘讳簡銆?/p>

2.鍦╳indow>preferences>myeclipse>maven4myeclipse>user settings鏇存柊鏈湴浠撳簱鐨勫湴鍧€锛屾垜杩欓噷鐨剆ettings.xml鏂囦欢鍦‵:toolsframe-jarsmavenapache-maven-3.3.9confsettings.xml

鎵撳紑杩欎釜鏂囦欢锛岄噷闈㈢殑绗?3琛屼唬鐮佹洿鏀逛负鑷繁閫変腑鐨勬湰鍦颁粨搴撳湴鍧€锛屾垜杩欓噷閰嶇疆涓篹鐩樹笅鐨?m2/repository鏂囦欢浣滀负鎴戠殑鏈湴浠撳簱锛屽叿浣撴洿鏀逛唬鐮佷负锛?lt;localRepository>e:/.m2/repository</localRepository>銆傚綋鐒讹紝杩欎釜涓汉璁や负涓嶆槸蹇呴』鐨勩€?/p>

浣跨敤maven鍒涘缓涓€涓畝鍗曠殑maven web椤圭洰

鍏蜂綋鏌ョ湅闄勪欢銆?/span>

    A+
Date:2016-08-09
Tag: 

相关内容推荐