锘??xml version="1.0" encoding="utf-8" standalone="yes"?>97中文在线,国产一区二三区好的,久久青草伊人http://www.aygfsteel.com/alwayscy/category/22583.htmlzh-cnTue, 29 Jan 2008 19:50:43 GMTTue, 29 Jan 2008 19:50:43 GMT60- 鏈榪戝湪鐢↗PA+SPRING+HIBERNATE鍙?qiáng)MAVEN2涓亣鍒扮殑闂鍜岃В鍐蟲(chóng)柟娉曞仛涓瑪璁?/title>http://www.aygfsteel.com/alwayscy/archive/2008/01/28/178283.html鎴戠埍浣?jīng)_▋鎴戠埍浣?jīng)_▋Mon, 28 Jan 2008 15:08:00 GMThttp://www.aygfsteel.com/alwayscy/archive/2008/01/28/178283.htmlhttp://www.aygfsteel.com/alwayscy/comments/178283.htmlhttp://www.aygfsteel.com/alwayscy/archive/2008/01/28/178283.html#Feedback0http://www.aygfsteel.com/alwayscy/comments/commentRss/178283.htmlhttp://www.aygfsteel.com/alwayscy/services/trackbacks/178283.html鎼緩MAVEN2鐨勫唴緗戞湇鍔″櫒錛氳緗竴涓洰褰曞湪WEB鏈嶅姟涓婂彲浠ヨ闂?
MYSQL鍙互琚閮ㄦ満鍣ㄨ繛鎺?
cannot connect to VM閿欒 闃呰鍏ㄦ枃
]]> - Jetty鍦╳indows涓嬮攣瀹歫s絳夐潤(rùn)鎬佹枃浠剁殑瑙e喅http://www.aygfsteel.com/alwayscy/archive/2007/05/27/120305.html鎴戠埍浣?jīng)_▋鎴戠埍浣?jīng)_▋Sun, 27 May 2007 08:50:00 GMThttp://www.aygfsteel.com/alwayscy/archive/2007/05/27/120305.htmlhttp://www.aygfsteel.com/alwayscy/comments/120305.htmlhttp://www.aygfsteel.com/alwayscy/archive/2007/05/27/120305.html#Feedback0http://www.aygfsteel.com/alwayscy/comments/commentRss/120305.htmlhttp://www.aygfsteel.com/alwayscy/services/trackbacks/120305.htmlJetty鍚姩鍚庯紝濡傛灉淇敼javascript鏂囦歡錛屽皢涓嶈兘淇濆瓨錛屼嬌璋冭瘯寰堥夯鐑?chǔ)銆傝繖鏄洜涓轟嬌鐢ㄤ簡(jiǎn)CACHE錛孞ETTY璇存槸WINDOWS涓嬬殑涓涓檺鍒躲傚彲浠ラ氳繃濡備笅鏂規(guī)硶淇錛?/p>
瑙e帇鍑?tt>jetty.jar涓殑org/mortbay/jetty/webapp/webdefault.xml鏂囦歡錛屽皢榪欎竴閫夐」鐢眛rue鏀逛負(fù)false錛屽彟瀛樺埌src/main/resources鐩綍錛屾垨鑰呭叾瀹冭嚜閫夌洰褰曘?/tt>
<init-param> <param-name>useFileMappedBuffer</param-name> <param-value>true</param-value> <!-- change to false --> </init-param>
鍦╬om.xml涓姞鍏ュ榪欎釜鏂囦歡鐨勬寚鍚戯細(xì)
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
</configuration>
</plugin>
鏈漢宸茬粡楠岃瘉閫氳繃銆?/tt>
闂鎻忚堪錛岀偣榪欓噷銆?/tt>

]]> - 澶╃敓涓瀵?Maven2+Jetty" -- Maven2鍒涘緩騫剁鐞哤ebApp錛屽茍浣跨敤Maven Jetty Plugin鍦‥clipse涓皟璇?/title>http://www.aygfsteel.com/alwayscy/archive/2007/05/19/118584.html鎴戠埍浣?jīng)_▋鎴戠埍浣?jīng)_▋Sat, 19 May 2007 15:08:00 GMThttp://www.aygfsteel.com/alwayscy/archive/2007/05/19/118584.htmlhttp://www.aygfsteel.com/alwayscy/comments/118584.htmlhttp://www.aygfsteel.com/alwayscy/archive/2007/05/19/118584.html#Feedback4http://www.aygfsteel.com/alwayscy/comments/commentRss/118584.htmlhttp://www.aygfsteel.com/alwayscy/services/trackbacks/118584.htmlMaven2浠f瘮1浠f敼榪涘緢澶氾紝鍏朵腑涓昏寮鴻皟鐨勬槸--瀹冧笉浠呬粎鏄釜渚濊禆鍖呯鐞嗗櫒!
寮濮嬪厛瑕佹帹鑽愪竴涓笓璁睲aven2鐨勭數(shù)瀛愪功緇欏ぇ瀹訛紝瀵筂AVEN瀛︿範(fàn)鐩稿綋鏈夊姪鐩婏細(xì)Better Builds with Maven
涓嬮潰灝變笓闂ㄤ粙緇嶄笅Maven2瀵筗EBAPP鍦ㄧ鐞嗗拰璋冭瘯鏂歸潰鐨勬敮鎸併?br />
1.鍒涘緩欏圭洰
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
涔熷彲鍙傜湅榪欓噷
鍒涘緩瑕佹敞鎰忛伒寰狹AVEN鐨勭洰褰曠粨鏋勶紝灝ゅ叾瑕佹敞鎰忔簮鏂囦歡瑕佹斁鍦╩ain/java涓嬶細(xì)

