GroovyDoc作为Maven插件

GroovyDoc作为Maven插件

本文介绍了GroovyDoc作为Maven插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个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插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-02 00:52