B
B
Bluebird21212015-01-17 13:56:45
Maven
Bluebird2121, 2015-01-17 13:56:45

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

1 answer(s)
H
halogen, 2015-03-16
@halogen

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 question

Ask a Question

731 491 924 answers to any question