專案物件模型(POM)

Project Object Model

軟體專案管理及自動構建工具。基於專案物件模型(縮寫:POM)概念,利用一個中央資訊中心管理一個專案, 進行編譯, 測試, 發佈, 並能產生文檔及報告等步驟。


POM的目標


  1. 使專案開發過程更輕鬆.
  2. 提供統一開發系統.
  3. 提供專案品質資訊.
  4. 提供更容易開發的指南.
  5. 允許套件更新功能.


Project Object Model

Project Object Model provides all the configuration for a single project. General configuration includes the project's name, its owner and its dependencies on other projects. One can also configure individual phases of the build process, which are implemented as plugins. For example, one can configure the compiler-plugin to use Java version 1.5 for compilation, or specify that project can be packaged even if some unit test fails.

Larger projects should be divided into several modules, or sub-projects, each with its own POM. One can then write a root POM through which one can compile all the modules with a single command. POMs can also inherit configuration from other POMs. All POMs inherit from the Super POM[4] by default. Super POM provides default configuration, such as default source directories, default plugins and so on.

Subpages (1): Apache Maven
Comments