rinaldo13531 rinaldo13531 - 25 days ago 5
Git Question

When importing/creating branch from git project, I get multiple source folders

I have a Maven project that I imported from Git, and when I either checkout into a local branch or import the project I get a layout that looks like this:

enter image description here

In the project setup on file/github it looks correct. The hierarchy is


It seems likes it creating multiple src folders but I wasn't sure how to change that in the build path/ why its doing this.

I should also mention the original src folder contains duplicates of the other src folders, but pads the packages with main.java.

For reference I'm using Eclipse Neon EE.


In the project Explorer view, switch to a hierarchical presentation:


(Image from "JBoss Tools Alpha1 for Eclipse Mars" article from Max Rydahl Andersen)

You should then see only one src.