Tuesday, July 28, 2015

src/main/java and src/test/java not created in Eclipse Maven Project

ISSUE

When I tried to Create a Maven Project in Eclipse, I couldn't see src/main/java and src/test/java source folders.

SOLUTION

Follow the below steps to resolve the issue.

1. Right click the Maven Project -> Build Path -> Configure Build Path
2. In Order and Export tab, you can see the message like '2 build path entries are missing'
3. Now select 'JRE System Library' and 'Maven Dependencies' checkbox
4. Click OK

Now you can see below in all type of Explorers (Package or Project or Navigator)

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

No comments :

Post a Comment