Eclipse Indigo/3.7 中的 Maven/Tomcat 项目 [英] Maven/Tomcat Projects In Eclipse Indigo/3.7

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

问题描述

我正在使用最新的里程碑版本尝试下一个版本的 Eclipse,但在将我的 Maven 项目部署到 Tomcat 时遇到了问题.

I'm trying out the next version of Eclipse using the latest milestone build and I'm having an issue getting my Maven project deployed to Tomcat.

以前在 Eclipse 3.6 中,我的项目在从 SVN 签出时自动启用为 Web 项目.我已经在 3.7 中检查了我的项目,但没有任何迹象表明它可以作为 Web 项目运行(例如,尝试运行该项目并没有给我通常的在服务器上运行"选项).

Previously in Eclipse 3.6, my project was automatically enabled as a web project when checked out from SVN. I've checked out my project in 3.7 but get nothing indicating it's runnable as a web project (e.g. trying to run the project doesn't give me the usual "Run on Server" option).

我安装的是 Indigo RC4Eclipse IDE for Java EE Developers"版本.然后,我从此处添加了最新的 M2E 里程碑.这使我能够启动并运行,检查我的项目,我似乎能够很好地构建项目(它确实为远程部署创建了我的 .war 文件).但仍然没有在服务器上运行"选项.

What I've installed is Indigo RC4 "Eclipse IDE for Java EE Developers" version. I then added the latest M2E milestone from here. This enabled me to get up and running, check out my project and I seem to be able to build the project fine (which does create my .war file for remote deployment). Still no "Run On Server" options though.

有没有人知道我可能遗漏了什么?我猜这是一个 Maven &WTP 集成插件,但我还没有找到合适的.

Does anyone have any clues on what I could be missing? I'm guessing it's a Maven & WTP integration plugin but I haven't spotted the right one yet.

推荐答案

在 m2e 成为 eclipse 项目之前,WTP 集成随核心模块一起提供.现在核心模块是一个 eclipse 模块,WTP 集成是单独提供的.m2eclipse-wtp 的当前 Indigo 快照可以在 这里.然而,我无法从这个更新站点获得任何工件,即使它列在相应的 JIRA 问题中.

Before m2e became an eclipse project the WTP integration shipped with the core module. Now the core module is an eclipse module and the WTP integration is shipped separately. The current Indigo snapshots of m2eclipse-wtp can be found here. I was unable to get any artifacts from this update site however, even though it's listed in the corresponding JIRA issue.

幸运的是,今天 m2e-wtp 已通过 m2e 市场提供.只需打开eclipse首选项,转到'Maven' -> 'Discovery' -> 'Open Catalog'并安装它..

Fortunately, today m2e-wtp was made available through the m2e Marketplace. Just open the eclipse preferences, go to 'Maven' -> 'Discovery' -> 'Open Catalog' and install it. .

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

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