MyEclipse10.0構建maven web項目

來源:互聯網
上載者:User

標籤:如何   設定檔   src   artifact   eclipse   環境   ext   clip   tomcat   

1、安裝配置maven

  為了使用maven構建web項目,我們必須先安裝部署好maven環境。請看上一篇《maven的安裝與配置》文章。

2、在MyEclipse中配置maven

  開啟MyEclipse—》window—》搜尋maven,找到Maven4MyEclipse—》選擇Installations,點擊Add按鈕把已經安裝好的maven目錄添加進來。

  配置好之後,可以點擊User Settings,MyEclipse通過setting.xml設定檔已經把相關的本地庫及設定檔載入進來。

3、構建maven web項目

  選擇file—》new—》ather—》搜尋maven—》雙擊maven project。選擇項目的位置。

  點擊next按鈕,選擇maven-archetype-webapp項。

  點擊Next按鈕。填寫Group Id、Artifact Id、預設version、pakage資訊。

  點擊Finish按鈕完成構建。產生如下的項目結構

  手動添加其他資源套件。

  到此,項目已經構建完成。下面看看如何部署maven項目到tomcat,並能像普通web項目一樣可以進行調試,不需每次都要匯出war包部署到tomcat中。

4、

MyEclipse10.0構建maven web項目

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.