0

I have multi module maven project in intelliJ 2019.3 (Ultimate)

I am not able to get all dependencies after several tries. I tried below solutions as well

Solution 1

Solution 2

I noticed under the Maven tool same module shows twice as below

enter image description here

Not sure that caused the issue here.

Strangely I don't see any red lines in the any of the POMs

Shabar
  • 2,617
  • 11
  • 57
  • 98
  • I was managed to get rid of duplicate root by ignoring that `.flattened-pom.xml` via intellij settings>buildTool>Maven>Ignorefiles. Still the dependency download issue is there though – Shabar Jul 29 '20 at 13:12
  • Can you build from command line Maven? – Andrey Jul 29 '20 at 16:34
  • @Andrey I get build errors even from command line due to missing dependencies. But why it's not showing any red lines in any of the POM.xml s – Shabar Jul 29 '20 at 21:08
  • @Andrey Build success via IntelliJ despite missing dependencies under `External Libraries`. So bit confusing – Shabar Jul 29 '20 at 23:04
  • Finally I resolve those compile errors and app can be run from IDE and command line. But still an't see all the dependencies in POM under the external Libraries in intelliJ – Shabar Jul 30 '20 at 01:38

1 Answers1

1

Provided that you can build project from command line Maven and dependencies are downloaded.

In IntelliJ IDEA please try: File | New | Project from Existing Sources action and point to pom.xml file to import project from. Then choose to delete existing project configuration.

Andrey
  • 15,144
  • 25
  • 91
  • 187
  • With above suggestion where do you see `Then choose to delete existing project configuration.` option that you mentioned? I did rest of the part but still can't see all POM dependencies under `External Libraries` section. – Shabar Jul 30 '20 at 01:40