maven 简易入门笔记
2024-09-08 19:31:16
教程: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
最新文章
- Oracle启动报错ORA-03113解决
- Android Bitmap Drawable 常用摘要
- Tcp/IP
- 两种include方式及filter中的dispatcher解析
- 图书管理系统——APP平台开发
- JQuery validate验证 自定义
- java获取日期
- UML中的关联关系
- bash变量操作
- Oracle表空间操作
- DataBase 总结开篇
- hdu 4403 枚举
- Linux shell 脚本中”2>;&;1″的含义解释
- C# 读取Excel日期格式
- javascript screen对象
- k8s重要概念及部署k8s集群(一)--技术流ken
- Java核心技术-映射
- 去掉 input type=";number"; 在浏览器中遗留的图标样式
- [待完善]mycat使用(一)
- 解题:USACO13JAN Island Travels
热门文章
- KCL v0.4.5 发布 - 更好的编写便利性改进,稳定性,体验提升与多平台支持
- Appium的触屏操作&;设备交互api
- vue 使用路由component: () =>import (‘ ‘)报错解决办法
- RabbitMQ的使用介绍
- 只要引用这个js就会页面加载完毕自动弹出提示框
- RockyLinux8.7 制作OpenSSH9.2 rpm包
- 带有FIFO硬件缓存的串口
- Jest - Configuring Jest
- element table组件列表固定列后横向滚动条的问题
- sql执行多条语句