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

Jhipster Webpack failure for Jhipster Maven Microservice Gateway application in Dev environment

我已经使用 Jhipster 生成了一个示例微服务应用程序和一个微服务网关应用程序。这两个应用程序都是使用 maven 构建的,并使用 Jhipster registry 进行识别和路由。我能够成功构建微服务应用程序并能够在分配的本地主机端口中访问它。

我在为网关应用程序构建 ./mvnw 时遇到构建问题。但它为 gradle 应用程序正确构建并且 API 已启动。我在 org.springframework.boot:spring-boot-maven-plugin:2.0.5.

中只有 Maven 有问题

它的 运行 在 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

我已经进一步调试,发现作为 JVM 参数的一部分传递的类路径太长。但是我的系统变量设置正确。

我找不到任何具体的解决方案。我刚刚将我的 Jhipster 版本降低到 4.14