锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品99久久久香蕉,不卡av日日日,欧美最新另类人妖http://www.aygfsteel.com/haha1903/category/8588.html璺熺潃 Java 鎴愰暱鐨勬棩瀛愶紒zh-cnWed, 08 Aug 2007 21:17:32 GMTWed, 08 Aug 2007 21:17:32 GMT60Maven 鐨勭敓鍛藉懆鏈燂紝鎽樿嚜 apache 鍜?IBMhttp://www.aygfsteel.com/haha1903/archive/2007/08/08/135281.html鍝堝搱鐨勬棩瀛?/dc:creator>鍝堝搱鐨勬棩瀛?/author>Wed, 08 Aug 2007 08:30:00 GMThttp://www.aygfsteel.com/haha1903/archive/2007/08/08/135281.htmlhttp://www.aygfsteel.com/haha1903/comments/135281.htmlhttp://www.aygfsteel.com/haha1903/archive/2007/08/08/135281.html#Feedback0http://www.aygfsteel.com/haha1903/comments/commentRss/135281.htmlhttp://www.aygfsteel.com/haha1903/services/trackbacks/135281.htmlMaven Phases

Although hardly a comprehensive list, these are the most common default lifecycle phases executed.

  • validate: validate the project is correct and all necessary information is available
  • compile: compile the source code of the project
  • test: test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed
  • package: take the compiled code and package it in its distributable format, such as a JAR.
  • integration-test: process and deploy the package if necessary into an environment where integration tests can be run
  • verify: run any checks to verify the package is valid and meets quality criteria
  • install: install the package into the local repository, for use as a dependency in other projects locally
  • deploy: done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.

There are two other Maven lifecycles of note beyond the default list above. They are

  • clean: cleans up artifacts created by prior builds
  • site: generates site documentation for this project

緲昏瘧鍐呭錛屾憳鑷?IBM

鐢熷懡鍛ㄦ湡

鍦∕aven2涓湁浜嗘槑紜殑鐢熷懡鍛ㄦ湡姒傚康錛岃屼笖閮芥彁渚涗笌涔嬪搴旂殑鍛戒護錛屼嬌寰楅」鐩瀯寤烘洿鍔犳竻鏅版槑浜嗐備富瑕佺殑鐢熷懡鍛ㄦ湡闃舵錛?/p>

  • validate錛岄獙璇佸伐紼嬫槸鍚︽紜紝鎵鏈夐渶瑕佺殑璧勬簮鏄惁鍙敤銆?
  • compile錛岀紪璇戦」鐩殑婧愪唬鐮併?
  • test-compile錛岀紪璇戦」鐩祴璇曚唬鐮併?
  • test錛屼嬌鐢ㄥ凡緙栬瘧鐨勬祴璇曚唬鐮侊紝嫻嬭瘯宸茬紪璇戠殑婧愪唬鐮併?
  • package錛屽凡鍙戝竷鐨勬牸寮忥紝濡俲ar錛屽皢宸茬紪璇戠殑婧愪唬鐮佹墦鍖呫?
  • integration-test錛屽湪闆嗘垚嫻嬭瘯鍙互榪愯鐨勭幆澧冧腑澶勭悊鍜屽彂甯冨寘銆?
  • verify錛岃繍琛屼換浣曟鏌ワ紝楠岃瘉鍖呮槸鍚︽湁鏁堜笖杈懼埌璐ㄩ噺鏍囧噯銆?
  • install錛屾妸鍖呭畨瑁呭湪鏈湴鐨剅epository涓紝鍙互琚叾浠栧伐紼嬩綔涓轟緷璧栨潵浣跨敤
  • deploy錛屽湪鏁村悎鎴栬呭彂甯冪幆澧冧笅鎵ц錛屽皢鏈緇堢増鏈殑鍖呮嫹璐濆埌榪滅▼鐨剅epository錛屼嬌寰楀叾浠栫殑寮鍙戣呮垨鑰呭伐紼嬪彲浠ュ叡浜?
  • generate-sources錛屼駭鐢熷簲鐢ㄩ渶瑕佺殑浠諱綍棰濆鐨勬簮浠g爜錛屽xdoclet銆?


]]>
Maven 鎵撳寘 jar 銆亀ar 鏂囦歡鏃訛紝涓嶅皢 pom.xml 絳夋墦鍖呰繘鍖呬腑http://www.aygfsteel.com/haha1903/archive/2007/01/04/91837.html鍝堝搱鐨勬棩瀛?/dc:creator>鍝堝搱鐨勬棩瀛?/author>Thu, 04 Jan 2007 12:37:00 GMThttp://www.aygfsteel.com/haha1903/archive/2007/01/04/91837.htmlhttp://www.aygfsteel.com/haha1903/comments/91837.htmlhttp://www.aygfsteel.com/haha1903/archive/2007/01/04/91837.html#Feedback0http://www.aygfsteel.com/haha1903/comments/commentRss/91837.htmlhttp://www.aygfsteel.com/haha1903/services/trackbacks/91837.html濡傛灉鏄?jar 鍖咃紝鍦?Plugin 涓厤緗?/p>

<build>
聽 <plugins>
聽聽聽 <plugin>
聽聽聽聽聽 <groupId>org.apache.maven.plugins</groupId>
聽聽聽聽聽 <artifactId>maven-jar-plugin</artifactId>
聽聽聽聽聽 <configuration>
聽聽聽聽聽聽聽 <archive>
聽聽聽聽聽聽聽聽聽 <addMavenDescriptor>false</addMavenDescriptor>
聽聽聽聽聽聽聽 </archive>
聽聽聽聽聽 </configuration>
聽聽聽 </plugin>
聽 </plugins>
</build>

