写这篇文章的初衷还是想要了解POM文件的标签使用规则,因为看着POM文件总是编译不过去真的是很暴躁啊,于是来到了Maven官网,最好的文档自然是官网,POM文件解释的官网链接是what-is-the-pom。
看官网时才发现,当初设计Maven的人真的是理想远大呀。下面是POM文件的设计蓝图(官网原话),希望我辈共勉,早日设计出出自中国人的在计算机界影响深远的工具。下面是原话:
POM stands for "Project Object Model".
It is an XML representation of a Maven project held in a file named pom.xml.
When in the presence of Maven folks, speaking of a project is speaking in the philosophical sense, beyond a mere collection of files containing code.
A project contains configuration files, as well as the developers involved and the roles they play, the defect tracking system, the organization and licenses, the URL of where the project lives, the project's dependencies, and all of the other little pieces that come into play to give code life.
It is a one-stop-shop for all things concerning the project.
In fact, in the Maven world, a project does not need to contain any code at all, merely a pom.xml.
本文介绍了POM文件在Maven项目中的核心作用,阐述了其作为项目配置模型的详细设计,以及为何它超越了简单的代码集合。通过阅读Maven官网,理解POM如何整合项目信息,包括开发者角色、依赖管理等,成为项目全貌的集中体现。
2135

被折叠的 条评论
为什么被折叠?



