我正在使用scaladoc
中的net.alchim31.maven
插件创建maven
,并且所有类都生成到站点文件夹中。如何仅包括某些类?
我在pom.xml
中尝试了以下操作,但对我而言不起作用:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<sourceFileIncludes>
<include>X.scala</include>
</sourceFileIncludes>
<sourcepath>${basedir}/core/types/src/types</sourcepath>
</configuration>
<executions>
<execution>
<phase>process-resources</phase>
<id>scala-jar</id>
<goals>
<goal>doc</goal>
<goal>doc-jar</goal>
</goals>
<configuration>
<args>
<arg>-groups</arg>
</args>
</configuration>
</execution>
</executions>
</plugin>