【问题标题】:How to fail a build that has compiler warnings with Tycho如何使用 Tycho 使带有编译器警告的构建失败
【发布时间】:2015-06-29 08:22:48
【问题描述】:

我已经阅读了与项目一起存储的 Tycho 0.22 can reuse JDT compiler preferences

现在,如果编译器遇到项目设置配置的警告,我希望构建失败。可以配置 Tycho 来实现这一点吗?

2016 年 11 月 29 日更新: 我正在寻找完全解决this question on the Tycho mailing list

【问题讨论】:

    标签: tycho


    【解决方案1】:

    使用-err:all编译器参数:

    <plugin>
      <groupId>org.eclipse.tycho</groupId>
      <artifactId>tycho-compiler-plugin</artifactId>
      <version>${tychoVersion}</version>
      <configuration>
        <compilerArgument>-err:all</compilerArgument>
      </configuration>
    </plugin>
    

    另见:

    【讨论】:

    • 感谢您的回复。建议的compilerArgument所有 问题视为错误。但是,如果遇到项目设置中配置的警告之一,我正在寻找一种让构建失败的方法。 IE。我的问题与邮件列表链接中的问题相同。
    猜你喜欢
    • 2012-02-29
    • 2012-10-17
    • 2020-09-29
    • 2018-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-13
    • 1970-01-01
    相关资源
    最近更新 更多