intellij-idea - intellij hybris 类重新编译不起作用

标签 intellij-idea ant hybris

我安装了 hybris 插件。
用它导入项目。
做过ant clean all .
然后,如果我尝试 build->recompile class它不工作。似乎想法没有看到 Ant 生成的类。
如果我这样做 build->rebuild project然后 build->recompile上课它工作正常,但一点也不方便。我相信有解决这个问题,但我找不到它。
这是我遇到的常见错误(不同情​​况下的包不同):
enter image description here

最佳答案

this is essentially the expected behaviour. You can't mix "ant" build and "native IDEA" build. Those are two separate build systems.



这是对 hybris 插件开发者的解释 (hybris-integration.atlassian.net/browse/IIPS-120)

他为此提出了一个解决方案:
  • 在您尝试导入项目之前,您需要执行 ant clean all(之后您将不需要使用 ant)
  • 使用 hybris 插件导入项目。
  • 按Build->重新编译项目

  • 然后,您可以根据需要创建或修改您的测试运行配置。
    直接在 Idea 中重新编译你的类等等。

    此外,他在这里提到了与 JRebel 的交易 (hybris-integration.atlassian.net/browse/IIPS-47)

    we support both compilation modes. Ant targets and idea internal. They shouldn't be mixed as idea has it's own compilation model/cache. If you use idea compilation then you can use JRebel or hotswap.

    关于intellij-idea - intellij hybris 类重新编译不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50377088/

    相关文章:

    docker - 如何将我的Hybris项目转换为Docker镜像

    sync - Hybris 同步系统错误

    android-studio - intelliJ android项目中的appmergeDebugResources任务执行失败

    intellij-idea - 如何通过快捷方式在 IdeaVim 中打开类文件?

    java - Ivy 依赖项(拉入文件目录)

    unit-testing - 如何仅在 Hybris 项目中运行单元测试?

    scala - IDEA 表示缺少依赖项,SBT 不同意

    intellij-idea - Intellij IDEA中有标记折叠方法吗?

    java - Ant 不使用我的 JAVA_HOME 来查找 tools.jar

    ant - Maven Antrun : failed to create task or type replaceregexp