POM文件详解
对于POM文件的结构一直都是本人的一个困惑点,一个个冒出来的配置每每有不明了的时候,都要在互联网上翻阅很久,这里直接将所有的标签列举如下,方面查阅。
1. 总的架构
xxx
xxx
xxx
xxx
4.0.0
xxx
xxx
jar
1.0-SNAPSHOT
xxx-maven
http://maven.apache.org
A maven project to study maven.
jira
http://jira.baidu.com/banseon
Demo
[email protected]
[email protected]
[email protected]
http:/hi.baidu.com/banseon/demo/dev/
HELLO WORLD
banseon
[email protected]
Project Manager
Architect
demo
http://hi.baidu.com/xxx
No
-5
Project Manager
Architect
No
Apache 2
http://www.baidu.com/banseon/LICENSE-2.0.txt
repo
A business-friendly OSS license
scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk)
scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk
http://svn.baidu.com/banseon
demo
http://www.baidu.com/banseon
true/false
true/false
true/false
true/false
true/false
true/false
true/false
jdk版本,如:1.7
Windows XP
Windows
x86
5.1.2600
mavenVersion
2.0.3
/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/
/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/
true/false
true/false
true/false
true/false
true/false
true/false
banseon-repository-proxy
banseon-repository-proxy
http://192.168.1.169:9999/repository/
default
org.apache.maven
maven-artifact
3.8.1
jar
test
spring-core
org.springframework
true
true/false
true/false
banseon-maven2
banseon maven2
file://${basedir}/target/deploy
banseon-maven2
Banseon-maven2 Snapshot Repository
scp://svn.baidu.com/banseon:/usr/local/maven-snapshot
banseon-site
business api website
scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web
value
2. 其中的节点详情
(1)一般信息节点
1.1. issueManagement项目问题管理系统
jira
http://jira.baidu.com/banseon
1.2 项目持续集成信息
1.3 mailingLists项目相关邮件列表信息
Demo
[email protected]
[email protected]
[email protected]
http:/hi.baidu.com/banseon/demo/dev/
1.4 developers项目开发者列表
HELLO WORLD
banseon
[email protected]
Project Manager
Architect
demo
http://hi.baidu.com/xxx
No
-5
1.5 contributors项目的其他贡献者列表
Project Manager
Architect
No
1.6 licenses许可证列表
Apache 2
http://www.baidu.com/banseon/LICENSE-2.0.txt
repo
A business-friendly OSS license
1.7 scm和organization
scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk)
scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk
http://svn.baidu.com/banseon
demo
http://www.baidu.com/banseon
(2) 重要的信息
2.1 build 构建项目需要的信息
true/false
true/false
true/false
true/false
true/false
true/false
2.2 profiles 构建规则
个人认为可以看作一个pom中规则的集合,符合设定条件则激活,或者手动激活
true/false
jdk版本,如:1.7
Windows XP
Windows
x86
5.1.2600
mavenVersion
2.0.3
/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/
/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/
...
2.3 modules模块:略
2.4 repositories 远程仓库设置
banseon-repository-proxy
banseon-repository-proxy
http://192.168.1.169:9999/repository/
default
2.5 pluginRepositories插件仓库
2.6 dependencies依赖
org.apache.maven
maven-artifact
3.8.1
jar
test
spring-core
org.springframework
true
2.7 reporting 报表产生的规范
true/false
true/false
2.8 dependencyManagement依赖管理
2.9 distributionManagement项目分发信息
banseon-maven2
banseon maven2
file://${basedir}/target/deploy
banseon-maven2
Banseon-maven2 Snapshot Repository
scp://svn.baidu.com/banseon:/usr/local/maven-snapshot
banseon-site
business api website
scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web
2.10 properties配置参数
value