在Eclipse Kepler EE中创建Maven项目 [英] Creating Maven project in Eclipse Kepler EE

查看:207
本文介绍了在Eclipse Kepler EE中创建Maven项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全是新来的Maven。我正在使用Eclipse Kepler EE版。我想创建一个Maven项目并将其转换为Java EE项目。我需要一个循序渐进的解释。我不喜欢使用命令行。



谢谢。

解决方案

我想创建一个Maven项目并将其转换为Java EE项目。



你可以以任何方式工作。让我们看看可能性


  1. 创建一个新项目(动态Web项目),并在JEE项目中添加所需的任何方面。 如何:一旦项目设置完成,只需右键单击项目 - > - > 转换为maven项目,指定artifactID以及groupID,你完成了!

  2. 而不是做一个动态项目,只需先设置一个空的maven项目,然后再添加方面。 如何:在Eclipse中,新项目 - > maven项目 - > 空白项目(跳过原型选择),指定groupdID和artifactID,你完成了。通过右键单击新创建的maven项目 - > 属性 - > facets

  3. 最后你可以使用原型。原型是重新构建/配置的maven项目,可以直接使用,因为它们预先配置了一整套jar,facet和构建路径条目。查看此处列表。 如何:在eclipse中新项目 - > 新建maven项目 - > 原型 - >指定名称的原型和瞧!你完成了!


I am completely new to Maven. I am using Eclipse Kepler EE edition. I want to create a Maven project and convert it into a Java EE project. I need a step-by-step explanation of the process. I would prefer if I didn't have to use the command line.

Thanks.

解决方案

I want to create a Maven project and convert it into a Java EE project.

You can work in either way. Lets look at the possibilities

  1. Create a new project (Dynamic web project) and add any facets you want in the JEE project. How To : Once project is setup, simply right click on the project --> Configure --> convert to maven project , specify the artifactID along with the groupID and you are done !
  2. Instead of making a dynamic project, just setup a blank maven project first and then add the facets afterwards. How To : In Eclipse, New Project --> maven project --> Blank project ( skip archetype selection ) , specify groupdID and artifactID and you're done. After wards just add the facets once the project is setup by righ-clicking the newly created maven project --> Properties --> facets
  3. Lastly you can use archetypes. Archetypes are re-build/configured maven projects that can be used directly since they come pre-configured with whole set of jars, facets and build path entries. Take a look into the list here . How To : In eclipse New project --> New maven project --> archetype --> specify name of archetype and voila! You're done !

这篇关于在Eclipse Kepler EE中创建Maven项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