1. 程式人生 > >【專案管理和構建】——Maven簡介(一)

【專案管理和構建】——Maven簡介(一)

       在現實的企業中,以低成本、高效率、高質量的完成專案,不僅僅需要技術大牛,企業更加需要管理大牛,管理者只懂技術是遠遠不夠的。當然,管理可以說有很多的方面,例如:對人員的管理,也有對專案的管理等等。如果你想成為一個優秀的管理者,你必須得會使用高大上的管理工具。

      從這篇博文開始,我會給大家介紹更多的專案管理工具,經過點點滴滴的積累,不斷的進步,最終成為管理大牛。

簡介

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),可以通過一小段描述資訊來管理專案的構建,報告和文件的軟體專案管理工具。

        通過上面這句話,我們可以瞭解到Maven不僅僅可以管理專案的構建,而且可以根據專案原始碼自動生成文件,以及報告。說句實話,對於我這種不太願意寫文件的人來說,實在是太方便了。

下載

什麼是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專案中它開始被用來試圖簡化構建過程。當時有很多專案,它們的Ant build檔案僅有細微的差別,而JAR檔案都由CVS來維護。於是Maven創始者想要更加標準的方式構建專案,該專案的清晰定義包括:一種很方便的方式來發布專案資訊,以及一種在多個專案中共享JAR的方式。

     現在,Maven,成為了一種被用於構建和管理任何基於Java專案的工具。Maven創始者希望能夠更多的讓Java開發人員的日常工作更加容易,幫助理解任何基於Java專案。

maven的目標

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的主要目標是為了使開發人員在最短的時間內領會專案的所有狀態。為了達到這一目標,Maven考慮一下五個方面的內容:

1、使得構建過程更加容易,方便編譯,打包,釋出

2、為每個專案提供統一的配置

3、提供優質專案資訊

4、最佳開發實踐

5、安裝和更新第三外掛透明化


       上面的內容都來自於Apache官網對於Maven的介紹,這是最權威的解釋,大家如果覺得不過癮的化,可以點選:http://maven.apache.org/what-is-maven.html,由於本人的英語水平有點菜,但還是希望對你有所幫助。

引言:下篇博文,我們開始介紹如何安裝Maven