2. POM鏂囦歡鐨勯厤緗?br />
榪欓噷瑕佺壒鍒敞鎰忓resource涓鑺傜殑閰嶇疆錛屽洜涓烘垜鐨凷PRING浠ュ強(qiáng)WEB鐩稿叧鐨刋ML鏄斁鍦╓EB-INF鐩綍錛屼負(fù)浜?jiǎn)鍦╱nit test鐨勬椂鍊欎篃鑳界敤錛屽姞鍏ヤ簡(jiǎn)瀵硅繖浜涢厤緗枃浠剁殑寮曠敤銆傜浉褰撲簬鍔犱簡(jiǎn)涓涓猚lasspath銆?br />
榪欓噷榪樻湁涓彃鏇詫細(xì)涓嶇煡涓轟綍MAVEN2閲屾病鏈塉TA鐨勫寘錛岃嚜鍔ㄤ笅杞芥椂浼?xì)鏈夋彁绀烘暀浣犲浣曟墜宸ラ氳繃鍛戒護(hù)鍔犲叆錛岄潪甯哥畝鍗曘?br />
JETTY鐨刾lugin鏄負(fù)鍚庨潰鐢ㄥ畠鏉ヨ皟璇曞仛鍑嗗銆?br />
DWR涔熸槸鐩墠WEB寮鍙戜竴涓儹閫夈?br />
鍙﹀錛屼負(fù)浣跨敤JAVA5浠f潵緙栬瘧錛屽姞鍏ヤ簡(jiǎn)maven-compiler-plugin涓鑺傘?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.exchangebit.nms</groupId>
<artifactId>ebnms</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>ebnms Maven Webapp</name>
<url>http://maven.apache.org</url>
<build>
<finalName>ebnms</finalName>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/webapp/WEB-INF</directory>
<includes>
<include>**/*.xml</include>
<include>**/log4j.properties</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.11</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>3.1.11</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>1.2.6</version>
</dependency>
<dependency>
<groupId>dwr</groupId>
<artifactId>dwr</artifactId>
<version>1.1.3</version>
</dependency>
</dependencies>
</project>

浠g爜鏀懼叆/main/java鍚庯紝鍙互鍦ㄩ」鐩洰褰曚笅鎵ц錛?br />
mvn compile鏉ュ仛緙栬瘧灝濊瘯錛?br />
涔熷彲浠ョ敤mvn war鐩存帴鐢熸垚鎵撳寘鏂囦歡錛?br />
褰撶劧鏈鍚庡彲浠ョ敤 mvn jetty:run鏉ヨ繍琛屼綘鐨刉EBAPP!
3. 鍦‥clipse涓厤緗甹etty榪涜璋冭瘯
瑕佹妸涔嬪墠鐨勯」鐩鍏clipse棣栧厛璁﹎aven涓烘垜浠敓鎴怑clipse宸ョ▼鏂囦歡錛屾墽琛岋細(xì)
mvn eclipse:eclipse
鍐嶆妸M2_REPO鍔犲叆鍒癊clipse鐨刢lasspath涓紝鏈変袱縐嶆柟娉曪紝鍏朵腑鐨刡)鏂規(guī)硶鏄湁鏁堢殑錛?br />
a) mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
b) Window > Preferences. Select the Java > Build Path > Classpath Variables page

