简体   繁体   English

如何使用 Eclipse 创建远程 Maven 项目

[英]How to create remote Maven project with Eclipse

I'm doing an app for a raspberry pi 3 B, I'd like to write the code using Eclipse Neon 3 in my computer, and set on hot deployment, so the project itself it's inside the raspberry.我正在为 raspberry pi 3 B 做一个应用程序,我想在我的电脑上使用 Eclipse Neon 3 编写代码,并设置为热部署,所以项目本身就在 raspberry 中。

Right now I have connection to the raspberry from built-in Eclipse Remote System, I can connect myself this way, create a normal remote project and develop from my computer.现在我可以从内置的 Eclipse 远程系统连接到树莓派,我可以通过这种方式连接自己,创建一个普通的远程项目并从我的计算机上进行开发。

The trouble arises when trying to create this way a Maven project or trying to transform the previously created, normal project, into a Maven project.尝试以这种方式创建 Maven 项目或尝试将之前创建的普通项目转换为 Maven 项目时会出现问题。

How can I do that?我该怎么做?

I need the remote connection, the compilation and launch of the code I don't mind to do it manually.我需要远程连接、代码的编译和启动,我不介意手动完成。

At the end it wasn't possible to interconnect the development machine and the raspberry pi to write the code from my machine live into the raspberry's hardware.最后,无法将开发机器和树莓派互连起来,将我机器上的代码实时写入树莓派的硬件中。 At least not with a maven project.至少不是 Maven 项目。

If I had to do it again today, I would set a Jenkins server for CI and to be able to deploy the binaries in an easier way to test.如果我今天必须再次这样做,我会为 CI 设置一个 Jenkins 服务器,并能够以更简单的方式部署二进制文件进行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM