【问题标题】:Jhipster: How can I only generate a back-end microservice applicationJhipster:如何只生成后端微服务应用程序
【发布时间】:2019-05-08 10:46:39
【问题描述】:

我想仅使用后端代码生成微服务应用程序。 我在this 中找到了解决方案。 我使用 jhipster --skip-client 但它仍然有一些字体端文件,如 node-modules、packege.json...

在那之后,我找到了另一个解决方案,而不是 jhipster --skip-client 。我使用 jhipster:server 并且它有效。我没有任何 Font-End 文件,但我可以使用 mvnw 运行。这是我的错误

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.184 s
[INFO] Finished at: 2019-05-08T16:20:28+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0.0:read-project-properties (default) on project test-mic: Properties could not be loaded from File: C:\Users\DatNT80\Desktop\TestMic\sonar-project.properties -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

我该如何解决我的问题

【问题讨论】:

  • 能否请您从输出中粘贴更多内容?

标签: jhipster


【解决方案1】:

jhipster --skip-client 是生成仅服务器应用程序的正确方法。通过调用jhipster server,您正在使用内部“jhipster 子生成器”,这可能会导致应用程序不完整甚至无法正常工作。

package.json 和 node_modules 不是前端文件。他们需要在本地安装 jhipster 作为项目的 JavaScript 依赖项(jhipster 是用 JS 编码的)。这样,在您的应用目录中调用 jhipster 时,保证使用与您的应用生成时相同的 jhipster 版本。

【讨论】:

    猜你喜欢
    • 2017-07-17
    • 2019-02-04
    • 2020-07-08
    • 2021-07-31
    • 1970-01-01
    • 2021-03-12
    • 2017-12-20
    • 1970-01-01
    • 2021-07-31
    相关资源
    最近更新 更多