Answer the question
In order to leave comments, you need to log in
How to build individual modules in a multi-module maven project?
Please tell me how best to organize a multi-module project with the ability to assemble independent modules.
Perhaps I incorrectly initially planned the structure of such a project. I am new to maven and Java development in general.
The current structure is as follows:
- general [parent]
- src
-main
-java
- JSON_Builder (класс для специфической компоновки JSON)
- JSON_Parser (тоже что-то специфическое)
- module_1
- src
-main
-java
- некий класс, использующий JSON_Builder
- module_2
- src
-main
-java
- некий класс, использующий JSON_Parser
Answer the question
In order to leave comments, you need to log in
You create pom.xml, which will be your main one, and it will store links to pom, which you will have in each module is stored like this:
<modules>
<module>child1</module>
<module>child2</module>
</modules>
<parent>
<groupId>groupIdParent</groupId>
<artifactId>artifactIdParent</artifactId>
<version>1.0</version>
</parent>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question