feedback
feedback copied to clipboard
[cloud-kotlin-jib-cloud-run]: issue with Gradle and Maven
Step 3. Initialize a Spring Boot app has an issue when the user is asked to generate a new Spring Boot app with Spring Initializr.
The command ./mvnw -DskipTests spring-boot:run
fails because the Spring Initializr was not downloaded for maven, instead with the default Gradle support.
In order to fix it, add the property -d type=maven-project
, so it should be:
$ curl https://start.spring.io/starter.tgz \
-d language=kotlin \
-d dependencies=web \
-d type=maven-project \
-d baseDir=kotlin-jib-cloud-run | tar -xzvf -
instead of
$ curl https://start.spring.io/starter.tgz \
-d language=kotlin \
-d dependencies=web \
-d baseDir=kotlin-jib-cloud-run | tar -xzvf -