Maven 是 Apache 软件基金会组织维护的一款自动化构建工具,专注服务于 Java 平台的项目构建和 依赖管理。
1 Introduction
Maven, a Yiddish word meaning accumulator of knowledge, began as an attempt to simplify the build processes in the Jakarta Turbine project. There were several projects, each with their own Ant build files, that were all slightly different. JARs were checked into CVS. We wanted a standard way to build the projects, a clear definition of what the project consisted of, an easy way to publish project information, and a way to share JARs across several projects.
The result is a tool that can now be used for building and managing any Java-based project. We hope that we have created something that will make the day-to-day work of Java developers easier and generally help with the comprehension of any Java-based project.
1 介绍
Maven,一种意第绪语,意为知识累积,最初是为了简化Jakarta Turbine项目中的构建过程。有几个项目,每个项目都有自己的Ant构建文件,都略有不同。JARs被检查为CVS。我们想要一种构建项目的标准方法,对项目组成的内容的明确定义,发布项目信息的简便方法以及一种在几个项目中共享JARS的方法。结果是现在可以用于构建和管理任何基于Java的项目的工具。我们希望我们创造了一些东西,可以使Java开发人员的日常工作变得更加容易,并且通常有助于理解任何基于Java的项目。
2 Maven's Objectives
Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal, Maven deals with several areas of concern:
- Making the build process easy
- Providing a uniform build system
- Providing quality project information
- Encouraging better development practices
2 Maven的目标
Maven的主要目标是允许开发人员在最短的时间内理解开发工作的完整状态。为了实现这一目标,Maven处理了几个关注的领域:
- 使构建过程变得容易
- 提供统一的构建系统
- 提供优质的项目信息
- 鼓励更好的开发实践
2.1 Making the build process easy
While using Maven doesn't eliminate the need to know about the underlying mechanisms, Maven does shield developers from many details.