maven解析之model

pom是project object model。
和Settings一样,Model也是需要由解析xml文件来构造。settings.xml与pom.xml的区别。

Model的节点

    private String modelVersion;
    private Parent parent;
    private String groupId;
    private String artifactId;
    private String version;
    private String packaging = "jar";
    private String name;
    private String description;
    private String url;
    private String childInheritAppendPath;
    private String inceptionYear;
    private Organization organization;
    private List<License> licenses;
    private List<Developer> developers;
    private List<Contributor> contributors;
    private List<MailingList> mailingLists;
    private Prerequisites prerequisites;
    private Scm scm;
    private IssueManagement issueManagement;
    private CiManagement ciManagement;
    private Build build;
    private List<Profile> profiles;
    private String modelEncoding = "UTF-8";
    private File pomFile;

节点Parent

    private String groupId;
    private String artifactId;
    private String version;
    private String relativePath = "../pom.xml";
    private Map<Object, InputLocation> locations;

model-builder模块

  1. building
  2. composition
  3. inheritance
  4. interpolation
  5. io
  6. locator
  7. management
  8. merge
  9. normalization
  10. path
  11. plugin
  12. profile
  13. resolution
  14. superpom
  15. validation

你可能感兴趣的:(maven)