Answer the question
In order to leave comments, you need to log in
Where to put common sorts for two modules in Maven?
Good day to all)
I have a client-server application.
accordingly, I made two modules:
-GameServer
-GameClient
which have an ancestor module without sorts:
-My_Game
would be fine, but the client and server have common sorts (GameMessages). The question is where to put these sorts, and how to register dependence on them?
Thank you in advance)
Answer the question
In order to leave comments, you need to log in
Just create a third child module with groupId and artifactId. Then simply link with GameServer and GameClient to this third module through the usual mechanism for specifying dependencies, as if it were any other library. As far as I remember, in the parent module My_Game, the usual mvn install is enough.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question