为了账号安全,请及时绑定邮箱和手机立即绑定

pom文件整体结构

标签:
Java

xml声明

<?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">

模型版本(一般为4.0.0)

<modelVersion>4.0.0</modelVersion>

基本结构

<groupId>反写的公司网址+项目名</groupId>
<artifactId>项目名+模块名</artifactId>
<version>0.0.1</version>
<!--第一个数字表示大版本号 
	第二个数字表示分支版本号 
	第三个数字表示小版本号 
	snapshot快照
	alpha内部测试
	beta公测
	Release稳定
	GA正式发布
-->
<packaging>jar</packaging>
<!--默认是jar,可以设置为war zip pom-->
<!--项目描述名 -->
<name></name>
<!--项目地址 -->
<url></url>
<!--项目描述 -->
<description></description>
<developers></developers>
<licenses></licenses>
<organization></organization>
<dependencies>
		<dependency>
			<groupId></groupId>
			<artifactId></artifactId>
			<version></version>
			<type></type>
			<!--依赖范围 -->
			<scope></scope>
			<!--设置依赖是否可选 -->
			<optional></optional>
			<!--排除依赖传递列表 -->
			<exclusions>
				<exclusion>
					<groupId></groupId>
					<artifactId></artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>
<!--依赖的管理 -->
	<dependencyManagement>
		<dependencies>
			<dependency></dependency>
		</dependencies>
	</dependencyManagement>
<build>
		<!--插件列表 -->
		<plugins>
			<plugin>
				<groupId></groupId>
				<artifactId></artifactId>
				<version></version>
			</plugin>
		</plugins>
	</build>
<!-- 继承 -->
	<parent></parent>
	<!-- 聚合 -->
	<modules>
		<module></module>
	</modules>
点击查看更多内容
1人点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消