英文:
How to collaborate on a dynamic web project using eclipse
问题
我创建了一个项目并将其推送到GitHub,这是仓库链接:
https://github.com/nati-elmaliach/CommunicationLTD-servlet
现在我希望开发人员克隆这个项目,并将其作为动态Web项目版本2.5导入到Eclipse中,因为这是我用来创建该项目的模板。
我所做的是:文件 -> 导入 -> 从现有项目导入到工作区 -> 设置根目录
- 我没有“运行为” -> “在服务器上运行”的选项
- 库未包含在构建路径中
我还在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
- I don't have the option to run as -> run on a server
- 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论