问题描述
有没有一个maven插件可以在某处使用,最好作为报告?
我想将是您需要查看的地方,但文档是古老的(1.0,而当前版本为1.3),GMaven插件不会
mvn help:describe -DgroupId = org.codehaus.gmaven -DartifactId = gmaven-plugin
那么有没有人有任何指向maven groovydoc插件的指针? Google没有想出任何有意义的东西。
解决方案有没有一个maven插件可以在某处使用,最好作为报告?
我想将是您需要查看的地方,但文档是古老的(1.0,而当前版本为1.3),GMaven插件不会
mvn help:describe -DgroupId = org.codehaus.gmaven -DartifactId = gmaven-plugin
那么有没有人有任何指向maven groovydoc插件的指针? Google没有想出任何有意义的东西。
解决方案您需要gmavenplus插件:
< 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>
< 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
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插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!