如何添加pom.xml到现有的Eclipse项目? [英] How to add pom.xml to existing Eclipse project?
问题描述
1。从SCM结帐Maven项目
2。 Maven模块
3。 Maven项目
但是我没有看到Maven2 POM如这里所述。我读过,添加pom.xml是使用Maven时首先要做的。
我有一个现有的动态Web项目,所以我不知道我是否需要创建Maven项目只是为了使用Maven。
如何使用Maven与这个现有的项目?
此外,当我尝试添加Maven项目,并在步骤选择原型时,所有显示的原型都有版本RELEASE。当我在此步骤中单击下一步时,Eclipse将变为不响应。使用内存不会增加。
看看这里:
- http://www.mkyong.com/maven/how-to-convert-java-web-project-to-maven-project for manuel conversion。
- 将现有Eclipse项目转换为Maven项目
在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 :
- http://www.mkyong.com/maven/how-to-convert-java-web-project-to-maven-project for a manuel convertion.
- Convert Existing Eclipse Project to Maven Project
In last version of eclipse (Juno included), there is a more convinient wizard :
Configure > Convert to maven project
这篇关于如何添加pom.xml到现有的Eclipse项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!