- Mastering Apache Maven 3
- Prabath Siriwardena
- 120字
- 2021-08-06 19:46:40
Chapter 3. Maven Configuration
Maven maintains its configuration at three different levels: global, user, and project. This chapter discusses how to customize Maven configuration at all three levels for optimal use:
- The global-level configuration is maintained at
MAVEN_HOME/conf/settings.xml
- The user-level configuration is maintained at
USER_HOME/.m2/settings.xml
- The project-level configuration is maintained at
PROJECT_HOME/pom.xml
Note
The
settings.xml
file is the God of all Maven configurations. The XML schema of the configuration elements defined insettings.xml
is available at http://maven.apache.org/xsd/settings-1.0.0.xsd. The following snippet shows a high-level outline of thesettings.xml
file:<settings> <localRepository/> <interactiveMode/> <usePluginRegistry/> <offline/> <pluginGroups/> <servers/> <mirrors/> <proxies/> <profiles/> <activeProfiles/> </settings>
As we proceed with this chapter, the following topics will be covered:
- Maven Wagon
- Proxy authentication
- Secured repositories
- Integration with Source Control Management systems
- Mirrored repositories
- Deploying artifacts
- Enabling logging
推薦閱讀
- iOS Game Programming Cookbook
- Mobile Application Development:JavaScript Frameworks
- Learn Type:Driven Development
- 控糖控脂健康餐
- Learn Scala Programming
- Backbone.js Blueprints
- Unity 5 for Android Essentials
- Learning FuelPHP for Effective PHP Development
- 智能搜索和推薦系統:原理、算法與應用
- UNIX Linux程序設計教程
- JavaScript應用開發實踐指南
- OpenMP核心技術指南
- 大學計算機基礎實驗指導
- Leaflet.js Essentials
- 生成藝術:Processing視覺創意入門