Maven POM元素解析(二)

devtools/2024/9/23 3:30:19/


一、parent

<parent>元素包含定位此项目将从中继承的父项目所需的信息。注意:此元素的子元素不是插值的,必须作为文字值给定。

ElementTypeDescription
groupIdString要从中继承的父项目的组id。
artifactIdString要从中继承的父项目的项目id。
versionString要继承的父项目的版本。
relativePathString签出中父pom.xml文件的相对路径。如果未指定,则默认为/pom.xml。Maven首先在文件系统上的这个位置查找父POM,然后在本地存储库中查找,最后在远程repo中查找。relativePath允许您选择不同的位置,例如,当您的结构是平的,或者更深而没有中间父POM时。但是,组ID、工件ID和版本仍然是必需的,并且必须与给定位置的文件匹配,否则它将恢复到POM的存储库。此功能仅用于增强该项目的本地签出中的开发。如果您想禁用该功能并始终从存储库中解析父POM,请将该值设置为空字符串。
默认值为:/pom.xml

.

二、organization

指定生成此项目的组织。

ElementTypeDescription
nameString组织的全名。
urlString组织主页的URL。

 三、license

描述此项目的许可证。这用于生成项目网站的许可证页面,并在其他报告和验证中加以考虑。为项目列出的许可证是项目本身的许可证,而不是依赖项的许可证。

ElementTypeDescription
nameStringThe full legal name of the license.
urlStringThe official url for the license text.
distributionStringThe primary method by which this project may be distributed.

repo

may be downloaded from the Maven repository

manual

user must manually download and install the dependency.

commentsStringAddendum information pertaining to this license.

四、developer 

有关此项目的一个开发者的信息。

ElementTypeDescription
idStringThe unique ID of the developer in the SCM.
nameStringThe full name of the contributor.
emailStringThe email address of the contributor.
urlStringThe URL for the homepage of the contributor.
organizationStringThe organization to which the contributor belongs.
organizationUrlStringThe URL of the organization.
roles/role*List<String>(Many) The roles the contributor plays in the project. Each role is described by a role element, the body of which is a role name. This can also be used to describe the contribution.
timezoneStringThe timezone the contributor is in. Typically, this is a number in the range -12 to +14 or a valid time zone id like "America/Montreal" (UTC-05:00) or "Europe/Paris" (UTC+01:00).
properties/key=value*Properties(Many) Properties about the contributor, such as an instant messenger handle.

五、contributor

对项目有贡献但没有提交权限的人员的描述。通常,这些贡献以提交的补丁的形式出现。

ElementTypeDescription
nameStringThe full name of the contributor.
emailStringThe email address of the contributor.
urlStringThe URL for the homepage of the contributor.
organizationStringThe organization to which the contributor belongs.
organizationUrlStringThe URL of the organization.
roles/role*List<String>(Many) The roles the contributor plays in the project. Each role is described by a role element, the body of which is a role name. This can also be used to describe the contribution.
timezoneStringThe timezone the contributor is in. Typically, this is a number in the range -12 to +14 or a valid time zone id like "America/Montreal" (UTC-05:00) or "Europe/Paris" (UTC+01:00).
properties/key=value*Properties(Many) Properties about the contributor, such as an instant messenger handle.

http://www.ppmy.cn/devtools/4079.html

相关文章

英特尔、联想等服务器曝出难以修复的漏洞

文章目录 前言一、漏洞潜伏六年,服务器供应链安全堪忧二、漏洞广泛存在但难以修复前言 近日,英特尔、联想等多个厂商销售的服务器硬件曝出一个难以修复的远程可利用漏洞。该漏洞属于供应链漏洞,源自一个被多家服务器厂商整合到产品中的开源软件包——Lighttpd。 Lighttpd是…

算法题解记录18+++搜索二维矩阵Ⅱ

本题可以说是运用二分查找的典例&#xff0c;即使是面对矩阵&#xff0c;只要是它保持“排序好”这样的结构&#xff0c;就一定能采用二分查找法。【你知道的&#xff0c;对于排序好的数组&#xff0c;二分查找几乎是最优秀的算法】 当然&#xff0c;答案提供的是“Z字形查找法…

c++中什么叫做窄式转换(narrowing conversions)以及窄式转换解决方案

c中什么叫做窄式转换(narrowing conversions)以及窄式转换解决方案 什么叫做窄式转换(narrowing conversions) 窄化转换&#xff08;narrowing conversion&#xff09;是指将一个值转换为另一种类型&#xff0c;但转换过程中丢失了信息或超出了目标类型的表示范围的情况。在C…

基于TCC的分布式事务

优质博文&#xff1a;IT-BLOG-CN 一、分布式事务简介 分布式的架构中&#xff0c;分布式的事务是一个绕不过的挑战&#xff0c;微服务理念的流行让分布式的问题日益突出。 在公司内部&#xff0c; 笔者所接触的管理系统中实际上也存在着分布式事务。 这里假设有这三个系统&…

HTML 入门 ( 一 )

HTML文档创建 首先创建一个txt文本文档 修改文件后缀 HTML标签 标签结构 标签又称为元素,是HTML的基本组成单位分为: 双标签与单标签推荐小写标签名 结构: 双标签示例代码: <marquee> My name is Kvein. </marquee>单标签示例代码: <input>标签的并列与嵌…

server_id 引发的 MySQL 级联复制同步异常

MySQL 级联复制的坑&#xff0c;我帮你们踩了。 作者&#xff1a;蒋士峰&#xff0c;爱可生 DBA 团队成员&#xff0c;熟悉 MySQL&#xff0c;Oracle 等数据库。每天的积累&#xff0c;时间久了&#xff0c;会带来不一样的收货。 爱可生开源社区出品&#xff0c;原创内容未经授…

欧拉公式;傅里叶变换;耳朵:声波(音频)眼睛:光波(图像) 大脑:傅里叶快速变换

目录 复分析 复数指数函数 欧拉公式 a点向量,方向和长度的向量;

信息系统项目管理师0056:数据管理(4信息系统管理—4.2管理要点—4.2.1数据管理)

点击查看专栏目录 文章目录 4.2管理要点4.2.1数据管理1.数据战略2.数据治理3.数据架构4.数据应用5.数据安全6.数据质量7.数据标准8.数据生存周期9.理论框架与成熟度4.2管理要点 信息系统管理涉及系统准备、设计、实施、运行等活动的众多方面,