官术网_书友最值得收藏!

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 in settings.xml is available at http://maven.apache.org/xsd/settings-1.0.0.xsd. The following snippet shows a high-level outline of the settings.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
主站蜘蛛池模板: 衡水市| 霍林郭勒市| 逊克县| 冕宁县| 酉阳| 咸阳市| 遵义县| 博爱县| 高碑店市| 环江| 犍为县| 岑溪市| 大石桥市| 拉孜县| 新建县| 托克托县| 宜君县| 体育| 资阳市| 桦川县| 锦屏县| 永丰县| 西乌珠穆沁旗| 安仁县| 泽库县| 如皋市| 凌云县| 麻栗坡县| 通海县| 德兴市| 柳州市| 汉中市| 科尔| 任丘市| 伊春市| 蓬莱市| 蒲江县| 鲜城| 库尔勒市| 西宁市| 莱西市|