Evan M.
Evan M.

Reputation: 433

Multiple small modules in Maven project

I have a project which has multiple small utility classes which I want to package as separate jars, e.g. json-utils, xml-utils etc.

How can I manage this kind of build within a larger project?
Is the only way to do this by declaring each of these classes within a their own separate module? And does each one then need its own subfolder?

Upvotes: 1

Views: 54

Answers (1)

Gerold Broser
Gerold Broser

Reputation: 14762

One of the basic concepts of Maven is one project (module), one artifact (jar, war, etc.):

Because a project is defined by a unique set of coordinates consisting of a group identifier, an artifact identifier, and a version [...]

So, "yes" to your last two questions.

Upvotes: 1

Related Questions