如何在Eclipse上协作开展动态Web项目

huangapple go评论77阅读模式
英文:

How to collaborate on a dynamic web project using eclipse

问题

我创建了一个项目并将其推送到GitHub,这是仓库链接:
https://github.com/nati-elmaliach/CommunicationLTD-servlet

现在我希望开发人员克隆这个项目,并将其作为动态Web项目版本2.5导入到Eclipse中,因为这是我用来创建该项目的模板。

我所做的是:文件 -> 导入 -> 从现有项目导入到工作区 -> 设置根目录

  1. 我没有“运行为” -> “在服务器上运行”的选项
  2. 库未包含在构建路径中

我还在WebContent/WEB-INF/lib/目录下包含了运行此项目所需的JAR文件。

假设我已经安装并配置了Tomcat服务器,我该如何克隆并开始处理这个项目呢?

英文:

I've created a project and pushed it to GitHub, here is the repo:
https://github.com/nati-elmaliach/CommunicationLTD-servlet

Now I want developers to clone this project and import it into eclipse as a dynamic web project version 2.5 since this is the template I used to create this project.

So what I did was: file -> import -> existing project into the workspace -> set the root directory

  1. I don't have the option to run as -> run on a server
  2. the libraries are not included in the build path

I've also included the jars needed to run this project under WebContent/WEB-INF/lib/

How can I clone and start working on the project, assuming I already have a tomcat server installed and configured?

答案1

得分: 1

你没有提交.settings文件夹。里面有一个文件表明这是一个动态Web项目。你还应该通过项目内的执行环境(Execution Environment)引用JRE,而不是在首选项中引用JRE的名称,因为后者可能会与你的计算机有关。

英文:

You didn't commit the .settings folder. There's a file in there that indicates that it's a dynamic web project. You should also refer to the JRE from within the project by its Execution Environment, instead of the name of the JRE in your preferences--which would be pretty specific to your machine.

huangapple
  • 本文由 发表于 2020年4月8日 22:37:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/61103327.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定