ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 1.IDEA先下载Scala插件 ![](https://img.kancloud.cn/2b/a1/2ba1aff0e4ac232dc11875ae1f1118d4_802x711.png) # 2.创建一个普通Maven项目 ![](https://img.kancloud.cn/2e/0f/2e0f7b188e1ba68072bc72c7c6a99cdc_1366x728.png) # 3.更改Java为Scala ![](https://img.kancloud.cn/fb/fd/fbfdabb966f389ef2049949907d10596_1366x728.png) # 4.添加POM插件 ![](https://img.kancloud.cn/bc/60/bc60c508794d8ec95ea07252e618ed24_1366x728.png) ```xml <build> <plugins> <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId> <version>2.15.2</version> <configuration> <scalaVersion>2.11.8</scalaVersion> </configuration> <executions> <execution> <goals> <goal>compile</goal> <goal>testCompile</goal> </goals> </execution> </executions> </plugin> </plugins> </build> ```