手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Apache Maven 2 简介

下载和安装 Maven 2

[日期:2011-07-21] 来源:IBM  作者:Sing Li [字体:大 中 小]

下载和安装 Maven 2

根据下列步骤下载和安装 Maven 2:

  1. 从 Maven 项目的官方站点下载 Maven 2 二进制文件(参见 参考资料)。
  2. 将二进制发布文件解压到选定的目录。
  3. 将 InstallationDirectory\bin 目录添加到 PATH 环境变量。

为检验安装,键入 mvn -help 命令。您将看到清单 3 中的帮助页面。


清单 3. 使用 mvn -help 命令检验安装
                    
C:\>mvn -help

usage: mvn [options] [<goal(s)>] [<phase(s)>]

Options:
 -C,--strict-checksums         Fail the build if checksums don't match
 -c,--lax-checksums            Warn if checksums don't match
 -P,--activate-profiles        Comma-delimited list of profiles to
                               activate
 -ff,--fail-fast               Stop at first failure in reactorized builds
 -fae,--fail-at-end            Only fail the build afterwards; allow all
                               non-impacted builds to continue
 -B,--batch-mode               Run in non-interactive (batch) mode
 -fn,--fail-never              NEVER fail the build, regardless of project
                               result
 -up,--update-plugins          Synonym for cpu
 -N,--non-recursive            Do not recurse into sub-projects
 -npr,--no-plugin-registry     Don't use ~/.m2/plugin-registry.xml for
                               plugin versions
 -U,--update-snapshots         Update all snapshots regardless of
                               repository policies
 -cpu,--check-plugin-updates   Force upToDate check for any relevant
                               registered plugins
 -npu,--no-plugin-updates      Suppress upToDate check for any relevant
                               registered plugins
 -D,--define                   Define a system property
 -X,--debug                    Produce execution debug output
 -e,--errors                   Produce execution error messages
 -f,--file                     Force the use of an alternate POM file.
 -h,--help                     Display help information
 -o,--offline                  Work offline
 -r,--reactor                  Execute goals for project found in the
                               reactor
 -s,--settings                 Alternate path for the user settings file
 -v,--version                  Display version information
linux
【内容导航】
第1页:关于本教程 第2页:Maven 2 概览
第3页:理解 Maven 2 第4页:Maven 坐标
第5页:Maven 2 生命周期 第6页:下载和安装 Maven 2
第7页:实践 Maven 2 第8页:定制 POM
第9页:实践 Maven 2 第10页:在 Eclipse 3.2 中安装 Maven 2.x Plug-in
第11页:在 Eclipse 3.2 中使用 Maven 2 Plug-in 第12页:结束语
相关资讯       Apache  Maven 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款