maven 核心概念,maven核心

來源:互聯網
上載者:User

maven 核心概念,maven核心

1.pom 項目物件模型 (project object model)

pom的組成
1.項目基本資料
2.構建環境 --dev,test,beta,prod
3.pom關係 --依賴jar包
4.構建設定 -- plugin 外掛程式

2.外掛程式與目標
調用外掛程式目標的兩種方式:
1.將外掛程式目標與生命週期綁定,執行生命週期;
2.直接執行外掛程式目標

常見的maven外掛程式:
1.maven-archetype-plugins
2.maven-dependency-plugin
3.maven-help-plugin
4.maven-resources-plugin
5.maven-surefire-plugin
6.jetty-maven-plugin
7.maven-enforcer-plugin --

3.maven項目的生命週期
生命週期: 資源檔處理-編譯-類檔案處理-測試資源檔處理-測試-打包

4.maven的依賴管理
maven可以處理傳遞性依賴,關聯的jar全部寫入項目中.
依賴的取值範圍: <scrope></scrope>
compile(編譯範圍)
provided(已提供範圍)
runtime(運行時範圍)
test(測試範圍)
system(系統範圍)

5.maven倉庫

6.項目網站報告(配置資源)

聯繫我們

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