2011-08-20 37 views
2

最近我碰到一個在與Maven構建工具術語「神器」 ......什麼是神器?

可有人請解釋一下它在軟件行業神器'和特別是在Maven的意思。

+0

是不是類似於http://stackoverflow.com/questions/2487485/what-is-maven-artifact?它還包含「通用軟件術語」工件的答案。 – VonC

回答

1

Maven組織它在項目中構建。
maven中的artifact是由maven項目生成的資源。每個maven項目可以只有一個artifact,如jar, war, ear
項目的配置文件"pom.xml"描述了構件是如何構建的,如何運行單元測試等。 通常使用maven構建的軟件項目由許多maven項目構建產品的構件(例如罐子)。
例如

Root-Project // produces no artifact, simply triggers the build of the other projects 
    App-Project // The application, that uses the libraries 
    Lib1-Project // A project that creates a library (jar) 
    Lib2-Project // Another library 
    Doc-Project // A project that generates the user documentation from some resources 

Maven工件不限於java資源。您可以生成所需的任何資源。例如。文檔,項目站點,zip檔案,本機庫等。

+0

您可以將您的答案添加到http://stackoverflow.com/questions/2487485/what-is-maven-artifact。我發現它比其他現有的更清晰,並會讚揚它。 – VonC

+0

我已經添加了答案。 :) –

+0

太好了:) +1 – VonC

相關問題