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?
Asked
Active
Viewed 144 times
0
-
works fine for me, I am using IntelliJ 15 – Bhushan Bhangale Mar 17 '16 at 11:03
-
Do you add your dependency to your `pom.xml` or are you expecting IntelliJ to auto-find the artifact? – Harmelodic Mar 17 '16 at 11:33
1 Answers
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