java - Eclipse shows source folders twice when importing Maven project -


on simple application, valid maven pom file compiles expected (e.g., when running mvn install) , works fine intellij idea, eclipse insists on displaying source code twice.

assuming top level package of project com.example.app , source code placed in path ending in pro/java/, structure of project like

  • pro/java/main/com/example/app...
  • pro/java/test/com/example/app...

after importing maven project in eclipse, nested src forder created in workspace, below there nested versions of actual source folders, e.g.

  • src/java/main/com/example/app
  • src/java/main/com/com/example/app

in addition that, there 2 "valid" source folders in workspace, i.e.

  • src/main/java...
  • src/test/java...

excluding 2 folders source path leaves nothing compiled , keeping nested src folder causes sorts of weird problems in compilation within eclipse.

any clues?

thanks.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -