更多的项目信息
- name:项目除了artifactId外,可以定义多个名称
- description: 项目描述
- url: 项目url
- inceptionYear:创始年份
Licenses
xml 代码
- <licenses>
- <license>
- <name>Apache 2<!---->name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt<!---->url>
- <distribution>repo<!---->distribution>
- <comments>A business-friendly OSS license<!---->comments>
- <!---->license>
- <!---->licenses>
Organization 配置组织信息
xml 代码
- <organization>
- <name>Codehaus Mojo<!---->name>
- <url>http://mojo.codehaus.org<!---->url>
- <!---->organization>
Developers 配置开发者信息
xml 代码
- <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>
Contributors
xml 代码
- <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>-5<!---->timezone>
- <properties>
- <gtalk>some.name@gmail.com<!---->gtalk>
- <!---->properties>
- <!---->contributor>
- <!---->contributors>
环境设置
Issue Management 定义相关的bug跟踪系统,如bugzilla,testtrack,clearQuest等
xml 代码
- <issueManagement>
- <system>Bugzilla<!---->system>
- <url>http://127.0.0.1/bugzilla<!---->url>
- <!---->issueManagement>
Continuous Integration Management 连续整合管理,基于triggers或者timings
xml 代码
- <ciManagement>
- <system>continuum<!---->system>
- <url>http://127.0.0.1:8080/continuum<!---->url>
- <notifiers>
- <notifier>
- <type>mail<!---->type>
- <sendOnError>true<!---->sendOnError>
- <sendOnFailure>true<!---->sendOnFailure>
- <sendOnSuccess>false<!---->sendOnSuccess>
- <sendOnWarning>false<!---->sendOnWarning>
- <configuration><address>continuum@127.0.0.1<!---->address><!---->configuration>
- <!---->notifier>
- <!---->notifiers>
- <!---->ciManagement>
Mailing Lists
xml 代码
- <mailingLists>
- <mailingList>
- <name>User List<!---->name>
- <subscribe>user-subscribe@127.0.0.1<!---->subscribe>
- <unsubscribe>user-unsubscribe@127.0.0.1<!---->unsubscribe>
- <post>user@127.0.0.1<!---->post>
- <archive>http://127.0.0.1/user/<!---->archive>
- <otherArchives>
- <otherArchive>http://base.google.com/base/1/127.0.0.1<!---->otherArchive>
- <!---->otherArchives>
- <!---->mailingList>
- <!---->mailingLists>
SCM 软件配置管理,如cvs 和svn
xml 代码
- <scm>
- <connection>scm:svn:http://127.0.0.1/svn/my-project<!---->connection>
- <developerConnection>scm:svn:https://127.0.0.1/svn/my-project<!---->developerConnection>
- <tag>HEAD<!---->tag>
- <url>http://127.0.0.1/websvn/my-project<!---->url>
- <!---->scm>
Repositories
配置同setting.xml中的开发库
Plugin Repositories 配置同 repositories
Distribution Management 用于配置分发管理,配置相应的产品发布信息,主要用于发布,在执行mvn deploy后表示要发布的位置 1 配置到文件系统
xml 代码
- <distributionManagement>
- <repository>
- <id>proficio-repository<!---->id>
- <name>Proficio Repository<!---->name>
- <url>file://${basedir}/target/deploy<!---->url>
- <!---->repository>
- <!---->distributionManagement>
2 使用ssh2配置
xml 代码
- <distributionManagement>
- <repository>
- <id>proficio-repository<!---->id>
- <name>Proficio Repository<!---->name>
- <url>scp://sshserver.yourcompany.com/deploy<!---->url>
- <!---->repository>
- <!---->distributionManagement>
3 使用sftp配置
xml 代码
- <distributionManagement>
- <repository>
- <id>proficio-repository<!---->id>
- <name>Proficio Repository<!---->name>
- <url>sftp://ftpserver.yourcompany.com/deploy<!---->url>
- <!---->repository>
- <!---->distributionManagement>
4 使用外在的ssh配置 编译扩展用于指定使用wagon外在ssh提供,用于提供你的文件到相应的远程服务器。
xml 代码
- <distributionManagement>
- <repository>
- <id>proficio-repository<!---->id>
- <name>Proficio Repository<!---->name>
- <url>scpexe://sshserver.yourcompany.com/deploy<!---->url>
- <!---->repository>
- <!---->distributionManagement>
- <build>
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon<!---->groupId>
- <artifactId>wagon-ssh-external<!---->artifactId>
- <version>1.0-alpha-6<!---->version>
- <!---->extension>
- <!---->extensions>
- <!---->build>
5 使用ftp配置
xml 代码
- <distributionManagement>
- <repository>
- <id>proficio-repository<!---->id>
- <name>Proficio Repository<!---->name>
- <url>ftp://ftpserver.yourcompany.com/deploy<!---->url>
- <!---->repository>
- <!---->distributionManagement>
- <build>
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon<!---->groupId>
- <artifactId>wagon-ftp<!---->artifactId>
- <version>1.0-alpha-6<!---->version>
- <!---->extension>
- <!---->extensions>
- <!---->build>
repository 对应于你的开发库,用户信息通过settings.xml中的server取得
Profiles 类似于settings.xml中的profiles,增加了几个元素,如下的样式:
xml 代码
- <profiles>
- <profile>
- <id>test<!---->id>
- <activation>...<!---->activation>
- <build>...<!---->build>
- <modules>...<!---->modules>
- <repositories>...<!---->repositories>
- <pluginRepositories>...<!---->pluginRepositories>
- <dependencies>...<!---->dependencies>
- <reporting>...<!---->reporting>
- <dependencyManagement>...<!---->dependencyManagement>
- <distributionManagement>...<!---->distributionManagement>
- <!---->profile>
- <!---->profiles>