Maven:POM元素参考。

本文详细解析了Maven项目的POM文件,介绍了其根元素、继承、聚合等核心概念,以及坐标元素、输出目录、资源过滤等配置项,涵盖了从项目基本信息到构建过程的全面指南。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

元素名称简介

<project>

<parent>

<modules>

<groupId>

<artifactId>

<version>

<packaging>

<name>

<description>

<organization>

<licenses> <license>

<mailingLists> </mailingList>

<developers></developer>

<contributors> <contributor>

<issueManagement>

<ciManagement>

<scm>

<prerequisites> <maven>

<build> <sourceDirectory>

<build> <scriptSourceDirectory>

<build> <testSourceDirectory>

<build> <outputDirectory>

<build> <testOutputDirectory>

<build> <resources> <resource>

<build> <testResources> <testResource>

<build> <finalName>

<build> <directory>

<build> <filters> <filter>

<build> <extensions> <extension>

<build> <pluginManagement>

<build> <plugins> <plugin>

<profiles> <profile>

<distributionManagement> <repository>

<distributionManagement> <snapshotRepository>

<distributionManagement> <site>

<repositories> <repository>

<pluginRepositories> <pluginRepository>

<dependencies> </dependency>

<dependencyManagement>

<properties>

<reporting> <plugins>

POM的XML根元素

声明继承

声明聚合

坐标元素之一

坐标元素之一

坐标元素之一

坐标元素之一,默认值jar

名称

描述

所属组织

许可证

邮件列表

开发者

贡献者

问题追踪系统

持续继承系统

版本控制系统

要求Maven最低版本,默认值2.0

主源码目录

脚本源码目录

测试源码目录

主源码输出目录

测试源码输出目录

主资源目录

测试资源目录

输出主构件的名称

输出目录

通过properties文件定义资源过滤属性

扩展Maven的核心

插件管理

插件

POM Profile

发布版本部署仓库

快照版本部署仓库

站点部署

仓库

插件仓库

依赖

依赖管理

Maven属性

报告插件

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值