码迷,mamicode.com
首页 > 移动开发 > 详细

idea 新建 maven 项目 (避免 idea 在使用 maven 新建 webapp 骨架项目时一直 downloading 的问题)

时间:2017-06-10 00:32:04      阅读:377      评论:0      收藏:0      [点我收藏+]

标签:his   prim   generated   存放位置   ide   .com   自己   maven   ace   

1. 新建 module,左侧选择 Maven,右侧勾选 Create from archetype,中间找到 maven-archetype-webapp 

技术分享

 2. 填写 GroupId and ArtifactId

GroupId: the unique identifier of the organization or group that created the project 

ArtifactId: unique base name of the primary artifact being generated by this project

GroupId 类似于项目包名,如 org.apache.maven

ArtifactId 类似于项目名,如 mavendemo

(新建完成后会生成一个 pom.xml 文件,在这个 POM 中,groupId, artifactId, packaging, version 叫作 maven 坐标,它能唯一的确定一个项目,有了 maven 坐标,我们就可以用它来指定我们的项目所依赖的其他项目,插件,或者父项目)

 技术分享

3. 选择自己的本地 maven,这样做可以很好的避免 idea 在使用 maven 新建 webapp 骨架项目时一直 downloading 的问题

技术分享

4. 填写 module 名及其根目录

 此处 module 名 mavendemo,存放位置 C:\workspace.idea\demo\mavendemo

技术分享

5. 新建完成后 module 结构如下,可以看到前面提到的 pom.xml 以及填写的GroupId 和 ArtifactId

技术分享

 

idea 新建 maven 项目 (避免 idea 在使用 maven 新建 webapp 骨架项目时一直 downloading 的问题)

标签:his   prim   generated   存放位置   ide   .com   自己   maven   ace   

原文地址:http://www.cnblogs.com/marvinlh/p/6974245.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!