美文网首页
Eclipse生成scala doc

Eclipse生成scala doc

作者: FredricZhu | 来源:发表于2020-04-03 12:13 被阅读0次

    步骤
    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

    相关文章

      网友评论

          本文标题:Eclipse生成scala doc

          本文链接:https://www.haomeiwen.com/subject/tdkhphtx.html