Search code examples
mavenmicroservicesjhipsterapi-gateway

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. Both applications are built using maven and are using Jhipster registry for identification and routing. 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. But it builds properly for gradle application and the API's are up. I have issues only for maven in org.springframework.boot:spring-boot-maven-plugin:2.0.5.

Its running on Windows 10 machine, latest version of 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. But my system variables are properly set.


Solution

  • I coudn't find any specific solution. I just lowered my Jhipster version to 4.14