简体   繁体   English

在本地eclipse上安装Scala Maven插件

[英]Installing Scala Maven plugin on eclipse from local

I am trying to setup Scala development environment with maven on scala IDE for eclipse. 我正在尝试使用scala IDE上的maven为eclipse设置Scala开发环境。 I am not able to install the Scala Maven plugin from the software site due to some problems with my proxy settings. 由于我的代理设置存在一些问题,我无法从软件站点安装Scala Maven插件。 So, I am trying to download the plugin onto my local system and then install it. 所以,我试图将插件下载到我的本地系统,然后安装它。

I got the Scala Maven plugin from this site: https://github.com/davidB/scala-maven-plugin 我从这个网站获得了Scala Maven插件: https//github.com/davidB/scala-maven-plugin

I've unzipped the plugin and tried to install it from eclipse using 'install new software' but eclipse gives errors like this: 我已经解压缩插件并试图使用'安装新软件'从eclipse安装它,但是eclipse会出现这样的错误:

Could not find file: C:\..\..

This may be dumb, but I need help! 这可能是愚蠢的,但我需要帮助! What is the right way to install the plugin? 安装插件的正确方法是什么?

Any help would be appreciated. 任何帮助,将不胜感激。

Thank you. 谢谢。

scala-maven-plugin is a maven plugin, to install it, juste declare it in your pom.xml (already done with the the archetype) like in the doc scala-maven-plugin是一个maven插件,要安装它,juste在你的pom.xml中声明它(已经完成了原型)就像在doc中一样

For eclipse, you need the following plugins: 对于eclipse,您需要以下插件:

  • scala-ide to add support of scala into eclipse, could be installed from eclipse's marketplace (iirc) scala-idescala的支持添加到eclipse中,可以从eclipse的市场安装(iirc)
  • m2eclipse to add support of maven into eclipse, cloud be installed from eclipse's marketplace (iirc) m2eclipse将maven的支持添加到eclipse中,从eclipse的市场安装云(iirc)
  • m2eclipse-scala to add link between scala-ide, m2e, eclipse and maven-scala-plugin m2eclipse-scala添加了scala-ide,m2e,eclipse和maven-scala-plugin之间的链接

See http://scala-ide.org/docs/tutorials/m2eclipse/index.html 请参阅http://scala-ide.org/docs/tutorials/m2eclipse/index.html

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

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