锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久中文字幕,亚洲丁香婷深爱综合,99pao成人国产永久免费视频http://www.aygfsteel.com/iamct/category/51463.htmlzh-cnSat, 21 Apr 2012 03:58:26 GMTSat, 21 Apr 2012 03:58:26 GMT60maven 鑷姩鍖杦eb搴旂敤闆嗘垚嫻嬭瘯http://www.aygfsteel.com/iamct/archive/2012/04/21/372608.htmliamctiamctSat, 21 Apr 2012 03:57:00 GMThttp://www.aygfsteel.com/iamct/archive/2012/04/21/372608.htmlhttp://www.aygfsteel.com/iamct/comments/372608.htmlhttp://www.aygfsteel.com/iamct/archive/2012/04/21/372608.html#Feedback0http://www.aygfsteel.com/iamct/comments/commentRss/372608.htmlhttp://www.aygfsteel.com/iamct/services/trackbacks/372608.html         web搴旂敤闆嗘垚嫻嬭瘯鐨勬椂鍊欙紝鍚勪綅榪橀渶瑕佸惎鍔╳eb瀹瑰櫒錛岀劧鍚庢墦寮嫻忚鍣紝杈撳叆ulr錛岀劧鍚庣湅鍒版祻瑙堝櫒鐨勮緭鍑哄悧錛?

涓嬮潰鎴戜滑鐢╩aven鍋氬埌鑷姩鍖栵紒


 

鎴戜滑鍒╃敤maven鐨勭敓鍛藉懆鏈熷拰jetty鎻掍歡鏉ュ疄鐜般?span style="color: #008000; ">

 

涓嬮潰鎻忚堪涓嬪仛鐨勮嚜鍔ㄥ寲web闆嗘垚嫻嬭瘯瀹炵幇鐨勫師鐞嗐?/p>

1錛屽湪鐢熷懡鍛ㄦ湡pre-integration-test鍚姩jetty瀹瑰櫒

2錛屽湪鐢熷懡鍛ㄦ湡integration-test涓祴璇曟垜浠啓鐨?**IT.java綾?/p>

3錛屽湪post-integration-test shutdow jetty瀹瑰櫒銆?/p>

鍦╬om.xml涓姞鍏ヤ唬鐮佸涓嬶細(xì)

<profiles>
        
<profile>
            
<id>ittest</id>
            
<build>
                
<plugins>
                    
<plugin>
                        
<groupId>org.apache.maven.plugins</groupId>
                        
<artifactId>maven-surefire-plugin</artifactId>
                        
<executions>
                            
<execution>
                                
<id>run-integration-test</id>
                                
<phase>integration-test</phase>
                                
<goals>
                                    
<goal>test</goal>
                                
</goals>
                                
<configuration>
                                    
<includes>
                                        
<include>**/*IT.java</include>
                                    </includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.mortbay.jetty</groupId>
                        <artifactId>maven-jetty-plugin</artifactId>
                        <version>6.1.26</version>
                        <configuration>
                            <contextPath>/</contextPath>
                            <stopPort>9966</stopPort>
                            <stopKey>stop-jetty-for-it</stopKey>
                            <connectors>
                                <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                                    <port>6211</port>
                                </connector>
                            </connectors>
                        </configuration>

                        <executions>
                            <execution>
                                <id>start-it-jetty</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                                <configuration>
                                    <daemon>true</daemon>
                                </configuration>
                            </execution>
                            <execution>
                                <id>stop-it-jetty</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>stop</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

 

鐒跺悗灝卞彲浠ョ紪鍐欐祴璇曠敤渚嬩簡(jiǎn)

 

 姝ラ濡備笅錛?/p>

1錛屽畾涔変竴涓互姝ゅ懡鍚嶇殑****IT鐨勬祴璇曠被錛坕ntegration test緙╁啓錛夛紝 鍦ㄩ噷闈㈠崕涓界殑鍐欏ソ浣犵殑嫻嬭瘯閫昏緫銆?/p>

鍐嶆涓嶄婦渚嬩簡(jiǎn)錛屼富瑕佷竴涓濊礬鍙互鐢╤ttpclint鏉ュ疄鐜伴噷闈㈢殑嫻嬭瘯浠g爜銆?br />

2錛岀劧鍚?鎵ц mvn clean post-integration-test -Pittest

濂戒簡(jiǎn) 灝卞彲浠ョ湅鍒版垜浠祴璇曠敤渚嬫槸鍚﹂氳繃銆?/p>

寤鴻錛氫互涓婄殑浠g爜鍙互鍔犲叆鍒扮埗綾葷殑pom涓紝浠ュ悗緇ф壙姝ょ埗pom鍚庯紝鍙渶瑕佹寜浠ヤ笂2姝ワ紝灝卞彲浠ュ仛鍒皐eb搴旂敤嫻嬭瘯鑷姩鍖栦簡(jiǎn)銆?p> 





iamct 2012-04-21 11:57 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 英吉沙县| 巩义市| 江口县| 乐平市| 濉溪县| 呼伦贝尔市| 云梦县| 乌拉特前旗| 博客| 汕尾市| 太仆寺旗| 吴堡县| 右玉县| 徐汇区| 南康市| 永春县| 正蓝旗| 辽宁省| 沧州市| 乌拉特前旗| 宿松县| 大庆市| 五华县| 当涂县| 铁力市| 深州市| 若尔盖县| 永修县| 双江| 阳谷县| 阿拉善左旗| 页游| 保靖县| 磴口县| 武宁县| 凯里市| 南昌市| 金川县| 西平县| 临高县| 固原市|