GroovyDoc作为Maven插件 [英] GroovyDoc as Maven Plugin
问题描述
有没有一个maven插件可以在某处使用 GroovyDoc
,最好作为报告?
我想 GMaven 将是您需要查看的地方,但文档是古老的(1.0,而当前版本为1.3),GMaven插件不会
mvn help:describe -DgroupId = org.codehaus.gmaven -DartifactId = gmaven-plugin
这个插件有9个目标:
groovy:编译
描述:编译
的Groovy源代码。
groovy:console
描述:启动
Groovy GUI控制台。
groovy:执行
描述:执行
a Groovy脚本。
groovy:generateStubs
描述:
从Groovy生成Java存根
源文件。
groovy:generateTestStubs
描述:从
生成Java存根Groovy测试资源。
> groovy:help
描述:显示
帮助信息gmaven-plugin。
调用
mvn groovy:help -Ddetail = true - Dgoal =< goal-name>
to显示参数详细信息。
常规提供程序
描述:
显示有关Groovy
运行时提供程序,其中
被配置和选择。
$ b groovy:shell
描述:启动
Groovy Shell(aka。 groovyh)。
$ b groovy:testCompile
描述:
编译Groovy测试源。
那么有没有人有任何指向maven groovydoc插件的指针? Google没有想出任何有意义的东西。
解决方案您需要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>
<依赖关系>
< dependency>
< groupId> org.codehaus.groovy< / groupId>
< artifactId> groovy-all< / artifactId>
<! - 任何版本的Groovy \> = 1.5.0(1.6 RC 1除外)应该在这里工作 - >
< version> 2.4.7< / version>
< /依赖关系>
< /依赖关系>
< / project>
并运行: mvn gplus:generateStubs gplus:groovydoc
Is there a maven plugin available somewhere that utilizes GroovyDoc
, preferably as a report?
I guess GMaven would be the place to look but the docs are ancient (1.0, whereas the current version is 1.3) and the GMaven plugin doesn't have any mojo that fits as you can see:
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.
So does anyone have any pointers to a maven groovydoc plugin? Google didn't come up with anything meaningful.
You want the gmavenplus plugin: 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>
and run: mvn gplus:generateStubs gplus:groovydoc
这篇关于GroovyDoc作为Maven插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!