简体   繁体   English

如何将我的Eclipse Maven Selenium Webdriver TestNG Java项目从一台PC转移到另一台PC?

[英]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.

相关问题 如何在硒webdriver中从一个java类(页面)到另一个TestNG类(test)调用下拉值? - How to call dropdown value from one java class(page) to another TestNG class(test) in selenium webdriver? Java:将Eclipse项目从一台计算机转移到另一台计算机? - Java: Transfer Eclipse Project from One Computer to Another? 如何将Eclipse Java项目移植到另一台PC并从Shell进行编译? - How to port an Eclipse Java project to another PC and compile it from Shell? 如何在Eclipse中以TestNG的形式执行Selenium Webdriver测试 - How to execute Selenium Webdriver test as TestNG in eclipse Selenium Java(maven项目):TestNG结果与ReportNG不同 - Selenium Java (maven project): TestNG results differs from ReportNG Selenium Webdriver,使用Java的testNG - Selenium webdriver , testNG with java Selenium WebDriver,带有Java的TestNG - Selenium WebDriver, TestNG with Java 无法使用JAVA中的网络将文件从一台电脑传输到另一台电脑 - Unable to Transfer File from one pc to another using networking in JAVA How to run maven selenium project in docker (Maven + Selenium + java + TestNg + docker) - How to run maven selenium project in docker (Maven + Selenium + java + TestNg + docker) 如何在没有testng / maven的情况下从命令行运行Selenium Webdriver测试用例 - How to run selenium webdriver test cases from command line without testng/maven
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM