Use Scala on computer without internet connection

◇◆丶佛笑我妖孽 提交于 2019-11-30 04:29:21

问题


I am new in Scala, so sorry if the question is absolutely obvious.

I have an Eclipse Photon installed on my computer. Would like to edit Scala code and produce runnable jars. The tricky part is that I don't have internet access on my computer (Centos7).

I bear in mind two potential issues/questions:

  1. Downloading the plugin manually: I know, that Scala IDE plugin for Eclipse enables running Scala code/producing jars (like https://medium.com/devilsadvocatediwakar/how-to-install-scala-plugins-in-eclipse-in-ubuntu-13e53ffe3f39). Installing it from the GUI is rather straight forward. Is it possible to download a plugin bundle manually (not from GUI), move it to target computer and finally install it?
  2. Compiling code into jars: assume that the point 1 is done. SBT or Maven requires some dependencies (e.g. Yoda time, Spark libraries) to produce specific jars - does it cause, that all the dependencies shall be moved and installed manually also?

回答1:


The answer was provided by the Luis Miguel Mejía Suárez in comments:

Yes you can. For installing a manual plugin - here you can find the zip of the ScalaIDE - and finally, use the maven repository to search and download the dependencies JARS... However, is this really your personal computer? or some kind of deployment server? - Also, as an ex-user of the ScalaIDE I would recommend you to try a different, newer IDE. For example, I just switched the last week from Eclipse to VSCode with metals.



来源:https://stackoverflow.com/questions/56545756/use-scala-on-computer-without-internet-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!