简体   繁体   English

开发环境中 Jhipster Maven 微服务网关应用程序的 Jhipster Webpack 失败

[英]Jhipster Webpack failure for Jhipster Maven Microservice Gateway application in Dev environment

I have generated a Sample Microservice application and a Microservice gateway application using Jhipster.我已经使用 Jhipster 生成了一个示例微服务应用程序和一个微服务网关应用程序。 Both applications are built using maven and are using Jhipster registry for identification and routing.这两个应用程序都是使用 maven 构建的,并且使用 Jhipster 注册表进行识别和路由。 I am successfully able to build the Micro service application and able to reach it in the assigned localhost port.我能够成功构建微服务应用程序并能够在分配的本地主机端口中访问它。

I have build issues while building ./mvnw for gateway application.我在为网关应用程序构建 ./mvnw 时遇到了构建问题。 But it builds properly for gradle application and the API's are up.但它为 gradle 应用程序正确构建,并且 API 已启动。 I have issues only for maven in org.springframework.boot:spring-boot-maven-plugin:2.0.5.我只有 org.springframework.boot:spring-boot-maven-plugin:2.0.5 中的 maven 有问题。

Its running on Windows 10 machine, latest version of Jhipster.它在 Windows 10 机器上运行,最新版本的 Jhipster。

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.5.RELEASE:run (default-cli) on project api-contact-gateway: Could not exec java: Cannot run program "C:\\Program Files\\Java\\jdk1.8.0_181\\jre\\bin\\java.exe": CreateProcess error=206, The filename or extension is too long

I have debugged further and could see that the Classpath passed as a part of JVM arguments is too long.我已经进一步调试,可以看到作为 JVM 参数的一部分传递的类路径太长。 But my system variables are properly set.但是我的系统变量设置正确。

I coudn't find any specific solution.我找不到任何具体的解决方案。 I just lowered my Jhipster version to 4.14我刚刚将我的 Jhipster 版本降低到 4.14

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM