0

When you delete a module from a Maven project in IntelliJ, all references to that module turn into compilation errors. Is there a way to exchange references to the module with references to the artefact in the Maven repo, so that everything still compiles?

seenukarthi
  • 8,241
  • 10
  • 47
  • 68
Programmer Trond
  • 303
  • 2
  • 15

1 Answers1

0

Now I can get it to work after a restart of IDEA. Don't know why it didn't work at first. I delete a module, and "make project" gives me compile errors, but Maven > Reimport adds dependencies to Maven repo to replace dependencies to the deleted module. Works fine, and I can live with it being a two-step procedure :)

(My dependencies are already in pom.xml, Harmelodic. Modules are created from Maven pom.xml files.)

Programmer Trond
  • 303
  • 2
  • 15