我可以使用在摇篮Maven插件(字正腔圆)? [英] Can I use a Maven plugin (enunciate) in Gradle?
问题描述
我有一个Maven插件叫做字正腔圆产生很好的API文档。我宁愿使用摇篮为我的生成工具,但它看起来像它在这方面的限制或也许我只是不知道如何使用它。
I have a maven plugin called enunciate that generates nice API documentation. I'd rather use Gradle as my build tool but it looks like it's limited in this aspect or maybe I just don't know how to use it.
我想知道如果有可能的gradle中使用Maven插件(字正腔圆)不知何故?我必须写一个Ant脚本,并调用?到目前为止,我无法找到一个字正腔圆的Gradle的例子,所以我猜它不支持?
I'm wondering if it's possible to use a maven plugin (enunciate) in gradle somehow? Do I have to write an ant script and call that? So far I can't find a gradle example for enunciate so I'm guessing it's not supported?
推荐答案
您不能使用Maven插件原样在摇篮;你必须移植到摇篮插件。有多难,这是取决于很多的Maven如何的API插件使用。另一种策略可能是通过摇篮的 Exec的
任务来调用到Maven的。
You can't use a Maven plugin as-is in Gradle; you'll have to port it to a Gradle plugin. How difficult this is depends on how many Maven APIs the plugin is using. Another strategy might be to call into Maven via Gradle's Exec
task.
这篇关于我可以使用在摇篮Maven插件(字正腔圆)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!