Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot Initializr: Maven project or Maven POM?

I want to set up a Spring Boot project using the Spring Initializr (https://start.spring.io) but I was wondering about the difference in the project type you can choose between: Maven Project or Maven POM?

What is exactly the difference between these two types?

like image 389
Joël Craenhals Avatar asked Aug 14 '15 02:08

Joël Craenhals


2 Answers

Maven POM creates only the pom.xml file.

Maven Project creates the pom.xml file and a sample project including src folder:

> src:
    > main:
        > java:
            > com.example:
                Application.java
        > resources:
            application.properties
    > test:
        > java:
            > com.example:
                ApplicationTest.java
> pom.xml
like image 125
6324 Avatar answered Nov 09 '22 07:11

6324


Maven Project is the type which we use to create a common Spring Boot application. It seems Maven POM is for downloading build scripts only.

like image 34
Sanjay Avatar answered Nov 09 '22 07:11

Sanjay