Andna
Andna

Reputation: 6689

Eclipse, Maven and Spring

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.

Upvotes: 0

Views: 195

Answers (1)

Pau Kiat Wee
Pau Kiat Wee

Reputation: 9505

You just need to create src/main/java folder and maven will automatically recognize it. To make your project is recognize by eclipse, you can run mvn eclipse:eclipse at the root of the project.

Here is the sample webapp based on maven, spring and JPA2(hibernate)

Upvotes: 2

Related Questions