【问题标题】:gwt:run-codeserver not seeing code updates for referenced libraries on browser refresh, needs maven installgwt:run-codeserver 在浏览器刷新时看不到引用库的代码更新,需要安装 maven
【发布时间】:2016-12-27 17:21:50
【问题描述】:

是否可以使 gwt:run-codeserver 目标(来自 org.codehaus.mojo/gwt-maven-plugin)使用来自引用依赖项的源运行。

对于依赖于 libA 的 war 项目 projA,它将添加 projA 的源,但对于 libA,它将源 jar 而不是源文件夹添加到 GWT 源。 因此,不可能让 CodeServer 在浏览器刷新时重新编译代码。我必须

【问题讨论】:

    标签: gwt maven-3 gwt-super-dev-mode


    【解决方案1】:

    这是因为 Mojo 的 GWT 插件不是为反应堆构建而设计的。有一些变通方法使用 build-helper-maven-compiler 将库源添加到您用于开发的配置文件中的战争中;但最简单和最干净的是使用 net.ltgt.gwt.maven: gwt-maven-plugin 代替(免责声明:我是 Mojo 插件的作者和前维护者)。查看我的https://github.com/tbroyer/gwt-maven-archetypes 以获取使用示例。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-25
      • 2014-12-10
      • 2019-06-23
      • 2015-04-03
      • 1970-01-01
      • 1970-01-01
      • 2015-02-18
      • 2016-07-15
      相关资源
      最近更新 更多