先看一下Apache官網(wǎng)的解釋:
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM),
Maven can manage a project's build, reporting and documentation from a central piece of information.
翻譯:Maven是基于項目對象模型(POM即Project Object Model)刽虹,可以通過一小段描述信息來管理項目的構(gòu)建缸浦,報告和文檔的軟件項目管理工具。
通過上面這句話,我們可以了解到Maven不僅僅可以管理項目的構(gòu)建,而且可以根據(jù)項目源碼自動生成文檔,以及報告实愚。說句實話,對于我這種不太愿意寫文檔的人來說兔辅,實在是太方便了腊敲。
什么是Maven
Maven, a Yiddish word meaning accumulator of knowledge, was originally started 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 and 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.
翻譯:
Maven這個單詞來自于意第緒語,意為知識的積累维苔,最早在Jakata Turbine項目中它開始被用來試圖簡化構(gòu)建過程碰辅。當(dāng)時有很多項目,它們的Ant build文件僅有細微的差別介时,而JAR文件都由CVS來維護没宾。于是Maven創(chuàng)始者想要更加標(biāo)準(zhǔn)的方式構(gòu)建項目,該項目的清晰定義包括:一種很方便的方式來發(fā)布項目信息沸柔,以及一種在多個項目中共享JAR的方式循衰。
現(xiàn)在,Maven褐澎,成為了一種被用于構(gòu)建和管理任何基于Java項目的工具会钝。Maven創(chuàng)始者希望能夠更多的讓Java開發(fā)人員的日常工作更加容易,幫助理解任何基于Java項目工三。
maven的目標(biāo)
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 there are several areas of concern that Maven attempts to deal with:
1迁酸、Making the build process easy
2、Providing a uniform build system
3俭正、Providing quality project information
4奸鬓、Providing guidelines for best practices development
5、Allowing transparent migration to new features
翻譯:
Maven的主要目標(biāo)是為了使開發(fā)人員在最短的時間內(nèi)領(lǐng)會項目的所有狀態(tài)掸读。為了達到這一目標(biāo)串远,Maven考慮一下五個方面的內(nèi)容:
1、使得構(gòu)建過程更加容易寺枉,方便編譯抑淫,打包绷落,發(fā)布
2姥闪、為每個項目提供統(tǒng)一的配置
3、提供優(yōu)質(zhì)項目信息
4砌烁、最佳開發(fā)實踐
5筐喳、安裝和更新第三插件透明化