我想只用后端代码生成微服务应用程序。我在this中找到了解决方案。我使用了jhipster -skip-client,但它仍然有一些字体结束文件,如节点模块、packege.json……
在那之后,我找到了另一个替代jhipster的解决方案--skip-client。我使用jhipster:server,它可以工作。我没有任何字体结束文件,但我可以使用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
我如何解决我的问题?
发布于 2019-05-09 03:36:37
jhipster --skip-client
是生成仅用于服务器的应用程序的正确方法。通过调用jhipster server
,您正在使用内部的"jhipster子生成器“,这可能会导致应用程序不完整甚至无法工作。
package.json和node_modules不是前端文件。他们需要在本地安装jhipster作为项目的JavaScript依赖项(jhipster是用JS编写的)。这样,当在你的应用程序目录中调用jhipster时,它会被保证使用与你的应用程序生成时相同的jhipster版本。
https://stackoverflow.com/questions/56038938
复制相似问题