In the Using Curl section of the Spring Security and Angular tutorial, the following command is listed:
curl https://start.spring.io/starter.tgz -d dependencies=web,security -d name=ui | tar -xzvf -
The documentation then states:
You can then import that project (it’s a normal Maven Java project by default) into your favourite IDE, or just work with the files and "mvn" on the command line.
This is not true. The command produces a gradle project. I believe that the Spring Boot Initiliazr now defaults to gradle for the build type.
I was able to get the cURL command to generate a maven project by adding the following parameter -d type=maven-project
The entire command is
curl https://start.spring.io/starter.tgz -d type=maven-project -d dependencies=web,security -d name=ui | tar -xzvf -
When I ran the above cURL command it generated a java maven project with a pom.xml that matches the pom.xml that is generated from using the Spring Boot Initialzr website.
In the Using Curl section of the Spring Security and Angular tutorial, the following command is listed:
curl https://start.spring.io/starter.tgz -d dependencies=web,security -d name=ui | tar -xzvf -The documentation then states:
You can then import that project (it’s a normal Maven Java project by default) into your favourite IDE, or just work with the files and "mvn" on the command line.This is not true. The command produces a gradle project. I believe that the Spring Boot Initiliazr now defaults to gradle for the build type.
I was able to get the cURL command to generate a maven project by adding the following parameter
-d type=maven-projectThe entire command is
curl https://start.spring.io/starter.tgz -d type=maven-project -d dependencies=web,security -d name=ui | tar -xzvf -When I ran the above cURL command it generated a java maven project with a pom.xml that matches the pom.xml that is generated from using the Spring Boot Initialzr website.