I wanted to learn something about Spring and Maven, so I created sample Maven project in Eclipse and I chosen webapp archetype, but it created only src/main/resources and src/main/webapp folders, I am wondering why it didn’t create src/main/java, also how can I add folder so the Maven will recognize it? Because when I manually create src/main/java folder, it isn’t recognized.
Share
You just need to create
src/main/javafolder and maven will automatically recognize it.To make your project is recognize by eclipse, you can run
mvn eclipse:eclipseat the root of the project.Here is the sample webapp based on maven, spring and JPA2(hibernate)