I'm looking for help with the scala-maven-plugin
for Maven. I would like to generate my Scaladoc but I'm having some problems with it.
I actually can create my Scaladoc typing the following command:
mvn scala:doc
The problem now is that I want to add some options when I generate the Scaladoc, such as -no-link-warnings
.
Does anyone know how to do this? I have found a way (the code below works), but I don't think that's the way I should be done.
My pom file is:
<build>
...
<plugins>
<plugin>
<!-- see http://davidb.github.com/scala-maven-plugin -->
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<args>
<arg>-no-link-warnings</arg>
</args>
</configuration>
<executions>
<execution>
<id>Compile</id>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<args>
<arg>-dependencyfile</arg>
<arg>${project.build.directory}/.scala_dependencies</arg>
</args>
</configuration>
</execution>
</executions>
</plugin>
...
</plugins>
EDIT
A better approach has been suggested by the user Tunaki on the first reply, you can see the code there.