The Basics和Build Settings定义项目的POM已经足够,但More Project Information可以用于一些信息的扩展,下面介绍More Project Information中的元素。
name
项目的更易读的名称。
description
项目的描述信息。
url
项目所在的url。
inceptionYear
项目开始日期
licenses
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
licenses是定义一个项目(或部分项目)怎么和什么时候可以被使用的法律文件。项目只能列出直接应用到该项目的licenses,不应该列出项目所依赖的组件的licenses。Maven当前只是将这些licenses展示在项目生成的站点上。
1)name、url和comments:自我说明;
2)distribution:说明该项目在什么情况下可以合法传播。
organization
项目所在组织的基本信息。
<organization>
<name>Codehaus Mojo</name>
<url>http://mojo.codehaus.org</url>
</organization>
developers
项目的核心开发者信息。
<developers>
<developer>
<id>eric</id>
<name>Eric</name>
<email>eredmond@codehaus.org</email>
<url>http://eric.propellors.net</url>
<organization>Codehaus</organization>
<organizationUrl>http://mojo.codehaus.org</organizationUrl>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>-6</timezone>
<properties>
<picUrl>http://tinyurl.com/prv4t</picUrl>
</properties>
</developer>
</developers>
id, name, email:开发者的信息;
organization, organizationUrl:开发者的组织信息;
roles:开发者所承担的角色,可能有多个;
timezone:所在时区;
properties:开发者的其它信息;
Contributors
项目的辅助人员信息。
<contributors>
<contributor>
<name>Noelle</name>
<email>some.name@gmail.com</email>
<url>http://noellemarie.com</url>
<organization>Noelle Marie</organization>
<organizationUrl>http://noellemarie.com</organizationUrl>
<roles>
<role>tester</role>
</roles>
<timezone>America/Vancouver</timezone>
<properties>
<gtalk>some.name@gmail.com</gtalk>
</properties>
</contributor>
</contributors>