-1

What is the correct way to download code of another module of the multi-module maven project?

I have the multi-module maven project that consists of 2 modules. I have implemented first module and now I need some classes from my first module in the second module. How the corect way to perform it?

Yarik Soltys
  • 315
  • 1
  • 2
  • 17
  • 1
    add a dependency to tmodule one in the second module I'd say. Note, you're not allowed to have cyclic dependencies – UninformedUser Dec 21 '18 at 13:10
  • Yes as AKSW said adding dependency would work. If you work on Intellij Idea, it will suggest you to add dependency when you try to import the class. – Praveen E Dec 21 '18 at 13:11

1 Answers1

1

Just include the first module as a dependency of the second as you would normally.

James Baker
  • 1,143
  • 17
  • 39