在线书 Project Object Model
- POM: things and actions. things in pom.xml and actions in your command and life cyle (phase, goal);
- The POM is also not specific to building Java projects;
- The POM contains four categories of description and configuration

- The Super POM: All Maven project POMs extend the Super POM, which defines a set of defaults shared by all projects. This Super POM is a part of the Maven installation. it is in in ${M2_HOME}/lib/maven_*.jar;
- The Super POM defines some standard configuration variables that are inherited by all projects. Like central repo, plugin repo, folder structures, etc;
- The Effective POM: merge between the Super POM and your pom:
$ mvn help:effective-pom; - Project version:
<major version>.<minor version>.<incremental version>-<qualifier>; - Keeping your version numbers aligned with this standard will become very important when you want to start using version ranges in your POMs. or it will use String comparison;
- The qualifier exists to capture milestone builds: alpha and beta releases;
- Use "alpha-02" as qualifier, not "alpha-2", when you have "alpha-10";
- SNAPSHOT versions are used for projects under active development.
- Property References: preceded by a dollar sign and surrounded by two curly braces. ex:
${project.groupId}. could be: env, project, settings;
标签: none