锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久青青在线观看视频国产,亚洲成人直播,一区二区三区 在线观看视http://www.aygfsteel.com/jianyue/category/34386.html鐮宩ava浠g爜zh-cnThu, 22 Sep 2011 13:48:58 GMTThu, 22 Sep 2011 13:48:58 GMT60maven 姒傚康涓庡疄璺?phase, goal, pluginhttp://www.aygfsteel.com/jianyue/archive/2011/09/22/359233.htmlQziQziThu, 22 Sep 2011 02:01:00 GMThttp://www.aygfsteel.com/jianyue/archive/2011/09/22/359233.htmlhttp://www.aygfsteel.com/jianyue/comments/359233.htmlhttp://www.aygfsteel.com/jianyue/archive/2011/09/22/359233.html#Feedback0http://www.aygfsteel.com/jianyue/comments/commentRss/359233.htmlhttp://www.aygfsteel.com/jianyue/services/trackbacks/359233.htmlhttp://blog.csdn.net/bluishglc/article/details/6632280 
涓銆侻aven鐨勬墽琛屾柟寮?br />
maven瀵規瀯寤?build)鐨勮繃紼嬭繘琛屼簡鎶借薄鍜屽畾涔夛紝榪欎釜榪囩▼琚О涓烘瀯寤虹殑鐢熷懡鍛ㄦ湡(lifecycle)銆傜敓鍛藉懆鏈?lifecycle)鐢卞涓樁孌?phase)緇勬垚,姣忎釜闃舵(phase)浼氭寕鎺ヤ竴鍒板涓猤oal銆俫oal鏄痬aven閲屽畾涔変換鍔$殑鏈灝忓崟鍏冿紝goal鍒嗕負涓ょ被錛屼竴綾繪槸緇戝畾phase鐨勶紝灝辨槸鎵ц鍒版煇涓猵hase錛岄偅涔堣繖涓猤oal灝變細瑙﹀彂錛屽彟澶栦竴綾諱笉緇戝畾錛屽氨鏄崟鐙換鍔★紝榪欏氨鐩稿綋浜巃nt閲岀殑target銆?br />
1銆備互phase鏉ユ瀯寤?br />渚嬪錛?br />mvn clean
mvn compile
mvn test
mvn package
琛ㄦ槑maven浼氭墽琛屽埌鏌愪釜鐢熷懡鍛ㄦ湡(lifecycle)鐨勬煇涓樁孌?phase)
榪欎釜phase浠ュ強瀹冨墠闈㈡墍鏈塸hase緇戝畾鐨勭洰鏍?goal)閮戒細鎵ц錛?姣忎釜phase閮戒細閭﹀畾maven榛樿鐨刧oal鎴栬呮病鏈塯oal錛?鎴栬呰嚜瀹氫箟鐨刧oal銆?br />涔熷彲浠ラ氳繃浼犲叆鍙傛暟璺寵繃(skip)鏌愪簺phase錛屼緥濡傦細
mvn install -Dmaven.test.skip=true

1銆備互goal鏉ユ瀯寤?br />榪欑被灝辨槸娌℃湁緇戝畾phase鐨刧oal錛屼絾鏄繖綾籫oal鍗撮氬父浼氭湁涓墽琛屽墠鎻愶紝灝辨槸project蹇呴』鎵ц鍒版煇涓猵hase錛?br />閭d箞鎵ц榪欎釜goal錛屽叾瀹炰篃浼氳Е鍙憁aven鎵ц鍒板墠鎻愯姹傜殑phase銆?br />渚嬪jetty:run鏄釜闈炵粦瀹歱hase鐨刧oal錛屽畠鐨勫墠鎻愭槸test-compile錛岃繖涓墠鎻愭槸鐢眕lugin鐨勪唬鐮侀昏緫鍒跺畾鐨?/span>

/**
 * @goal run
 * @requiresDependencyResolution runtime
 * @execute phase="test-compile"
 * @description Runs jetty6 directly from a maven project
 */
public class Jetty6RunMojo extends AbstractJettyRunMojo
{
    ...
}
浜屻侻aven lifecycle, phase姒傝
Maven棰勮浜嗕笁涓狶ifecycle 錛屽悇鍖呭惈浜嗕笅鍒桺hases.
  1. Clean Lifecycle
    • pre-clean
    • clean
    • post-clean
  2. Default Lifecycle
    • validate
    • initialize
    • generate-sources
    • process-sources
    • generate-resources
    • process-resources
    • compile
    • process-classes
    • generate-test-sources
    • process-test-sources
    • process-test-resources
    • test-compile
    • process-test-classes
    • test
    • prepare-package
    • package
    • pre-integration-test
    • integration-test
    • post-integration-test
    • verify
    • install
    • deploy
  3. Site Lifecycle
    • pre-site
    • site
    • post-site
    • site-deploy


Qzi 2011-09-22 10:01 鍙戣〃璇勮
]]>
maven phaseshttp://www.aygfsteel.com/jianyue/archive/2008/09/16/229207.htmlQziQziTue, 16 Sep 2008 09:06:00 GMThttp://www.aygfsteel.com/jianyue/archive/2008/09/16/229207.htmlhttp://www.aygfsteel.com/jianyue/comments/229207.htmlhttp://www.aygfsteel.com/jianyue/archive/2008/09/16/229207.html#Feedback0http://www.aygfsteel.com/jianyue/comments/commentRss/229207.htmlhttp://www.aygfsteel.com/jianyue/services/trackbacks/229207.html
  • 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

    瀹樼綉鏂囩珷錛?a >http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html



    Qzi 2008-09-16 17:06 鍙戣〃璇勮
    ]]>
    主站蜘蛛池模板: 特克斯县| 崇仁县| 枣庄市| 定南县| 阿克苏市| 集贤县| 永康市| 盱眙县| 邵阳市| 延长县| 肇东市| 绥滨县| 景洪市| 中西区| 屏山县| 开原市| 九台市| 易门县| 左权县| 平塘县| 平罗县| 乌拉特后旗| 财经| 台州市| 荆州市| 中山市| 宜君县| 礼泉县| 革吉县| 兰考县| 桂阳县| 根河市| 西和县| 瓮安县| 五河县| 肃宁县| 沙坪坝区| 通化县| 长寿区| 特克斯县| 柘城县|