[英]How to transfer my Eclipse Maven Selenium Webdriver TestNG Java project from one PC to another?
I am working at a place, but sometimes I bring some work home. 我在一个地方工作,但有时我带些工作回家。 The problem is, however I try to export my project from my work computer and use it on my home computer, I get all kinds of errors, missing files and so on. 问题是,但是我尝试从工作计算机中导出项目,并在家用计算机上使用它,但出现各种错误,文件丢失等。
Is there a way to transfer the project flawlessly? 有没有办法完美地转移项目? What kind of additional information should I provide? 我应该提供什么样的附加信息?
I've tried exporting to a JAR. 我尝试导出到JAR。 Importing fails I've tried moving the whole project folder, and opening an existing Maven project - fails. 导入失败我尝试移动整个项目文件夹,然后打开一个现有的Maven项目-失败。
Just remove the class path file. 只需删除类路径文件。 Zip the entire folder and take it. 压缩整个文件夹并将其取出。 Ensure when importing into your other eclipse import it as a maven project and not as just a simple java project. 确保在导入到其他eclipse时将其作为maven项目而不是简单的Java项目导入。 Your class path file contains all the path of the src and jar folders. 您的类路径文件包含src和jar文件夹的所有路径。 since the path will be different in your other system you will get such errors. 由于您的其他系统中的路径会有所不同,因此您会收到此类错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.