Idea中创建scala项目中Cannot resolve plugin org.scala-tools:maven-scala-plugin: unknown

目录


1 maven-scala-plugin插件无法加载的问题

Idea中创建scala项目中Cannot resolve plugin org.scala-tools:maven-scala-plugin: unknown

2 排查解决

1 确定scala版本是否于本地环境一致
如果一致继续排查,如果不一致然后换成相同的版本后刷新
Idea中创建scala项目中Cannot resolve plugin org.scala-tools:maven-scala-plugin: unknown

2.排查是否就是缺对应的版本信息
之后加入依赖继续刷新

<!-- 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 WordCount案例1


下一篇:Scala基础操作