maven(二)

[b]一[/b],maven项目创建
1.1 安装m2eclipse new>maven project 创建maven项目
[img]http://dl2.iteye.com/upload/attachment/0106/0316/5be50bd3-2300-3685-b5bd-6f9049e54136.png[/img]

1.2 过滤出你要创建的项目类型
[img]http://dl2.iteye.com/upload/attachment/0106/0321/68d2d642-d059-3e1d-aa73-4c3f241b1fc8.png[/img]

1.3 创建包名,项目名称,groupId是你包名称 artifactId是你项目名称
groupId artifactId构成你的唯一标识。
[img]http://dl2.iteye.com/upload/attachment/0106/0323/a65f1ce8-4a1d-307c-8dbe-397eeb35d348.png[/img]

1.4 创建项目结构
[img]http://dl2.iteye.com/upload/attachment/0106/0325/6dda7be6-2747-3984-9d43-85cf978528d1.png[/img]

1.5 添加src下面完整包类型,首先必须删除里面的依赖
[img]http://dl2.iteye.com/upload/attachment/0106/0331/2cfcea89-b2a8-3816-9ee7-e1922abbf598.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0106/0333/65144b1e-f7b0-3467-940e-e67eecde4a19.png[/img]

你可能感兴趣的:(maven,maven)