【发布时间】:2017-06-08 08:11:15
【问题描述】:
我的任务是将具有基于 java 的 maven 插件的 maven 项目迁移到 gradle。该插件使用 maven-plugin-plugin 并具有目标描述符和 helpmojo。
<build>
<plugins>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.4</version>
<configuration>
</configuration>
<executions>
<execution>
<id>default-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
<phase>process-classes</phase>
</execution>
<execution>
<id>help-descriptor</id>
<goals>
<goal>helpmojo</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
有什么方法可以在 gradle 中执行这些目标,还是我需要在 gradle 中重写我的基于 java 的 maven 插件?
【问题讨论】:
-
Gradle 中没有内置支持,我不知道有任何第三方插件这样做。
-
不知道为什么要使用 Gradle 构建 Maven 插件项目。