maven pom 的 name 和 description 作

2020-05-25  本文已影响0人  林万程

很多人拿description来写中文名,实际上这里应该写描述,
因为name会在显示项目的地方出现,不推荐只有中文,
可以用下面的格式(简称可以是中文或英文):

<name>${project.artifactId} | 简称1 | 简称2</name>

官方文档

  <name>开发们常用的简称</name>
  <description>核心功能和在整个架构中的作用</description>
  <inceptionYear>成立年份</inceptionYear>
  <url>链接</url>

例子

  <artifactId>spring-boot-starter-parent</artifactId>
  <name>Spring Boot Starter Parent</name>
  <description>Parent pom providing dependency and plugin management for applications
        built with Maven</description>
name 显示的地方
上一篇 下一篇

猜你喜欢

热点阅读