Maven的學習資料收集--(十)Myeclipse下建立Maven的Web項目

來源:互聯網
上載者:User

標籤: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【解決辦法】:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.