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

SMPH
  • 2,369
  • 10
  • 45
  • 87
  • 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 – SMPH 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 – SMPH Jul 29 '20 at 21:08
  • @Andrey Build success via IntelliJ despite missing dependencies under `External Libraries`. So bit confusing – SMPH 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 – SMPH Jul 30 '20 at 01:38

1 Answers1

0

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
  • 12,793
  • 19
  • 72
  • 151
  • 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. – SMPH Jul 30 '20 at 01:40