Maven POM元素解析(二)

embedded/2024/9/22 22:25:13/


一、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/embedded/13226.html

相关文章

❤网络跨域报错篇http

❤网络跨域报错篇http 1、常见的网络错误类型 &#xff08;1&#xff09;服务端错误&#xff1a; 服务器返回了错误的数据或未正常响应请求。可以通过查看服务端的日志或与后端开发人员进行沟通来解决这个问题。 &#xff08;2&#xff09;跨域问题&#xff1a; 浏览器处于…

ui_admin_vue3启动

1、要求node版本16.20.2&#xff0c;小于这个版本npm run dev会报错UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token ‘??‘ 逻辑空赋值(??)是ES2021的语法&#xff0c;node v15.0.0以上才支持逻辑空赋值(??)的语法。之前为了兼容旧代码使用的node版本…

vue快速入门(四十一)组件通信-依赖注入

注释很详细&#xff0c;直接上代码 上一篇 新增内容 祖先组件向下传值子代组件接受数据 源码 App.vue <template><div id"app"><sonComponent></sonComponent></div> </template> <script> import sonComponent from &qu…

Day 32 122.买卖股票的最佳时机II 55. 跳跃游戏 45.跳跃游戏II

买卖股票的最佳时期Ⅱ 给定一个数组&#xff0c;它的第 i 个元素是一支给定股票第 i 天的价格。 设计一个算法来计算你所能获取的最大利润。你可以尽可能地完成更多的交易&#xff08;多次买卖一支股票&#xff09;。 注意&#xff1a;你不能同时参与多笔交易&#xff08;你…

《Beginning C++20 From Novice to Professional》第二章Fundamental Types

本章将介绍C的基础数据类型&#xff0c;主要涉及下列方面&#xff1a; 变量的声明、初始化、赋值整数字面量浮点数如何计算变量类型转换字符相关auto关键字 Variables, Data, and Data Types 这里先给出变量的定义&#xff1a;有名字的一块内存&#xff0c;这个变量的类型决…

图片像素高效处理,轻松将图片像素进行按比例缩小50%并保存在指定位置,让您的图像更精致!

图像与我们的日常生活紧密相连&#xff0c;从社交媒体分享到专业摄影作品展示&#xff0c;高质量的图片像素处理显得至关重要。然而&#xff0c;面对海量的图片数据和高分辨率的图像处理需求&#xff0c;如何高效、简便地进行像素调整成为了众多用户关注的焦点。 第一步&#…

Redission分布式锁应用案例(生成业务单号)

//redission 客户端Component public class RedisUUID {Autowiredprivate RedisTemplate redisTemplate ;private UUIDStorage defaultUUIDStorage;private RedissonClient redissonClient;public RedisUUID(UUIDStorage defaultUUIDStorage , RedissonClient redissonClient){…

Python爬取猫眼电影票房 + 数据可视化

目录 主角查看与分析 爬取可视化分析猫眼电影上座率前10分析猫眼电影票房场均人次前10分析猫眼电影票票房占比分析 主角查看与分析 爬取 对猫眼电影票房进行爬取&#xff0c;首先我们打开猫眼 接着我们想要进行数据抓包&#xff0c;就要看网站的具体内容&#xff0c;通过按F12…