默认生成Maven工程的pom内容
<?xml version="1.0" encoding="UTF-8"?>
<!--project是pom.xml根元素,它包含了pom.xml的一些约束信息,声明了一些POM相关的命名空间以及xsd元素-->
<!-- xmlns 命名空间,类似包名-->
<!-- xmlns:xsi xml遵循的标签规范-->
<!--xsi:schemaLocation 定义xmlschema的地址,xml书写时需要遵循的语法-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!-- 指定了当前pom.xml版本,目前固定为4.0.0版本。-->
<modelVersion>4.0.0</modelVersion>
<!-- 坐标 -->
<!-- 属于哪个组,一般是项目所在组织或公司域名的倒序 -->
<groupId>com.sx.kak</groupId>
<!-- 定义当前项目在组中的唯一ID,一个groupId下面可能多个项目,就是靠artifactId来区分的 -->
<artifactId>nacospro</artifactId>
<!-- 定义项目当前的版本 -->
<version>1.0-SNAPSHOT</version>
<!-- 打包类型,可取值:pom , jar , maven-plugin , ejb , war , ear , rar , par等等 -->
<packaging>jar</packaging>
<!-- 项目的名称(可省略) 默认artifactId,可修改为用户友好的名称 -->
<name>nacospro</name>
<!-- 仓库的地址(可省略) -->
<url>http://maven.apache.org</url>
<!--定义的依赖清单,有所依赖包都需要写在这个标签里面-->
<dependencies>
<!--具体的依赖 -->
<dependency>
</dependency>
</dependencies>
</project>
<dependencies>
<!--HuTool工具包 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<!--pagehelper-->
<dependency>
<!--依赖项的组织名-->
<groupId>com.github.pagehelper</groupId>
<!--依赖项的子项目名-->
<artifactId>pagehelper-spring-boot-starter</artifactId>
<!--依赖项的版本-->
<version>${pagehelper.version}</version>
<!-- 依赖项的适用范围 -->
<scope>test</scope>
<!-- 可选依赖 ,对外隐藏当前所依赖的资源,是不透明的;如果别人依赖了本项目,被配置的不会在别人的项目中依赖到-->
<optional>true</optional>
<!-- 排除依赖,主动断开依赖的资源,排除项目中的依赖冲突时使用,不依赖该项目,被排除的资源不需要指定版本-->
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>