`

maven 安装

阅读更多
1 下载 maven

2 解压到一个目录 例: c:\apache-maven-2.2.1

3 设置一下 MAVEN_HOME 变量就行了(新版本叫 M2_HOME 了,不叫 MAVEN_HOME 了)
   Maven  2.0.9以前的版本, M2_HOME 不能以 '\' 结尾.

4 把 MAVEN_HOME\bin目录加入到PATH中

运行 mvn --version .

第一个MAVEN命令

Maven in 5 Minutes 写道
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false


dependency 写法查看:
google搜索  site:www.ibiblio.org maven2 log4j
结果中类似/maven2/log4j/log4j (或 /pub/packages/maven2/log4j/log4j)的目录打开,里面的 maven-metadata.xml 就是.

设置Maven仓库—Artifactory

start 文档 : Maven Getting Started Guide
Guide to Creating Archetypes
This is a reference for the Maven project descriptor used in Maven.
Settings
Creating a site

Introduction to the POM
Introduction to the Build Lifecycle
Available Plugins
Guide to Configuring Plug-ins
Introduction to the Dependency Mechanism




分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics