Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a project structure similar to Spring Petclinic in Eclipse

How do I create a project structure in Eclipse similar to Spring Petclinic where

src/main/java
src/main/resources
src/test/java 

are all source folders.Is it created using Maven or is it created using simple Java Project ?

like image 257
Anshul Avatar asked Nov 23 '25 19:11

Anshul


2 Answers

Yes, you can generate the skeleton of almost any Java project type using Maven archetypes.

Executing the maven command mvn archetype:generate specifying an archetypeArtifactId parameter will automatically create your project structure. For example, mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart will execute the command with the maven-archetype-quickstart archetype (note that you should also provide your artifactId and your groupId).

You should take a look at Maven in 5 minutes, it will take you through the creation of such project structure without any troubles and it's a very good introduction if you are new to Maven.

like image 121
m4rtin Avatar answered Nov 25 '25 11:11

m4rtin


Yes. You can create the project using Apache Maven. This tutorial might get you started on how to create Spring web-applications using Maven.

If you are familiar with Git, you can also download and import the spring-petclinic from Github.

enter image description here

like image 22
Sandeep Chatterjee Avatar answered Nov 25 '25 11:11

Sandeep Chatterjee