<?xml version="1.0" encoding="UTF-8"?> <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版本--> <modelVersion>4.0.0</modelVersion> <!--项目名 反写公司网址+项目名--> <groupId>com.yuyue</groupId> <!--模块名 项目名+模块名--> <artifactId>yuyue-mybatis</artifactId> <!--版本号--> <version>1.0-SNAPSHOT</version> <!--打包方式,默认为jar--> <packaging></packaging> <!--項目描述名--> <name></name> <!--项目地址--> <url></url> <!--项目描述--> <description></description> <!--依賴管理--> <dependencies> <dependency> <groupId></groupId> <artifactId></artifactId> <version></version> <type></type> <!--依赖范围。--> <!--compile:默认的范围,编译、测试、运行都有效--> <!--provide:编译和测试时有效--> <!--runtime:在测试和运行时有效--> <!--test:在测试范围有效--> <!--system :编译和测试时有效--> <scope></scope> <!--设置依赖是否可选--> <optional></optional> <!--排除依赖传递列表,比如a依赖b,b依赖c,我不想让a依赖c--> <exclusions> <exclusion> </exclusion> </exclusions> </dependency> </dependencies> <dependencyManagement></dependencyManagement> <build> <!--插件列表--> <plugins> <plugin> <groupId></groupId> <artifactId></artifactId> <version></version> </plugin> </plugins> </build> <parent></parent> <modules></modules> </project>
pom文件标签详解
最新推荐文章于 2025-05-12 11:37:57 发布