scala - How do I include ScalaDoc options in Maven -


i can generate class hierarchy diagram manually use "scaladoc -diagrams ..."

i can generate basic scaladoc maven "mvn scala:doc"

but how can put "-diagrams" in when run scaladoc maven? in general, how put in of options listed in "scaladoc -help".

i have in pom.xml, doesn't work.

        <plugin>             <groupid>org.scala-tools</groupid>             <artifactid>maven-scala-plugin</artifactid>             <version>2.14-snapshot</version>             <configuration>                 <args>                     <arg>-diagrams</arg>                 </args>             </configuration>          </plugin> 

update

this doesn't work either:

        <plugin>             <groupid>org.scala-tools</groupid>             <artifactid>maven-scala-plugin</artifactid>              <executions>                 <execution>                     <id>generate-scaladoc</id>                     <phase>generate-sources</phase>                     <goals>                         <goal>doc</goal>                     </goals>                     <configuration>                         <diagrams>true</diagrams>                         <args>                             <arg>-diagrams</arg>                         </args>                     </configuration>                 </execution>             </executions>       </plugin> 

i haven't tried this, in general, add executions element bind goal specific phase of maven lifecycle. @ this example combining java , scala project.

            <executions>                 <execution>                     <id>scala-doc</id>                     <phase>process-resources</phase> <!-- or wherever -->                     <goals>                         <goal>doc</goal>                     </goals>                 </execution>                                                 </executions> 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -