【问题标题】:maven-compiler-plugin 3.0 brokenmaven-compiler-plugin 3.0 坏了
【发布时间】:2013-01-10 13:08:06
【问题描述】:

我有一个使用 gmaven 构建的纯 groovy 项目,但想将其切换为使用 groovy eclipse 编译器。

所以我关注了here 的信息。那行得通。但是有一个新的 3.0 版本的 maven-compiler-plugin。当我切换到那个版本时,它会显示源文件夹被添加到列表中以进行编译,但然后退出说一切都是最新的。

所以我拿了示例项目(链接页面的底部)并按原样编译它......没问题。将那个简单的项目切换到 maven-compiler-plugin v3.0...它无法以相同的方式构建任何东西。

只有我一个人吗?

【问题讨论】:

  • 你能显示你得到的pom,当然还有错误消息等。

标签: eclipse maven groovy


【解决方案1】:

尝试在 maven-compiler-plugin 的配置部分中将以下内容添加到您的 pom 中:

<includes>
  <include>**/*.groovy</include>
  <include>**/*.java</include>
</includes>
<testIncludes>
  <testInclude>**/*.groovy</testInclude>
  <testInclude>**/*.java</testInclude>
</testIncludes>

这是自 3.0 以来出现的东西。

【讨论】:

    猜你喜欢
    • 2018-07-10
    • 1970-01-01
    • 2012-12-19
    • 2013-02-12
    • 2014-02-23
    • 2014-03-10
    • 1970-01-01
    • 2013-01-14
    • 2016-09-17
    相关资源
    最近更新 更多