Ced
Ced

Reputation: 17397

Intellij not importing dependencies of modules

IntelliJ is not importing my modules dependencies for some reason. Like it's not taking into account my modules pom.xml. The dependencies added for example in the core module don't figure in the External library of the subject. As I'm not yet that familiar with intelliJ I assume the problem comes from the project structure so here it is:

dependencies

Upvotes: 0

Views: 4573

Answers (2)

BABU
BABU

Reputation: 1

Importing from terminal and opening on another IDE might cause you troubles, so run the following code in your program and run it as you run the hello world app:

import subprocess

module_name = "pandas"
subprocess.run(["pip", "install", module_name])

Upvotes: 0

Dan Godfrey
Dan Godfrey

Reputation: 456

You need to import the project as a "Maven Project".

  • Remove the "wallbang" module with the "-" button.
  • Click "+" -> "Import Module", then select the pom.xml.
  • Configure it using the wizard.
  • Click "Ok"

That should open up the Maven view and automatically include all dependencies.

Upvotes: 2

Related Questions