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 ?
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.
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.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With