濡傛灉鏄?war 鍖咃紝鍦?Plugin 涓厤緗?/p>

<build>
聽 <plugins>
聽聽聽 <plugin>
聽聽聽聽聽 <groupId>org.apache.maven.plugins</groupId>
聽聽聽聽聽 <artifactId>maven-war-plugin</artifactId>
聽聽聽聽聽 <configuration>
聽聽聽聽聽聽聽 <archive>
聽聽聽聽聽聽聽聽聽 <addMavenDescriptor>false</addMavenDescriptor>
聽聽聽聽聽聽聽 </archive>
聽聽聽聽聽 </configuration>
聽聽聽 </plugin>
聽 </plugins>
</build>

榪欎釜鏄湪 maven-archiver 涓緗殑錛屽彲浠ユ煡鐪嬩唬鐮併?/p>



]]>
Maven 鐨?SNAPSHOT 搴撶鐞嗘柟寮?/title><link>http://www.aygfsteel.com/haha1903/archive/2006/12/21/89285.html</link><dc:creator>鍝堝搱鐨勬棩瀛?/dc:creator><author>鍝堝搱鐨勬棩瀛?/author><pubDate>Thu, 21 Dec 2006 06:52:00 GMT</pubDate><guid>http://www.aygfsteel.com/haha1903/archive/2006/12/21/89285.html</guid><wfw:comment>http://www.aygfsteel.com/haha1903/comments/89285.html</wfw:comment><comments>http://www.aygfsteel.com/haha1903/archive/2006/12/21/89285.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/haha1903/comments/commentRss/89285.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/haha1903/services/trackbacks/89285.html</trackback:ping><description><![CDATA[Maven 浼氭瘡澶╂鏌ヤ竴嬈?SNAPSHOT 鍖呯殑鏇存柊錛屼篃鍙互閫氳繃閰嶇疆<br /><br />...<br /><repository><br />...<br />聽聽聽<releases><br />聽聽聽聽聽聽<updatePolicy>interval:60</updatePolicy><br />聽聽聽</releases><br /></repository><br /><br />鏉ュ畾涔夋洿鏂版椂闂達紝濡傛灉闇瑕佸己鍒舵洿鏂幫紝闇瑕佸湪 command line 鍔?-U 閫夐」銆?img src ="http://www.aygfsteel.com/haha1903/aggbug/89285.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/haha1903/" target="_blank">鍝堝搱鐨勬棩瀛?/a> 2006-12-21 14:52 <a href="http://www.aygfsteel.com/haha1903/archive/2006/12/21/89285.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Maven 鍒濆錛屽涔?Maven eclipse pluginhttp://www.aygfsteel.com/haha1903/archive/2006/03/16/35746.html鍝堝搱鐨勬棩瀛?/dc:creator>鍝堝搱鐨勬棩瀛?/author>Thu, 16 Mar 2006 15:29:00 GMThttp://www.aygfsteel.com/haha1903/archive/2006/03/16/35746.htmlhttp://www.aygfsteel.com/haha1903/comments/35746.htmlhttp://www.aygfsteel.com/haha1903/archive/2006/03/16/35746.html#Feedback1http://www.aygfsteel.com/haha1903/comments/commentRss/35746.htmlhttp://www.aygfsteel.com/haha1903/services/trackbacks/35746.html
鑰屼笖鎴戝湪瀹夎鐨?maven 涓繍琛岋紝涓嬭澆浜嗕竴嬈★紝鍦?maven 鐨?eclipse plugin 涓繍琛屽張涓嬭澆浜嗕竴嬈★紝寰堟槸濂囨?br />瀵繪壘瑙e喅鏂規硶涓︹?br />
鎵懼埌鍘熷洜浜嗭紝%MAVEN_HOME%/conf/settings.xml 鏂囦歡涓啓浜嗕綅緗紝濡備笅錛?

<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->

鍥犱負瀵?maven 鏈哄埗涓嶇啛鎮夛紝娌℃敞鎰忓埌榪欎釜銆?

榛樿瀛樻斁鐨勪綅緗槸浣犵殑 Document and Settings 涓嬮潰鐢ㄦ埛鐩綍鐨?.m2/repository 榪欎釜鐩綍涓嬨?

涔熷彲浠ュ湪榪欎釜鍦版柟閰嶇疆銆?

鍙﹀涓涓氨鏄?maven 鍙互鍦?settings.xml 鏂囦歡涓厤緗唬鐞嗘湇鍔″櫒錛屼互鏂逛究璁塊棶 internet 錛屾垜鍦ㄥ叕鍙哥殑鏃跺欏氨闇瑕侀厤緗唬鐞嗘湇鍔″櫒鎵嶈銆?br />
浣嗘槸錛岀幇鍦ㄨ繕鏄笉鐭ラ亾涓轟粈涔堣涓嬭澆榪欎箞澶氱殑 plugin


]]>
主站蜘蛛池模板: 彭山县| 巴中市| 绥宁县| 曲麻莱县| 星子县| 安宁市| 额济纳旗| 古蔺县| 托克托县| 调兵山市| 长沙市| 赞皇县| 泰州市| 牙克石市| 宜宾市| 沙雅县| 班玛县| 宁德市| 邳州市| 三都| 深水埗区| 沙雅县| 济源市| 依安县| 边坝县| 普安县| 方城县| 察隅县| 抚顺县| 甘泉县| 海城市| 黄梅县| 洛川县| 舒城县| 浏阳市| 罗江县| 安宁市| 黑水县| 托克逊县| 黔南| 堆龙德庆县|