Hello IntelliJ Community:
Is there a way to resolve dependencies for a maven project from both the maven dependencies and other IntelliJ modules in the same project. I see in the dependencies tab of the maven module project settings that I can add dependencies on other modules, but for some reason, after adding the dependency; the source still marks the classes as not found. The only way I can resolve the classes in the editor is if I mvn install the the dependent module's artifact to my local maven repo and update my pom to include the dependent artifact.
For example, I can't get the following to work:
1) Create IntelliJ project
2) Import module A from existing pom (standard java maven project)
3) Import module B from existing pom (standard java maven project)
4) Add module B as a IntelliJ module dependency (under project settings) to module A (module A's pom does not include a dependency on module B, but module A's source classes make use of classes in module B)
5) Classes from module B used in module A can not be resolved and are marked as an error, the only way for IntelliJ to be happy is if I mvn install module B and then add a dependency on module B into module A's pom. Is there no way to avoid this installation step and have IntelliJ simply see all source files in the same project?
I know this doesn't really follow the grain of maven, but it would still be useful for me, because there are times when intelliJ can't resolve maven dependencies for some reason or another, yet the source is already loaded in the project as another module.
Thanks for the help!