Apache Maven

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Powered By)
(链接)
第49行: 第49行:
 
http://download.java.net/maven/1/
 
http://download.java.net/maven/1/
  
[[Category:Apache]]
+
[[category:apache]]
[[Category:Project Management]]
+
[[category:project management]]
[[Category:Build automation]]
+
[[category:build automation]]

2013年1月28日 (一) 02:06的版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Apache Maven Thanks, Wikipedia.

目录

安装指南

install Maven 2:

1) Unpack the archive where you would like to store the binaries, eg:

 tar zxvf maven-2.0.tar.gz

or

 unzip maven-2.0.zip

2) A directory called "maven-2.0" will be created.

3) Add the bin directory to your PATH, eg:

 export PATH=/usr/local/maven-2.0/bin:$PATH

or

 set PATH="c:\program files\maven-2.0\bin";%PATH%

4) Make sure JAVA_HOME is set to the location of your JDK

5) Run "mvn --version" to verify that it is correctly installed.

http://maven.apache.org/

Creating a Project

mvn archetype:create -DgroupId=org.huihoo.app -DartifactId=my-app
cd my-app
mvn package
java -cp target/my-app-1.0-SNAPSHOT.jar org.huihoo.app.App

Which will print the quintessential:

Hello World!

Running Maven Tools

mvn clean dependency:copy-dependencies package
mvn site

Sub Projects

图集

链接

http://download.java.net/maven/2/

http://download.java.net/maven/1/

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