涔嬪悗錛屽氨鍙互閫氳繃Eclipse鐨凢ile->Import鍔熻兘灝嗗伐紼嬪鍏ャ?br />
鏈変漢涓轟簡(jiǎn)浣跨敤WEBAPP寮鍙戝姛鑳斤紝鑰岃璞YECLIPSE榪欐牱鐨勫法鐗┿傛湁浜?jiǎn)JETTY錛岄氳繃杞繪澗閰嶇疆灝卞彲浠ュ疄鐜版瘮TOMCAT鏇村揩鏇翠究鎹風(fēng)殑瀹瑰櫒錛屾墍浠ュ湪璋冭瘯鏃跺己鍔涙帹鑽愯繖涓笢涓溿備笅闈㈠氨鏉ョ湅涓嬪浣曢厤緗?br />
鍏堜笅閰嶇疆涓涓閮ㄥ伐鍏鳳紝鏉ヨ繍琛孞ETTY錛?br />
閫夋嫨鑿滃崟Run->External Tools->External Tools ...鍦ㄥ乏杈歸夋嫨Program錛屽啀鐐筃ew錛?br />
閰嶇疆Location涓簃vn瀹屾暣鍛戒護(hù)琛屻?br />
閫夋嫨Working Directory涓烘湰欏圭洰銆?br />
Arguments濉啓錛歫etty:run
鍐嶇偣閫塃nviroment欏碉細(xì)鍔犲叆MAVEN_OPTS鍙橀噺錛屽間負(fù)錛?br />
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y
鍏朵腑錛屽鏋渟uspend=n 琛ㄧず涓嶈皟璇曪紝鐩存帴榪愯銆?br />
鐒跺悗錛岀偣APPLY錛屽啀鍏抽棴鏈璇濇銆?br />
鍙﹀娉ㄦ剰涓鐐癸紝濂藉儚external tool鑿滃崟欏瑰湪java browering鐨刾erspective涓嬫墠浼?xì)鍑虹幇銆傚鏋滃湪java涓嬬湅涓嶈錛屽彲浠ュ垏鎹笅璇曡瘯銆?br />

涓嬮潰鏂板緩榪愯閰嶇疆錛?br />
鐐歸塺un->debug...
閫変腑宸︽爲(wèi)涓殑Remote Java Application錛屽啀鐐筃ew銆?br />
閫夋嫨浣犵殑欏圭洰錛屽叧閿槸瑕佸~鍜屼箣鍓嶈緗閮ㄥ伐鍏鋒椂鐩稿悓鐨勭鍙e彿銆?br />

閰嶇疆灝卞畬鎴愪簡(jiǎn)錛屾闈㈠紑濮嬭皟璇曡繍琛岋細(xì)
棣栧厛瑕佹妸JETTY榪愯璧鋒潵(鏈夌偣璞OMCAT閲岀殑榪愯APPSERVER)錛屼粠Run->External Tools涓夋嫨涔嬪墠閰嶇疆鐨勫閮ㄥ伐鍏瘋繍琛岋紝榪欐椂LOG閲屼細(xì)鏄劇ず錛?br />
listening at port 4000瀛楁牱錛?br />
鍐嶉夋嫨Run->Debug閫夋嫨鎴戜滑鍒氬緩鐨勮繍琛岄厤緗紝榪欐椂紼嬪簭灝盧UN璧鋒潵浜?jiǎn)锛屽彲浠ラ氳繃WEB榪涜璁塊棶錛岃緗柇鐐硅皟璇曚簡(jiǎn)銆?br />

鍚庤錛?br />
鍦‥CLIPSE涓紝鏈夋洿鏂逛究楂樻晥鐨勮皟璇曟柟寮忥紝鐐硅繖閲?/a>

]]>
主站蜘蛛池模板:
安阳县|
共和县|
喜德县|
康乐县|
合水县|
榆中县|
阜宁县|
敦煌市|
泗阳县|
安康市|
巴林右旗|
茶陵县|
出国|
梅河口市|
沙洋县|
洪江市|
贵溪市|
信阳市|
厦门市|
萍乡市|
常德市|
洞头县|
龙里县|
泾阳县|
洱源县|
郴州市|
溧阳市|
东光县|
鲁甸县|
德州市|
海宁市|
新龙县|
遂昌县|
察隅县|
依兰县|
永新县|
治多县|
出国|
东海县|
新蔡县|
甘德县|