1 year ago

#75144

test-img

youssef Liouene

In test classes using main classes in other modules in a multi-module maven project

I have a multi-module Maven project. structure look like this:

 Parent
|-- Module A
        |-- src/test
            |-- TestA
|-- Module B
        |-- src/main
            |-- B
            

in Module A, I have test class TestA that use B class declared in module B ( src/main/B). How can I share the B class to be recognized in TestA? Remark: I need to share the main Classes in B Module (not the test classes) ModuleB is spring boot module

maven

maven-3

0 Answers

Your Answer

Accepted video resources