教程:http://www.yiibai.com/maven/

    http://maven.apache.org/

第一步:下载安装maven。

配置环境变量。

第二步: 设置mirror 中央存储仓库的地址

  <mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
| -->
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>ui</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>ibiblio</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
</mirrors>

mirror 配置,速度快

第三步:用命令行或者在eclipse中使用maven创建项目。

第四步:使用Maven创建Web应用程序项目:   http://www.yiibai.com/maven/create-a-web-application-project-with-maven.html

Maven学习总结(三)——使用Maven构建项目

mvn archetype:generate -DarchetypeCatalog=internal

最新文章

  1. Oracle启动报错ORA-03113解决
  2. Android Bitmap Drawable 常用摘要
  3. Tcp/IP
  4. 两种include方式及filter中的dispatcher解析
  5. 图书管理系统——APP平台开发
  6. JQuery validate验证 自定义
  7. java获取日期
  8. UML中的关联关系
  9. bash变量操作
  10. Oracle表空间操作
  11. DataBase 总结开篇
  12. hdu 4403 枚举
  13. Linux shell 脚本中”2&gt;&amp;1″的含义解释
  14. C# 读取Excel日期格式
  15. javascript screen对象
  16. k8s重要概念及部署k8s集群(一)--技术流ken
  17. Java核心技术-映射
  18. 去掉 input type=&quot;number&quot; 在浏览器中遗留的图标样式
  19. [待完善]mycat使用(一)
  20. 解题:USACO13JAN Island Travels

热门文章

  1. KCL v0.4.5 发布 - 更好的编写便利性改进,稳定性,体验提升与多平台支持
  2. Appium的触屏操作&amp;设备交互api
  3. vue 使用路由component: () =>import (‘ ‘)报错解决办法
  4. RabbitMQ的使用介绍
  5. 只要引用这个js就会页面加载完毕自动弹出提示框
  6. RockyLinux8.7 制作OpenSSH9.2 rpm包
  7. 带有FIFO硬件缓存的串口
  8. Jest - Configuring Jest
  9. element table组件列表固定列后横向滚动条的问题
  10. sql执行多条语句