您的位置:首页 > 其它

解决idea中创建scala项目中插件无法加载的问题

2020-02-04 16:26 537 查看

解决idea中创建scala项目中插件无法加载的问题


先创建

在用idea时由于自己使用的是老师给的pom,出现了


始终飘红,无法下载

解决方案

在依赖下载中加上

<!-- https://mvnrepository.com/artifact/org.scala-tools/maven-scala-plugin -->
<dependency>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.11</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-eclipse-plugin -->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.5.1</version>
</dependency>

即先将这两个依赖下载,然后就不报错了(一定要对应scala Sdk版本)
也可以在https://mvnrepository.com/中找到这俩下载到本地maven仓库中。

  • 点赞
  • 收藏
  • 分享
  • 文章举报
企鹅席地而坐 发布了18 篇原创文章 · 获赞 2 · 访问量 537 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