Java 如何在不安装整个 WTP 包的情况下将 Tomcat 8 添加到 Eclipse Kepler

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25164774/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 23:46:08  来源:igfitidea点击:

How to add Tomcat 8 to Eclipse Kepler without installing the big whole WTP package

javaeclipsetomcateclipse-plugin

提问by Aldian

Ok I am running with Eclipse Kepler. Tried today to set it up for Tomcat 8, but the adapter won't appear in the list.

好的,我正在运行 Eclipse Kepler。今天尝试为 Tomcat 8 设置它,但该适配器不会出现在列表中。

Googled a bit and found tutos on SO, nixmashand vitalflux, which all sum up the same way: download the last 3.6 Eclipse WTP and unzip it in your eclipse directories.

用谷歌搜索了一下,找到了关于SOnixmashVitalflux 的教程,它们的总结都是一样的:下载最新的 3.6 Eclipse WTP 并将其解压到你的 eclipse 目录中。

But I don't want a whole upgrade of my Kepler to the Luna WTP version (In my understanding, this is what would actually happen). I am looking for a way to pick only the server adapters. How do I do that?

但我不希望我的 Kepler 完全升级到 Luna WTP 版本(据我所知,这就是实际发生的情况)。我正在寻找一种仅选择服务器适配器的方法。我怎么做?

采纳答案by Aldian

After experimenting by myself, I came up with the following solution:

经过自己的实验,我想出了以下解决方案:

  • Go to the "Install New Software..." menu
  • 转到“安装新软件...”菜单

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

  • Wait for the dependencies to be resolved:
  • 等待依赖项解决:

enter image description here

在此处输入图片说明

  • Complete the installation process, restart Eclipse, try to configure a new server:
  • 完成安装过程,重启Eclipse,尝试配置一个新的服务器:

enter image description here

在此处输入图片说明

Hope this helps..

希望这可以帮助..