maven 简易入门笔记
教程: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>
第三步:用命令行或者在eclipse中使用maven创建项目。
第四步:使用Maven创建Web应用程序项目: http://www.yiibai.com/maven/create-a-web-application-project-with-maven.html
Maven学习总结(三)——使用Maven构建项目
mvn archetype:generate -DarchetypeCatalog=internal
posted on 2016-03-30 22:43 Henry_Wang 阅读(264) 评论(0) 编辑 收藏 举报