锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产一区二区在线,免费污视频在线观看,国产人成精品一区二区三http://www.aygfsteel.com/supercrsky/category/52596.html涓撴敞浜嶫avaWeb寮鍙?/description>zh-cnTue, 26 Mar 2013 12:58:21 GMTTue, 26 Mar 2013 12:58:21 GMT60MyEclipse灝嗘櫘閫歫ava欏圭洰杞崲鎴怣aven欏圭洰http://www.aygfsteel.com/supercrsky/articles/387494.html銆呬笂鍠勮嫢姘淬?/dc:creator>銆呬笂鍠勮嫢姘淬?/author>Tue, 11 Sep 2012 10:37:00 GMThttp://www.aygfsteel.com/supercrsky/articles/387494.htmlhttp://www.aygfsteel.com/supercrsky/comments/387494.htmlhttp://www.aygfsteel.com/supercrsky/articles/387494.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/387494.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/387494.html
嬋媧籑aven鍚庯紝鏄劇ず濡備笅錛?br />
鐐瑰嚮瀹屾垚灝卞悗灝卞皢鏅氱殑java project杞崲鎴恗aven project浜嗐?br />榪欓噷鎴戜滑瑕佹墜鍔ㄥ垱寤簊rc/main/java,src/test/java 鐩綍銆?br />


鍒拌繖涓姝ワ紝鍓╀笅鐨勬搷浣滃氨鍜屼笂涓鍥炶鍒扮殑鎿嶄綔涓鏍蜂簡銆傛垜浠厛娣誨姞Junit渚濊禆錛屽啀鍐欎竴涓祴璇曠被
灝卞彲浠ヨ繘琛宮aven test浜嗐?br />


]]>
浣跨敤MyEclipse鏋勫緩MAVEN欏圭洰http://www.aygfsteel.com/supercrsky/articles/387462.html銆呬笂鍠勮嫢姘淬?/dc:creator>銆呬笂鍠勮嫢姘淬?/author>Tue, 11 Sep 2012 06:25:00 GMThttp://www.aygfsteel.com/supercrsky/articles/387462.htmlhttp://www.aygfsteel.com/supercrsky/comments/387462.htmlhttp://www.aygfsteel.com/supercrsky/articles/387462.html#Feedback3http://www.aygfsteel.com/supercrsky/comments/commentRss/387462.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/387462.html Maven鏈濂介厤緗垚浣犺嚜宸卞畨瑁呯殑閭d釜錛孧yEclipse鑷甫浼氭湁浜涜Bug銆?br />

鐢╪exus浠g悊Maven鐨勪腑澶粨搴擄紝setting.xml鐨勯厤緗枃浠朵慨鏀瑰唴瀹瑰涓嬶細
<mirrors>
     <mirror>
          <id>nexus</id>
          <mirrorOf>*</mirrorOf>
          <name>Nexus Mirror</name>
          <url>http://localhost:8081/nexus/content/groups/public</url>
     </mirror>
  </mirrors>
  
  <profiles>
     <profile>
      <id>nexus</id>
      <repositories>
        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
      </repositories>
     <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>nexus</activeProfile>
  </activeProfiles>
http://localhost:8081/nexus/content/groups/public 鏄粨搴撶粍鐨勫湴鍧銆?br /> 鎵撲笅MyEclipse鏂板緩宸ョ▼鐨勭晫闈紝閫夋嫨Maven涓嬬殑Maven Project錛屾墦寮濡備笅鍥劇殑鍚戝錛?br />
榪欓噷鎴戜滑瑕侀変腑create a simple project銆?br /> 鐐瑰嚮涓嬩竴姝ワ紝濉啓GAV鐩稿叧鍐呭銆?br />
鐐瑰嚮瀹屾垚鍚庯紝鎴戜滑灝卞凡緇忔垚鍔熷垱寤轟簡涓涓狹aven project浜嗐?br /> 宸ョ▼鐨勯粯璁ょ洰褰曠粨鏋勫涓嬶細


鎵鏈夌殑Java婧愭枃浠墮兘瑕佸啓鍦╯rc/main/java鐩綍涓嬶紝鎵鏈夌殑嫻嬭瘯綾婚兘瑕佸啓鍦╯rc/test/java涓嬮潰錛岃繖鏄疢aven鐨勯粯璁ゅ箋?br />姝ゆ椂,pom.xml閲屽彧鏈夐粯璁ょ殑灞炴?br />
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.test</groupId>
  <artifactId>test</artifactId>
  <version>0.0.1-SNAPSHOT</version>
</project>
榪欐槸鏈綺劇畝鐨刾om.xml浜嗐?br />榪欐椂鎴戜滑鍔犲叆junit鐨勬敮鎸侊紝鏂板緩涓涓祴璇曠被銆?br />鍦ㄩ」鐩笂鍙抽敭Maven-Add Dependency錛屾樉紺哄涓嬬晫闈細

杈撳叆junit鍔犲叆嫻嬭瘯鏀寔綾誨簱銆?br />鍦╯rc/test/java涓嬫柊寤轟竴涓祴璇曠被濡備笅錛?br />
package com;
import org.junit.Test;
public class TestRun
{
@Test
public void testA()
{
System.out.println("test a method ");
}
@Test
public void testB()
{
System.out.println("test b method ");
}
}
鍙抽敭Run As ----- Maven test錛岃繘琛屾祴璇曪紝鏄劇ず緇撴灉濡備笅錛?br />


[INFO] Scanning for projects
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ test ---
[debug] execute contextualize
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ test ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ test ---
[debug] execute contextualize
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ test ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ test ---
[INFO] Surefire report directory: D:\workspace\test\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.TestRun
test a method 
test b method 
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.847s
[INFO] Finished at: Tue Sep 11 14:20:59 CST 2012
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
ok,涓涓熀鏈殑maven欏圭洰宸茬粡鏋勫緩瀹屾垚銆傛垜浠繕鍙互灝嗙幇瀛樼殑java欏圭洰鍒╃敤myclipse鏂逛究鐨勮漿鎹㈡垚maven project錛屾閮ㄥ垎鍐呭鎴戜滑鍦ㄤ笅涓鑺傞噷璁ㄨ銆?img src ="http://www.aygfsteel.com/supercrsky/aggbug/387462.html" width = "1" height = "1" />

]]>
主站蜘蛛池模板: 宁远县| 锦屏县| 九寨沟县| 云林县| 彭阳县| 乌鲁木齐市| 瑞金市| 本溪市| 临城县| 金溪县| 美姑县| SHOW| 丘北县| 抚宁县| 阿鲁科尔沁旗| 双城市| 淮阳县| 大关县| 哈巴河县| 武邑县| 阳泉市| 禄劝| 武山县| 永年县| 丹寨县| 郸城县| 淮北市| 开原市| 玉屏| 叙永县| 桃江县| 仪征市| 民和| 招远市| 涞源县| 丹江口市| 河东区| 彭泽县| 息烽县| 融水| 九江市|