【问题标题】:"Unable to find the mojo Error" At My Custom Maven Plugin在我的自定义 Maven 插件中“找不到 mojo 错误”
【发布时间】:2013-02-07 12:24:37
【问题描述】:

我开发了一个自定义 Maven 插件,它有两个 Mojo。我从我的 IDE 中对其进行调试,其中一个目标运行良好,但找不到另一个目标。它说:

 Unable to find the mojo 'replace' (or one of its required components)

这是我的魔力:

工作一:

/**
 * Goal for process
 *
 * @goal process
 * @phase compile
 *
 * @threadSafe
 */
public class ProcessMojo extends AbstractMojo {

不工作:

/**
 * Goal for replace
 *
 * @goal replace
 * @phase compile
 *
 * @threadSafe
 */
public class ReplaceMojo extends AbstractMojo {

可能是什么原因,有什么想法吗?

【问题讨论】:

    标签: maven-plugin maven-plugin-development maven-mojo


    【解决方案1】:

    这可能是因为我的魔力中的某些东西,我已经重新编码并且问题已解决。

    【讨论】:

      猜你喜欢
      • 2022-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-16
      • 1970-01-01
      • 2015-08-20
      • 2013-05-16
      相关资源
      最近更新 更多