如何添加pom.xml到现有的Eclipse项目? [英] How to add pom.xml to existing Eclipse project?

查看:2083
本文介绍了如何添加pom.xml到现有的Eclipse项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很熟悉Maven并使用Eclipse Juno。我已经安装了Maven Integration for Eclipse。文件>新建>其他> Maven有三个选项:
1。从SCM结帐Maven项目
2。 Maven模块
3。 Maven项目

但是我没有看到Maven2 POM如这里所述。我读过,添加pom.xml是使用Maven时首先要做的。



我有一个现有的动态Web项目,所以我不知道我是否需要创建Maven项目只是为了使用Maven。



如何使用Maven与这个现有的项目?



此外,当我尝试添加Maven项目,并在步骤选择原型时,所有显示的原型都有版本RELEASE。当我在此步骤中单击下一步时,Eclipse将变为不响应。使用内存不会增加。

解决方案

看看这里:





在eclipse的最后一个版本(包括Juno)中,有一个更为方便的向导:

 配置>转换为maven项目


I'm new to Maven and use Eclipse Juno. I've installed Maven Integration for Eclipse. There are three options in File > New > Other > Maven:
1. Checkout Maven Projects from SCM
2. Maven Module
3. Maven Project

But I don't see Maven2 POM as described here. I've read that adding pom.xml is the first thing to do when using Maven.

I have an existing Dynamic Web Project so I'm not sure whether I need to create Maven Project just to use Maven.

How to use Maven with this existing project?

Further, when I try to add Maven Project and on step "Select an Archetype", then all shown archetypes have version "RELEASE". When I click Next on this step, Eclipse becomes Not Responding. It's used memory doesn't even increase.

解决方案

Take a look here :

In last version of eclipse (Juno included), there is a more convinient wizard :

Configure > Convert to maven project

这篇关于如何添加pom.xml到现有的Eclipse项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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