简体   繁体   English

如何在Eclipse中美化JSF 2.0项目?

[英]How do I mavenize a JSF 2.0 project in eclipse?

I have a JSF 2.0 project on my eclipse. 我的月食上有一个JSF 2.0项目。 I would like to mavenize the same preferably from Eclipse itself. 我想最好从Eclipse本身进行改造。 I tried doing it from outside the eclipse manually. 我尝试从日食之外手动进行。 There are quite a few steps and I don't like the manual nature of that approach. 有很多步骤,我不喜欢这种方法的手动性质。 Could someone help? 有人可以帮忙吗?

Make sure that you have the standard folder structure as recommended by Maven for web projects. 确保您具有Maven针对Web项目推荐的标准文件夹结构。 Follow this link . 点击此链接

Now, install maven plugin in eclipse (am not sure if it is available by default or we have to download it manually). 现在,在eclipse中安装maven插件(不知道默认情况下它是否可用,或者我们必须手动下载它)。 Simply right click on the project, select Configure and Convert to Maven Project. 只需右键单击该项目,选择“配置并转换为Maven项目”。 This should automatically do all that steps to takes to mavenize your current project. 这应该自动执行所有步骤以美化当前项目。 This will create a pom.xml file and you can modify it going forward as per your requirements. 这将创建一个pom.xml文件,您可以根据需要对其进行修改。 By the way, I use Eclipse Juno. 顺便说一下,我使用Eclipse Juno。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM