步骤
1.工程添加scala-maven-plugin,
<build>
<sourceDirectory>src/main/scala</sourceDirectory>
<plugins>
<!-- the Maven Scala plugin will compile Scala source files -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2.点击pom文件,Run As->Run Configuration,
image.png
3.运行配置信息如图,
image.png
4.运行完成之后到target目录查看scala doc结果。
image.png
网友评论