標籤:blog http os io for 2014 art 問題
先要在MyEclipse中對Maven進行設定:
到此Maven對MyEclipse的支援設定完畢。 下面我們在MyEclipse中建立一個Maven標準的Web工程:New --> Web Project到此為止一個Maven標準的Web工程建立成功了。 添加Maven的標準目錄:按右鍵項目名稱-->New-->Source Folder到此為止添加Maven的契約目錄完畢。 按右鍵項目名稱-->Build Path-->Configure Build Path...按右鍵項目名稱-->Maven4MyEclipse-->Update Project Configuration... 到此為止MyEclipse中建立的Maven工程的jdk版本更改完畢。--------------------------------------------------------------------------------------------------筆者這邊多囉嗦一句,在用MyEclipse建立Maven工程的時候可能會碰到下面的這個問題:CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 from/to central (http:// repo1.maven.org/maven2): No response received after 60000【解決辦法】:筆者這邊多囉嗦一句,在用MyEclipse建立Maven工程的時候可能會碰到下面的這個問題:Failure to transfer org.apache.maven.plugins:maven-war-plugin:jar:2.1.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-war-plugin:jar:2.1.1 from/to central (http://repo1.maven.org/maven2): No response received after 60000【解決辦法】: