Apache Maven

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(文档)
(链接)
 
(未显示1个用户的3个中间版本)
第1行: 第1行:
 
{{SeeWikipedia}}
 
{{SeeWikipedia}}
  
 +
Apache Maven
 +
 +
==简介==
 
[[Nexus]] 是一个强大的 Apache Maven 仓库管理器。
 
[[Nexus]] 是一个强大的 Apache Maven 仓库管理器。
  
==[[OSGi]]==
+
==功能==
*[http://maven.apache.org/shared/maven-osgi/ Maven OSGi integration]
+
  
==安装指南==
+
==指南==
 
===Debian===
 
===Debian===
 
  apt-get install openjdk-7-jdk
 
  apt-get install openjdk-7-jdk
第32行: 第34行:
 
http://maven.apache.org/
 
http://maven.apache.org/
  
==Creating a Project==
+
===Creating a Project===
 
  mvn archetype:create -DgroupId=org.huihoo.app -DartifactId=my-app
 
  mvn archetype:create -DgroupId=org.huihoo.app -DartifactId=my-app
 
  cd my-app
 
  cd my-app
第39行: 第41行:
 
Which will print the quintessential:
 
Which will print the quintessential:
 
  Hello World!
 
  Hello World!
==Running Maven Tools==
+
 
 +
===Running Maven Tools===
 
  mvn clean dependency:copy-dependencies package
 
  mvn clean dependency:copy-dependencies package
 
  mvn site
 
  mvn site
第48行: 第51行:
 
*[[Maven Wagon]]
 
*[[Maven Wagon]]
 
*[[Maven Doxia]]
 
*[[Maven Doxia]]
 +
 +
==[[OSGi]]==
 +
*[http://maven.apache.org/shared/maven-osgi/ Maven OSGi integration]
 +
 +
==插件==
 +
*[https://maven.apache.org/plugins/index.html Available Plugins]
 +
 +
==组件==
 +
*[https://maven.apache.org/shared/index.html Shared Components]
  
 
==专题==
 
==专题==
第68行: 第80行:
 
==图集==
 
==图集==
 
<gallery widths=100px heights=100px perrow=6>
 
<gallery widths=100px heights=100px perrow=6>
Image:apache-maven-repositories.png|Maven仓库
+
image:apache-maven-repositories.png|Maven仓库
 
image:sonatype-nexus-2.6.1.png|Nexus
 
image:sonatype-nexus-2.6.1.png|Nexus
 +
image:apache-maven-wagon.png|Wagon
 
</gallery>
 
</gallery>
  
 
==链接==
 
==链接==
 +
*[https://mvnrepository.com/repos Top Indexed Repositories]
 
*[http://search.maven.org/ The Central Repository]
 
*[http://search.maven.org/ The Central Repository]
 
*A Maven 2 repository for hosting java.net projects libraries and dependencies: https://maven2-repository.dev.java.net/  
 
*A Maven 2 repository for hosting java.net projects libraries and dependencies: https://maven2-repository.dev.java.net/  
第80行: 第94行:
 
*[https://code.google.com/p/maven-android-plugin/ Android Maven Plugin]
 
*[https://code.google.com/p/maven-android-plugin/ Android Maven Plugin]
  
[[category:apache]]
 
 
[[category:project management]]
 
[[category:project management]]
 
[[category:build automation]]
 
[[category:build automation]]
 +
[[category:maven]]
 +
[[category:apache]]

2021年7月17日 (六) 05:47的最后版本

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

Apache Maven

目录

[编辑] 简介

Nexus 是一个强大的 Apache Maven 仓库管理器。

[编辑] 功能

[编辑] 指南

[编辑] Debian

apt-get install openjdk-7-jdk
apt-get install maven

[编辑] 通常

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

[编辑] 子项目

[编辑] OSGi

[编辑] 插件

[编辑] 组件

[编辑] 专题

[编辑] 文档

[编辑] 图书

[编辑] 图集

[编辑] 链接

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

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

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

变换
操作
导航
工具箱