是否有可用的 maven 插件可以使用 GroovyDoc
,最好作为报告?
我猜 GMaven将是查看的地方,但文档是古老的(1.0,而当前版本是 1.3)并且 GMaven 插件没有任何适合的魔力,如您所见:
mvn help:describe -DgroupId=org.codehaus.gmaven -DartifactId=gmaven-plugin
This plugin has 9 goals:
groovy:compile
Description: Compiles Groovy sources.groovy:console
Description: Launches the Groovy GUI console.groovy:execute
Description: Executes a Groovy script.groovy:generateStubs
Description: Generate Java stubs from Groovy sources.groovy:generateTestStubs
Description: Generate Java stubs from Groovy test sources.groovy:help
Description: Display help information on gmaven-plugin.
Call
mvn groovy:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.groovy:providers
Description: Displays information about the Groovy runtime providers which are configured and selected.groovy:shell
Description: Launches the Groovy Shell (aka. groovysh).groovy:testCompile
Description: Compiles Groovy test sources.
那么有没有人有任何指向 maven groovydoc 插件的指针?谷歌没有想出任何有意义的东西。
最佳答案
你想要 gmavenplus 插件:http://groovy.github.io/GMavenPlus/groovydoc-mojo.html
<project>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.5</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<!-- any version of Groovy \>= 1.5.0 (except 1.6 RC 1) should work here -->
<version>2.4.7</version>
</dependency>
</dependencies>
</project>
并运行:
mvn gplus:generateStubs gplus:groovydoc
关于maven-2 - GroovyDoc 作为 Maven 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5325259/