eclipse 建立 maven 項目 步驟(初級入門新手)

來源:互聯網
上載者:User

標籤:io   ar   os   java   sp   檔案   on   art   cti   

安裝 maven(百度) 和在eclipse 中svn(上一篇)
修改 maven 本地倉庫
eclipse 屬性 maven--> installations-->添加新的 自訂安裝的 maven 指向 自訂安裝的 maven 路徑
--> user settings 修改global settings 和usersettings 改為 自訂安裝的 maven 路徑下 的conf-->settings.xml
settings.xml 裡面修改本地倉庫地址(自已百度怎麼修改 指向 maven 裡建立的 本地倉庫地址 Repository )
建立 maven 項目 只選 use default workspace location
next
選擇 maven-archetype-webapp
next
填寫 groupid 和 artifactid

1、項目屬性 project facets 修改 java 版本 1.6
2\添加運行時 tamcat 8.0
3\修改項目 Dynamic web module 版本 關掉 eclipse 開啟項目 檔案路徑 找到 。setting 下的
org.eclipse.wst.common.project.facet.core.xml 檔案 修改 jst.web 版本 為3.1
重新開啟項目 把當前項目 添加在 server裡
修改 pox 檔案 添加 項目 依賴 包括 spring 和 hibernate
修改 項目web.xml 支援 spring 和hibernate
添加 spring 和 hibernate 的設定檔

eclipse 建立 maven 項目 步驟(初級入門新手)

聯繫我們

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